From 1b9b0bcc184a4f2c1035ba2bd463b7cece4e0c91 Mon Sep 17 00:00:00 2001 From: sonora Date: Sat, 31 Jan 2015 11:13:30 +0100 Subject: [PATCH] small fix --- .../src/net/osmand/plus/download/DownloadIndexesThread.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java b/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java index 6222e8c116..77d33b35f5 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java @@ -577,7 +577,7 @@ public class DownloadIndexesThread { if (date != null && !date.equals(indexactivateddate) && !date.equals(indexfilesdate)) { - //This is checked in DownloadIndexAdapter: indexActivatedFileNames.containsKey(sfName)) { + //Discrimintaion if item is deactivated to 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){ @@ -604,8 +604,8 @@ public class DownloadIndexesThread { String indexfilesdate = indexFileNames.get(sfName); if (date != null && !date.equals(indexactivateddate) && - !date.equals(indexfilesdate)) { - //This is checked in DownloadIndexAdapter: indexActivatedFileNames.containsKey(sfName)) { + !date.equals(indexfilesdate)) && + indexActivatedFileNames.containsKey(sfName)) { stillUpdate.add(item); } }