add backed-up indication for hillshade and srtm files to new download screen

This commit is contained in:
sonora 2014-04-18 11:35:34 +02:00
parent 439ba4bf8f
commit 708685128a

View file

@ -262,7 +262,12 @@ public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem
if(e.getType() == DownloadActivityType.HILLSHADE_FILE if(e.getType() == DownloadActivityType.HILLSHADE_FILE
|| e.getType() == DownloadActivityType.SRTM_COUNTRY_FILE){ || e.getType() == DownloadActivityType.SRTM_COUNTRY_FILE){
item.setTextColor(okColor); // GREEN item.setTextColor(okColor); // GREEN
item.setTypeface(Typeface.DEFAULT, Typeface.NORMAL); String sfName = e.getTargetFileName();
if (indexActivatedFileNames.containsKey(sfName)) {
item.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
} else
item.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
}
} else if (e.getDate() != null) { } else if (e.getDate() != null) {
String sfName = e.getTargetFileName(); String sfName = e.getTargetFileName();
if (e.getDate().equals(indexActivatedFileNames.get(sfName))) { if (e.getDate().equals(indexActivatedFileNames.get(sfName))) {