summaryrefslogtreecommitdiff
path: root/src/com/android/deskclock/data/TimerModel.java
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2022-03-18 20:23:26 +0100
committerMichael W <baddaemon87@gmail.com>2022-04-18 10:03:08 +0200
commitfa6047db25729eebf26826f738d4a4ab2327a512 (patch)
treee94535bf44d25673adbf26f9262c5a56413f8280 /src/com/android/deskclock/data/TimerModel.java
parent23d7064d1abf2feb41d3d1a1812038a26e836181 (diff)
DeskClock: Remove compatibility to old APIsHEADsugisawa-mr1
* We never build on these, so the code and annotations are useless Change-Id: I791370b531ecadcbddb63ca04d5c4c51aafe1bc1
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);
}
}