summaryrefslogtreecommitdiff
path: root/src/com/android/deskclock/data/TimerModel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/deskclock/data/TimerModel.java')
-rw-r--r--src/com/android/deskclock/data/TimerModel.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/deskclock/data/TimerModel.java b/src/com/android/deskclock/data/TimerModel.java
index 5eb5d43e5..2ea31d6bd 100644
--- a/src/com/android/deskclock/data/TimerModel.java
+++ b/src/com/android/deskclock/data/TimerModel.java
@@ -838,11 +838,7 @@ final class TimerModel {
}
static void schedulePendingIntent(AlarmManager am, long triggerTime, PendingIntent pi) {
- if (Utils.isMOrLater()) {
- // Ensure the timer fires even if the device is dozing.
- am.setExactAndAllowWhileIdle(ELAPSED_REALTIME_WAKEUP, triggerTime, pi);
- } else {
- am.setExact(ELAPSED_REALTIME_WAKEUP, triggerTime, pi);
- }
+ // Ensure the timer fires even if the device is dozing.
+ am.setExactAndAllowWhileIdle(ELAPSED_REALTIME_WAKEUP, triggerTime, pi);
}
}