Hide deactivated files from update list

This commit is contained in:
sonora 2015-01-31 10:55:55 +01:00
parent 7116228346
commit 159df7be86

View file

@ -244,19 +244,21 @@ public class UpdatesIndexFragment extends ListFragment {
+ indexActivatedFileNames.get(sfName)); + indexActivatedFileNames.get(sfName));
name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL); name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
} else if (e.getDate(format).equals(indexFileNames.get(sfName))) { } else if (e.getDate(format).equals(indexFileNames.get(sfName))) {
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " //Hide deactivated files from update list
+ indexFileNames.get(sfName)); //name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC); // + indexFileNames.get(sfName));
//name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
} else if (updatableResource) { } else if (updatableResource) {
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
+ indexActivatedFileNames.get(sfName)); + indexActivatedFileNames.get(sfName));
name.setTextColor(updateColor); // LIGHT_BLUE name.setTextColor(updateColor); // LIGHT_BLUE
name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL); name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
} else { } else {
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " //Hide deactivated files from update list
+ indexFileNames.get(sfName)); //name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
name.setTextColor(updateColor); // LIGHT_BLUE // + indexFileNames.get(sfName));
name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC); //name.setTextColor(updateColor); // LIGHT_BLUE
//name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
} }
} }
} }