Fix issue with wikivoayge not updated

This commit is contained in:
Victor Shcherb 2018-06-02 13:51:16 +02:00
parent df81a47b6e
commit 81fe4d2d94

View file

@ -178,7 +178,8 @@ public class DownloadResources extends DownloadResourceGroup {
outdated = true; outdated = true;
} else if(item.getType() == DownloadActivityType.WIKIVOYAGE_FILE) { } else if(item.getType() == DownloadActivityType.WIKIVOYAGE_FILE) {
long itemSize = item.getContentSize(); 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) { if (itemSize != oldItemSize) {
outdated = true; outdated = true;
} }