diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java b/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java index c0c70b5873..57035b2e1e 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java @@ -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){ diff --git a/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java b/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java index 53c0c092ad..4dde72ed20 100644 --- a/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java @@ -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); } } }