Fix wikivoyage update issue
This commit is contained in:
parent
9fe82a88dc
commit
f692f11a0a
1 changed files with 7 additions and 1 deletions
|
@ -173,11 +173,17 @@ public class DownloadResources extends DownloadResourceGroup {
|
||||||
if ((item.getType() == DownloadActivityType.NORMAL_FILE && !item.extra)
|
if ((item.getType() == DownloadActivityType.NORMAL_FILE && !item.extra)
|
||||||
|| item.getType() == DownloadActivityType.ROADS_FILE
|
|| item.getType() == DownloadActivityType.ROADS_FILE
|
||||||
|| item.getType() == DownloadActivityType.WIKIPEDIA_FILE
|
|| item.getType() == DownloadActivityType.WIKIPEDIA_FILE
|
||||||
|| item.getType() == DownloadActivityType.WIKIVOYAGE_FILE
|
|
||||||
|| item.getType() == DownloadActivityType.DEPTH_CONTOUR_FILE
|
|| item.getType() == DownloadActivityType.DEPTH_CONTOUR_FILE
|
||||||
|| item.getType() == DownloadActivityType.SRTM_COUNTRY_FILE) {
|
|| item.getType() == DownloadActivityType.SRTM_COUNTRY_FILE) {
|
||||||
outdated = true;
|
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 {
|
} else {
|
||||||
|
|
||||||
long itemSize = item.getContentSize();
|
long itemSize = item.getContentSize();
|
||||||
long oldItemSize = 0;
|
long oldItemSize = 0;
|
||||||
if (item.getType() == DownloadActivityType.VOICE_FILE) {
|
if (item.getType() == DownloadActivityType.VOICE_FILE) {
|
||||||
|
|
Loading…
Reference in a new issue