зеркало из https://github.com/mozilla/gecko-dev.git
Bug 786599 - Don't fire callbacks for cleared notifications. r=mfinkle
This commit is contained in:
Родитель
1ee6b2d94d
Коммит
eba137ce50
|
@ -32,6 +32,11 @@ public class NotificationHandler extends BroadcastReceiver {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void handleIntent(Context context, Intent notificationIntent) {
|
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 = "";
|
String appName = "";
|
||||||
Uri data = notificationIntent.getData();
|
Uri data = notificationIntent.getData();
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче