Skip to content

Commit

Permalink
Fixes #437
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilchowdary committed Feb 26, 2017
1 parent fe089cf commit 2ccb538
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.content.Context;
import android.support.v4.content.ContextCompat;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand Down Expand Up @@ -117,7 +118,25 @@ public View getView(int position, View convertView, ViewGroup parent) {
SavedProject projectData = getItem(position);
holder.draftSubtitle.setText(String.format(Locale.ENGLISH, "Last Modified: %s", projectData.getTime()));
holder.draftTitle.setText(String.format(Locale.ENGLISH, "Drafted on %s", projectData.getDate()));
holder.draftIcon.setText("D");


if("InfoTemplate".equals(projectData.getType()))
holder.draftIcon.setText("I");
else if("SpellingTemplate".equals(projectData.getType()))
holder.draftIcon.setText("S");
else if("QuizTemplate".equals(projectData.getType()))
holder.draftIcon.setText("Q");
else if("FlashCardsTemplate".equals(projectData.getType()))
holder.draftIcon.setText("F");
else if("VideoCollectionTemplate".equals(projectData.getType()))
holder.draftIcon.setText("V");
else if("ComprehensionTemplate".equals(projectData.getType()))
holder.draftIcon.setText("C");
else if("DictationTemplate".equals(projectData.getType()))
holder.draftIcon.setText("D");
else if("MatchTemplate".equals(projectData.getType()))
holder.draftIcon.setText("M");

convertView.setTag(holder);
if (projectData.isSelected())
{
Expand Down

0 comments on commit 2ccb538

Please sign in to comment.