mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	[FIX]
This commit is contained in:
		| @@ -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; | ||||||
|  |                     } | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Yun
					Yun