protect new version download

This commit is contained in:
afischerdev 2023-03-15 19:04:48 +01:00
parent 594e6e3193
commit 1649b07faa

View file

@ -189,6 +189,7 @@ public class DownloadWorker extends Worker {
if (DEBUG) Log.d("worker", "check " + f.getName() + " " + thePFversion + "=" + version); if (DEBUG) Log.d("worker", "check " + f.getName() + " " + thePFversion + "=" + version);
if (thePFversion != -1 && thePFversion != version) { if (thePFversion != -1 && thePFversion != version) {
tmpSegementNames.add(f.getName().substring(0, f.getName().indexOf("."))); tmpSegementNames.add(f.getName().substring(0, f.getName().indexOf(".")));
versionChanged = true;
} }
} }
if (tmpSegementNames.size() > 0 && (downloadAll != VALUE_SEGMENT_DIFFS && downloadAll != VALUE_SEGMENT_DROPDIFFS)) { if (tmpSegementNames.size() > 0 && (downloadAll != VALUE_SEGMENT_DIFFS && downloadAll != VALUE_SEGMENT_DROPDIFFS)) {