Bug 786599 - Don't fire callbacks for cleared notifications. r=mfinkle

This commit is contained in:
Wes Johnston 2012-08-29 09:21:02 -07:00
Родитель 1ee6b2d94d
Коммит eba137ce50
1 изменённых файлов: 5 добавлений и 0 удалений

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

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