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

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

Issue 2542563006: Don't animate the notification for pending download (Closed)
Patch Set: Created 4 years 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 d98be03c45984bad77aba833a783bb28856cbea3..94759047043cf5d30f89448b1f4e27dc253cd5fa 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
@@ -272,8 +272,10 @@ public class DownloadNotificationService extends Service {
if (mStopPostingProgressNotifications) return;
String contentText = mContext.getResources().getString(isDownloadPending
? R.string.download_notification_pending : R.string.download_started);
+ int resId = isDownloadPending ? android.R.drawable.stat_sys_download_done
+ : android.R.drawable.stat_sys_download;
NotificationCompat.Builder builder = buildNotification(
- android.R.drawable.stat_sys_download, fileName, contentText);
+ resId, fileName, contentText);
boolean indeterminate = (percentage == INVALID_DOWNLOAD_PERCENTAGE) || isDownloadPending;
builder.setOngoing(true);
// Avoid moving animations while download is not downloading.
« 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