From eba137ce505bddf507d0f301ce31a68e7c2b87c3 Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Wed, 29 Aug 2012 09:21:02 -0700 Subject: [PATCH] Bug 786599 - Don't fire callbacks for cleared notifications. r=mfinkle --- mobile/android/base/NotificationHandler.java.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/android/base/NotificationHandler.java.in b/mobile/android/base/NotificationHandler.java.in index cfe06961913e..99924f9fcc2d 100644 --- a/mobile/android/base/NotificationHandler.java.in +++ b/mobile/android/base/NotificationHandler.java.in @@ -32,6 +32,11 @@ public class NotificationHandler extends BroadcastReceiver { } protected void handleIntent(Context context, Intent notificationIntent) { + // only fire the callback if the intent was clicked, not if it was cancelled + String action = notificationIntent.getAction(); + if (App.ACTION_ALERT_CLEAR.equals(action)) + return; + String appName = ""; Uri data = notificationIntent.getData(); if (data != null) {