add backed-up indication for hillshade and srtm files to new download screen
This commit is contained in:
parent
439ba4bf8f
commit
708685128a
1 changed files with 6 additions and 1 deletions
|
@ -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))) {
|
||||||
|
|
Loading…
Reference in a new issue