Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerDelegate.java

Issue 2476583003: Fix a bug that downloaded file is added twice to Android DownloadManager (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerDelegate.java
index d7e274e3d01eff3411d46bfbb9e337fee13bfb87..b2b947e7297c15a2bdf0a14933bf66df6612291b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerDelegate.java
@@ -101,9 +101,10 @@ public class DownloadManagerDelegate {
} catch (IllegalAccessException e) {
Log.e(TAG, "Error accessing the needed method.");
}
+ } else {
+ downloadId = manager.addCompletedDownload(fileName, description, true, mimeType, path,
+ length, useSystemNotification);
}
- downloadId = manager.addCompletedDownload(fileName, description, true, mimeType, path,
- length, useSystemNotification);
addDownloadIdMapping(downloadId, downloadGuid);
return downloadId;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698