make hillshade files always appear in normal typeface, as they cannot be deactivated, but are not in indexActivatedFilesNames

This commit is contained in:
sonora 2014-04-20 18:32:38 +02:00
parent 98a7ff9c7e
commit 877e7a93f6

View file

@ -265,6 +265,9 @@ public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem
String sfName = e.getTargetFileName();
if (indexActivatedFileNames.containsKey(sfName)) {
item.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
// next case since present hillshade files cannot be deactivated, but are not in indexActivatedFileNames
} else if (e.getType() == DownloadActivityType.HILLSHADE_FILE) {
item.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
} else {
item.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
}