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

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

Issue 1938173002: Fix a bug that progress notification can linger after download completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 months 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/DownloadNotificationService.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
index 22624395c82fbb494b97ff0fd8cb826c6d7e5d30..1b3cf5d089d427025c6046d7fe2c93bc2c6aa4ae 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
@@ -141,9 +141,9 @@ public class DownloadNotificationService extends Service {
String percentText = formatter.format(percentage / 100.0);
String duration = getDurationString(timeRemainingInMillis);
builder.setContentText(duration).setContentInfo(percentText);
- addOrReplaceSharedPreferenceEntry(new DownloadSharedPreferenceEntry(
- notificationId, isResumable, canDownloadWhileMetered, downloadGuid, fileName));
}
+ addOrReplaceSharedPreferenceEntry(new DownloadSharedPreferenceEntry(
+ notificationId, isResumable, canDownloadWhileMetered, downloadGuid, fileName));
if (startTime > 0) builder.setWhen(startTime);
builder.addAction(R.drawable.bookmark_cancel_active,
mContext.getResources().getString(R.string.download_notification_cancel_button),
« 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