summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Christopher Tate <ctate@google.com> 2014-12-02 23:56:58 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-12-02 23:56:58 +0000
commitf83fa5fee60f449db0591661471581b8ce128439 (patch)
tree593828f6b5b33dce27a273ee733896befd99cae0
parent953e90d0d77b050020fcdfae5b857108adb92102 (diff)
parentf9221a1076203832d8d88a8720c12cad91aee906 (diff)
am f9221a10: am 3bec5090: Merge "Properly recognize repeating wakeup alarms" into lmp-mr1-dev
* commit 'f9221a1076203832d8d88a8720c12cad91aee906': Properly recognize repeating wakeup alarms
-rw-r--r--services/core/java/com/android/server/AlarmManagerService.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/AlarmManagerService.java b/services/core/java/com/android/server/AlarmManagerService.java
index 831af85e010d..7b3e137b2543 100644
--- a/services/core/java/com/android/server/AlarmManagerService.java
+++ b/services/core/java/com/android/server/AlarmManagerService.java
@@ -1445,12 +1445,9 @@ class AlarmManagerService extends SystemService {
maxTriggerTime(nowELAPSED, nextElapsed, alarm.repeatInterval),
alarm.repeatInterval, alarm.operation, batch.standalone, true,
alarm.workSource, alarm.alarmClock, alarm.userId);
+ }
- // For now we count this as a wakeup alarm, meaning it needs to be
- // delivered immediately. In the future we should change this, but
- // that required delaying when we reschedule the repeat...!
- hasWakeup = false;
- } else if (alarm.wakeup) {
+ if (alarm.wakeup) {
hasWakeup = true;
}