From f692f11a0a382f056dafcdb886843f2ff055cc3c Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 2 Jun 2018 13:17:32 +0200 Subject: [PATCH] Fix wikivoyage update issue --- .../src/net/osmand/plus/download/DownloadResources.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java index bbc675eb81..cf7c9b105a 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java @@ -173,11 +173,17 @@ public class DownloadResources extends DownloadResourceGroup { if ((item.getType() == DownloadActivityType.NORMAL_FILE && !item.extra) || item.getType() == DownloadActivityType.ROADS_FILE || item.getType() == DownloadActivityType.WIKIPEDIA_FILE - || item.getType() == DownloadActivityType.WIKIVOYAGE_FILE || item.getType() == DownloadActivityType.DEPTH_CONTOUR_FILE || item.getType() == DownloadActivityType.SRTM_COUNTRY_FILE) { outdated = true; + } else if(item.getType() == DownloadActivityType.WIKIVOYAGE_FILE) { + long itemSize = item.getContentSize(); + long oldItemSize = app.getAppPath(item.getTargetFileName()).length(); + if (itemSize != oldItemSize) { + outdated = true; + } } else { + long itemSize = item.getContentSize(); long oldItemSize = 0; if (item.getType() == DownloadActivityType.VOICE_FILE) {