Bug 592088 - support progress indicators in android status bar notifications r=blassey a=blocking-fennec

This commit is contained in:
Alex Pakhotin
2010-10-01 14:21:21 -07:00
parent b02c027c7f
commit 063facc1b7
11 changed files with 354 additions and 55 deletions

View File

@@ -82,12 +82,13 @@ public class NotificationHandler
Log.i("GeckoAppJava", "Handle notification ID " + notificationID);
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.cancel(notificationID);
if (App.mAppContext != null) {
// This should call the observer, if any
App.mAppContext.handleNotification(action, alertName, alertCookie);
} else {
// The app is not running, just cancel this notification
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.cancel(notificationID);
}
if (App.ACTION_ALERT_CLICK.equals(action)) {