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));
name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
} else if (e.getDate(format).equals(indexFileNames.get(sfName))) {
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
+ indexFileNames.get(sfName));
name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
//Hide deactivated files from update list
//name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
// + indexFileNames.get(sfName));
//name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
} else if (updatableResource) {
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
+ indexActivatedFileNames.get(sfName));
name.setTextColor(updateColor); // LIGHT_BLUE
name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
} else {
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
+ indexFileNames.get(sfName));
name.setTextColor(updateColor); // LIGHT_BLUE
name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
//Hide deactivated files from update list
//name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
// + indexFileNames.get(sfName));
//name.setTextColor(updateColor); // LIGHT_BLUE
//name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
}
}
}