Bug 601837 - Hide progress notification when reached 100% r=blassey a=mfinkle

This commit is contained in:
Alex Pakhotin 2010-10-04 20:05:43 -07:00
Родитель 797ee946d6
Коммит ade9f50623
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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) {