From 8914ef58e0c3c463dd4ea1cca7c6e87bb6a5adb4 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 2 Jun 2018 13:51:16 +0200 Subject: [PATCH] Fix issue with wikivoayge not updated --- OsmAnd/src/net/osmand/plus/download/DownloadResources.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java index cf7c9b105a..62b211e687 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadResources.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadResources.java @@ -178,7 +178,8 @@ public class DownloadResources extends DownloadResourceGroup { outdated = true; } else if(item.getType() == DownloadActivityType.WIKIVOYAGE_FILE) { long itemSize = item.getContentSize(); - long oldItemSize = app.getAppPath(item.getTargetFileName()).length(); + long oldItemSize = app.getAppPath(IndexConstants.WIKIVOYAGE_INDEX_DIR + + item.getTargetFileName()).length(); if (itemSize != oldItemSize) { outdated = true; }