Revision 645f9fc5 F-Droid/src/org/fdroid/fdroid/net/ApkDownloader.java
F-Droid/src/org/fdroid/fdroid/net/ApkDownloader.java | ||
---|---|---|
21 | 21 |
package org.fdroid.fdroid.net; |
22 | 22 |
|
23 | 23 |
import android.content.Context; |
24 |
import android.os.Build; |
|
25 | 24 |
import android.content.Intent; |
26 | 25 |
import android.os.Bundle; |
27 | 26 |
import android.support.annotation.NonNull; |
... | ... | |
39 | 38 |
|
40 | 39 |
import java.io.File; |
41 | 40 |
import java.io.IOException; |
42 |
import java.net.URL; |
|
43 | 41 |
import java.security.NoSuchAlgorithmException; |
44 | 42 |
|
45 | 43 |
/** |
... | ... | |
188 | 186 |
// Can we use the cached version? |
189 | 187 |
if (verifyOrDelete(potentiallyCachedFile)) { |
190 | 188 |
delete(localFile); |
191 |
Utils.copy(potentiallyCachedFile, localFile); |
|
189 |
Utils.copyQuietly(potentiallyCachedFile, localFile);
|
|
192 | 190 |
prepareApkFileAndSendCompleteMessage(); |
193 | 191 |
return false; |
194 | 192 |
} |
... | ... | |
243 | 241 |
private void cacheIfRequired() { |
244 | 242 |
if (Preferences.get().shouldCacheApks()) { |
245 | 243 |
Utils.DebugLog(TAG, "Copying .apk file to cache at " + potentiallyCachedFile.getAbsolutePath()); |
246 |
Utils.copy(localFile, potentiallyCachedFile); |
|
244 |
Utils.copyQuietly(localFile, potentiallyCachedFile);
|
|
247 | 245 |
} |
248 | 246 |
} |
249 | 247 |
|
Also available in: Unified diff