Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42f19578 authored by Erik's avatar Erik
Browse files

b/2483233 Made each reminder time a unique intent

Snoozing alarms was causing a leapfrog effect which would drop the
alert in the middle because of PendingIntent. By making each intent
unique to a given time this will no longer occur.

Change-Id: I6ca6821f7f8879a299775f4fca4e2ad0de55f1bc
parent aa773543
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1279,9 +1279,9 @@ public final class Calendar {
            }

            Intent intent = new Intent(EVENT_REMINDER_ACTION);
            intent.setData(ContentUris.withAppendedId(Calendar.CONTENT_URI, alarmTime));
            intent.putExtra(ALARM_TIME, alarmTime);
            PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent,
                    PendingIntent.FLAG_CANCEL_CURRENT);
            PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, 0);
            manager.set(AlarmManager.RTC_WAKEUP, alarmTime, pi);
        }