Fix issue with wikivoayge not updated

This commit is contained in:
Victor Shcherb 2018-06-02 13:51:16 +02:00
parent 4ac9d6b126
commit 8914ef58e0

View file

@ -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;
}