Bug 708597 - Download toaster notification is displayed only for the first download [r=margaret]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 04 Jan 2012 23:36:57 -0500
changeset 85056 60937143195c087cab458224cdffad878d9b2caf
parent 85055 22a2d9ed21111c8fc0638f2550a77ff142b0f341
child 85057 71d4fc31c1677733fe187a91651d60cdbb9de907
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs708597
milestone12.0a1
Bug 708597 - Download toaster notification is displayed only for the first download [r=margaret]
mobile/android/chrome/content/downloads.js
--- a/mobile/android/chrome/content/downloads.js
+++ b/mobile/android/chrome/content/downloads.js
@@ -128,19 +128,19 @@ var Downloads = {
     let msgKey = "";
     if (aTopic == "dl-start") {
       msgKey = "alertDownloadsStart";
       if (!this._progressAlert) {
         if (!this._dlmgr)
           this._dlmgr = Cc["@mozilla.org/download-manager;1"].getService(Ci.nsIDownloadManager);
         this._progressAlert = new AlertDownloadProgressListener();
         this._dlmgr.addListener(this._progressAlert);
+      }
 
-        NativeWindow.toast.show(Strings.browser.GetStringFromName("alertDownloadsToast"), "long");
-      }
+      NativeWindow.toast.show(Strings.browser.GetStringFromName("alertDownloadsToast"), "long");
     } else if (aTopic == "dl-done") {
       msgKey = "alertDownloadsDone";
     }
 
     if (msgKey) {
       let download = aSubject.QueryInterface(Ci.nsIDownload);
       this.showAlert(download, Strings.browser.formatStringFromName(msgKey, [download.displayName], 1));
     }