Bug 661612 - Update download progress notification keeps reappearing in Android 3 [r=mfinkle,alexp]
authorSriram Ramasubramanian <sriram@mozilla.com>
Fri, 16 Sep 2011 12:10:58 -0700
changeset 78405 b5530d35e7c142e0491e731692c875e08296aed0
parent 78404 94182039abda922bd79f44c939eea3bd3305e54a
child 78406 1fc426aa485c8d2ec7e4d3758c7540514b6e5f30
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, alexp
bugs661612
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 661612 - Update download progress notification keeps reappearing in Android 3 [r=mfinkle,alexp]
embedding/android/AlertNotification.java
--- a/embedding/android/AlertNotification.java
+++ b/embedding/android/AlertNotification.java
@@ -110,17 +110,17 @@ public class AlertNotification
         if (!mProgressStyle) {
             // Custom view
             int layout =  aAlertText.length() > 0 ? R.layout.notification_progress_text : R.layout.notification_progress;
 
             RemoteViews view = new RemoteViews(GeckoApp.mAppContext.getPackageName(), layout);
             view.setImageViewResource(R.id.notificationImage, mIcon);
             view.setTextViewText(R.id.notificationTitle, mTitle);
             contentView = view;
-            flags |= FLAG_ONGOING_EVENT;
+            flags |= FLAG_ONGOING_EVENT | FLAG_ONLY_ALERT_ONCE;
 
             mProgressStyle = true;
         }
 
         String text;
         double percent = 0;
         if (aProgressMax > 0)
             percent = ((double)aProgress / (double)aProgressMax);