зеркало из https://github.com/mozilla/gecko-dev.git
Bug 601837 - Hide progress notification when reached 100% r=blassey a=mfinkle
This commit is contained in:
Родитель
797ee946d6
Коммит
ade9f50623
|
@ -558,6 +558,12 @@ class GeckoAppShell
|
|||
AlertNotification notification = mAlertNotifications.get(notificationID);
|
||||
if (notification != null)
|
||||
notification.updateProgress(aAlertText, aProgress, aProgressMax);
|
||||
|
||||
if (aProgress == aProgressMax) {
|
||||
// Hide the notification at 100%
|
||||
removeObserver(aAlertName);
|
||||
removeNotification(notificationID);
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertsProgressListener_OnCancel(String aAlertName) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче