Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #437 #438

Open
wants to merge 1 commit into
base: bug-fixes
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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