fix for now
This commit is contained in:
parent
4e17cc3b2c
commit
57bed6b6b3
2 changed files with 10 additions and 11 deletions
|
@ -576,8 +576,9 @@ public class DownloadIndexesThread {
|
|||
String indexfilesdate = indexFileNames.get(sfName);
|
||||
if (date != null &&
|
||||
!date.equals(indexactivateddate) &&
|
||||
!date.equals(indexfilesdate)) {
|
||||
//Discrimintaion if item is deactivated to be made elsewhere in the code (DonwloadIndexAdapter, UpdateIndexFragment, etc.): indexActivatedFileNames.containsKey(sfName)) {
|
||||
!date.equals(indexfilesdate) &&
|
||||
//Discrimintaion if item is deactivated should actually be made elsewhere in the code (DonwloadIndexAdapter, UpdateIndexFragment, etc.)
|
||||
indexActivatedFileNames.containsKey(sfName)) {
|
||||
if ((item.getType() == DownloadActivityType.NORMAL_FILE && !item.extra) ||
|
||||
item.getType() == DownloadActivityType.ROADS_FILE ||
|
||||
item.getType() == DownloadActivityType.SRTM_COUNTRY_FILE){
|
||||
|
|
|
@ -244,21 +244,19 @@ public class UpdatesIndexFragment extends ListFragment {
|
|||
+ indexActivatedFileNames.get(sfName));
|
||||
name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
|
||||
} else if (e.getDate(format).equals(indexFileNames.get(sfName))) {
|
||||
//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);
|
||||
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 {
|
||||
//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);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue