mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 786599 - Don't fire callbacks for cleared notifications. r=mfinkle
This commit is contained in:
parent
1ee6b2d94d
commit
eba137ce50
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user