Use UPDATE_CURRENT instead of CANCEL_CURRENT

pull/618/head
Alex Baker 7 years ago
parent ac434b1183
commit cc9694aaf9

@ -63,7 +63,7 @@ public class CalendarNotificationIntentService extends RecurringIntervalIntentSe
eventAlarm.setData(Uri.parse(URI_PREFIX + "://" + event.getId())); eventAlarm.setData(Uri.parse(URI_PREFIX + "://" + event.getId()));
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, PendingIntent pendingIntent = PendingIntent.getBroadcast(context,
CalendarAlarmReceiver.REQUEST_CODE_CAL_REMINDER, eventAlarm, PendingIntent.FLAG_CANCEL_CURRENT); CalendarAlarmReceiver.REQUEST_CODE_CAL_REMINDER, eventAlarm, PendingIntent.FLAG_UPDATE_CURRENT);
long reminderTime = event.getStart() - FIFTEEN_MINUTES; long reminderTime = event.getStart() - FIFTEEN_MINUTES;
alarmManager.wakeup(reminderTime, pendingIntent); alarmManager.wakeup(reminderTime, pendingIntent);

Loading…
Cancel
Save