1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
Yun 2019-03-25 18:19:56 +08:00
parent 88c80390d8
commit c710b689a3

View File

@ -258,11 +258,17 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, Void, Void> {
String fn = ze.getName();
ArrayList<File> targets = map.get(fn);
if (targets != null) {
File lastTarget = null;
for (File target: targets) {
if (UpdateContext.DEBUG) {
Log.d("RNUpdate", "Copying from resource " + fn + " to " + target);
}
unzipToFile(zis, target);
if (lastTarget != null) {
copyFile(lastTarget, target);
} else {
unzipToFile(zis, target);
lastTarget = target;
}
}
}
}