From 23c165c581f882c5317e28bfc3f1899540ed7990 Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Wed, 26 Oct 2011 14:32:18 -0400 Subject: [PATCH] Bug 697078 - Add a toast notification indicating start of download on download start [r=wesj] --- mobile/chrome/content/downloads.js | 2 ++ mobile/locales/en-US/chrome/browser.properties | 1 + 2 files changed, 3 insertions(+) diff --git a/mobile/chrome/content/downloads.js b/mobile/chrome/content/downloads.js index 7fc75a05ec7..1972a58b028 100644 --- a/mobile/chrome/content/downloads.js +++ b/mobile/chrome/content/downloads.js @@ -132,6 +132,8 @@ var Downloads = { 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"); } } else if (aTopic == "dl-done") { msgKey = "alertDownloadsDone"; diff --git a/mobile/locales/en-US/chrome/browser.properties b/mobile/locales/en-US/chrome/browser.properties index fc8b0cae6da..3aaa94f6718 100644 --- a/mobile/locales/en-US/chrome/browser.properties +++ b/mobile/locales/en-US/chrome/browser.properties @@ -107,6 +107,7 @@ alertDownloadsDone=%S has finished downloading alertCantOpenDownload=Can't open file. Tap to save it. alertDownloadsSize=Download too big alertDownloadsNoSpace=Not enough storage space +alertDownloadsToast=Download started… downloadCancelPromptTitle=Cancel Download downloadCancelPromptMessage=Do you want to cancel this download?