properly update the notification if the event is edited

This commit is contained in:
tibbi 2016-07-07 11:09:43 +02:00
parent 5f084488ac
commit 0d88e35297
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class NotificationPublisher extends BroadcastReceiver {
private PendingIntent getPendingIntent(Context context, Event event) { private PendingIntent getPendingIntent(Context context, Event event) {
final Intent intent = new Intent(context, EventActivity.class); final Intent intent = new Intent(context, EventActivity.class);
intent.putExtra(Constants.EVENT, event); intent.putExtra(Constants.EVENT, event);
return PendingIntent.getActivity(context, event.getId(), intent, 0); return PendingIntent.getActivity(context, event.getId(), intent, PendingIntent.FLAG_UPDATE_CURRENT);
} }
private Notification getNotification(Context context, PendingIntent pendingIntent, String content) { private Notification getNotification(Context context, PendingIntent pendingIntent, String content) {