use PendingIntent.FLAG_UPDATE_CURRENT in calls to PendingIntent.getActivity() to avoid re-using the same extra data on every intent.

fork-5.53.8
Andy Irving 2013-12-03 21:48:16 +00:00
rodzic b2bd19d787
commit 7f44b029fe
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -77,7 +77,7 @@ public class NotificationItem {
intent.setData((Uri.parse("custom://"+System.currentTimeMillis())));
return PendingIntent.getActivity(context, 0, intent, 0);
return PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
}
}

Wyświetl plik

@ -62,6 +62,6 @@ public class NotificationState {
Log.w("NotificationState", "Pending array off intent length: " +
intent.getLongArrayExtra("thread_ids").length);
return PendingIntent.getBroadcast(context, 0, intent, 0);
return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
}
}