diff options
author | Michael W <baddaemon87@gmail.com> | 2022-03-18 20:23:26 +0100 |
---|---|---|
committer | Michael W <baddaemon87@gmail.com> | 2022-04-18 10:03:08 +0200 |
commit | fa6047db25729eebf26826f738d4a4ab2327a512 (patch) | |
tree | e94535bf44d25673adbf26f9262c5a56413f8280 /src/com/android/deskclock/data/StopwatchNotificationBuilder.java | |
parent | 23d7064d1abf2feb41d3d1a1812038a26e836181 (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/StopwatchNotificationBuilder.java')
-rw-r--r-- | src/com/android/deskclock/data/StopwatchNotificationBuilder.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/deskclock/data/StopwatchNotificationBuilder.java b/src/com/android/deskclock/data/StopwatchNotificationBuilder.java index d426b5c0b..799902645 100644 --- a/src/com/android/deskclock/data/StopwatchNotificationBuilder.java +++ b/src/com/android/deskclock/data/StopwatchNotificationBuilder.java @@ -137,11 +137,8 @@ class StopwatchNotificationBuilder { .setPriority(Notification.PRIORITY_LOW) .setSmallIcon(R.drawable.stat_notify_stopwatch) .setStyle(new NotificationCompat.DecoratedCustomViewStyle()) - .setColor(ContextCompat.getColor(context, R.color.default_background)); - - if (Utils.isNOrLater()) { - notification.setGroup(nm.getStopwatchNotificationGroupKey()); - } + .setColor(ContextCompat.getColor(context, R.color.default_background)) + .setGroup(nm.getStopwatchNotificationGroupKey()); for (Action action : actions) { notification.addAction(action); |