Fix outdated switch, simplify color decision to be made in DownloadIndexAdapter

This commit is contained in:
sonora 2015-01-31 10:17:51 +01:00
parent 67ab72b000
commit a08fb0dbb7

View file

@ -576,8 +576,8 @@ public class DownloadIndexesThread {
String indexfilesdate = indexFileNames.get(sfName);
if (date != null &&
!date.equals(indexactivateddate) &&
!date.equals(indexfilesdate) &&
indexActivatedFileNames.containsKey(sfName)) {
!date.equals(indexfilesdate) && {
//This is checked in DownloadIndexAdapter: indexActivatedFileNames.containsKey(sfName)) {
if ((item.getType() == DownloadActivityType.NORMAL_FILE && !item.extra) ||
item.getType() == DownloadActivityType.ROADS_FILE ||
item.getType() == DownloadActivityType.SRTM_COUNTRY_FILE){
@ -604,8 +604,8 @@ public class DownloadIndexesThread {
String indexfilesdate = indexFileNames.get(sfName);
if (date != null &&
!date.equals(indexactivateddate) &&
!date.equals(indexfilesdate) &&
indexActivatedFileNames.containsKey(sfName)) {
!date.equals(indexfilesdate) && {
//This is checked in DownloadIndexAdapter: indexActivatedFileNames.containsKey(sfName)) {
stillUpdate.add(item);
}
}