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

Commit f9221a10 authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am 3bec5090: Merge "Properly recognize repeating wakeup alarms" into lmp-mr1-dev

* commit '3bec5090':
  Properly recognize repeating wakeup alarms
parents f246b484 3bec5090
Loading
Loading
Loading
Loading
+2 −5
Original line number Original line Diff line number Diff line
@@ -1445,12 +1445,9 @@ class AlarmManagerService extends SystemService {
                            maxTriggerTime(nowELAPSED, nextElapsed, alarm.repeatInterval),
                            maxTriggerTime(nowELAPSED, nextElapsed, alarm.repeatInterval),
                            alarm.repeatInterval, alarm.operation, batch.standalone, true,
                            alarm.repeatInterval, alarm.operation, batch.standalone, true,
                            alarm.workSource, alarm.alarmClock, alarm.userId);
                            alarm.workSource, alarm.alarmClock, alarm.userId);
                }


                    // For now we count this as a wakeup alarm, meaning it needs to be
                if (alarm.wakeup) {
                    // delivered immediately.  In the future we should change this, but
                    // that required delaying when we reschedule the repeat...!
                    hasWakeup = false;
                } else if (alarm.wakeup) {
                    hasWakeup = true;
                    hasWakeup = true;
                }
                }