Skip to content

Commit 82dbcfe

Browse files
committed
udpate
1 parent 48d2ca4 commit 82dbcfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/cn/reactnative/modules/update/DownloadTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ private void copyFromResource(HashMap<String, ArrayList<File> > resToCopy, HashM
261261
String fn = ze.getName();
262262
long zipCrc32 = ze.getCrc();
263263
String crc32Decimal = getCRC32AsDecimal(zipCrc32);
264-
ArrayList<File> targets = resToCopy.get(fn);
264+
ArrayList<File> targets = resToCopy2.get(crc32Decimal);
265265
if(targets==null || targets.isEmpty()){
266-
targets = resToCopy2.get(crc32Decimal);
266+
targets = resToCopy.get(fn);
267267
}
268268
if (targets != null) {
269269
File lastTarget = null;

0 commit comments

Comments
 (0)