[FIX]
This commit is contained in:
parent
88c80390d8
commit
c710b689a3
@ -258,11 +258,17 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, Void, Void> {
|
|||||||
String fn = ze.getName();
|
String fn = ze.getName();
|
||||||
ArrayList<File> targets = map.get(fn);
|
ArrayList<File> targets = map.get(fn);
|
||||||
if (targets != null) {
|
if (targets != null) {
|
||||||
|
File lastTarget = null;
|
||||||
for (File target: targets) {
|
for (File target: targets) {
|
||||||
if (UpdateContext.DEBUG) {
|
if (UpdateContext.DEBUG) {
|
||||||
Log.d("RNUpdate", "Copying from resource " + fn + " to " + target);
|
Log.d("RNUpdate", "Copying from resource " + fn + " to " + target);
|
||||||
}
|
}
|
||||||
unzipToFile(zis, target);
|
if (lastTarget != null) {
|
||||||
|
copyFile(lastTarget, target);
|
||||||
|
} else {
|
||||||
|
unzipToFile(zis, target);
|
||||||
|
lastTarget = target;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user