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

Commit 6f612a61 authored by Prashant Malani's avatar Prashant Malani Committed by Android Git Automerger
Browse files

am 2e268478: am b29eeb5a: am b3d02465: am 9a3eacbe: Merge "Revert "Always...

am 2e268478: am b29eeb5a: am b3d02465: am 9a3eacbe: Merge "Revert "Always re-establish kernel alarms when considering new alarm set"" into cw-d-mr1-dev

* commit '2e268478':
  Revert "Always re-establish kernel alarms when considering new alarm set"
parents 957e68c0 2e268478
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1611,8 +1611,7 @@ class AlarmManagerService extends SystemService {
        if (mAlarmBatches.size() > 0) {
            final Batch firstWakeup = findFirstWakeupBatchLocked();
            final Batch firstBatch = mAlarmBatches.get(0);
            // always update the kernel alarms, as a backstop against missed wakeups
            if (firstWakeup != null) {
            if (firstWakeup != null && mNextWakeup != firstWakeup.start) {
                mNextWakeup = firstWakeup.start;
                setLocked(ELAPSED_REALTIME_WAKEUP, firstWakeup.start);
            }
@@ -1625,8 +1624,7 @@ class AlarmManagerService extends SystemService {
                nextNonWakeup = mNextNonWakeupDeliveryTime;
            }
        }
        // always update the kernel alarm, as a backstop against missed wakeups
        if (nextNonWakeup != 0) {
        if (nextNonWakeup != 0 && mNextNonWakeup != nextNonWakeup) {
            mNextNonWakeup = nextNonWakeup;
            setLocked(ELAPSED_REALTIME, nextNonWakeup);
        }