From a899ae827b670e462b7c488fcbb0095059b9adf6 Mon Sep 17 00:00:00 2001 From: Amith Dsouza Date: Tue, 9 Aug 2022 17:02:55 +0000 Subject: Update targetSDKlevel to 30 When the targetSDKlevel is updated, changes are required in setting notifications for timers. Updated the logic to build, set and trigger notificaitons for timers to prevent issues that were reported in bugs like b/199822689 This is the first in a series of patches that will try to bump the targetSDKlevel to 33 Multiple manual tests run to check functionality. Bug: 239910985 Test: adb shell am instrument -w com.android.deskclock.tests Change-Id: I1528bb3e0189b8d72a9025526af558bfe4aec4eb --- Android.bp | 2 +- AndroidManifest.xml | 11 +--------- src/com/android/deskclock/data/TimerModel.kt | 25 +++++++++++++++------- .../deskclock/data/TimerNotificationBuilder.kt | 13 ++++++++++- 4 files changed, 31 insertions(+), 20 deletions(-) diff --git a/Android.bp b/Android.bp index a6e42742e..235bad983 100644 --- a/Android.bp +++ b/Android.bp @@ -7,7 +7,7 @@ android_app { name: "DeskClock", resource_dirs: ["res"], sdk_version: "current", - target_sdk_version: "24", + target_sdk_version: "30", overrides: [ "AlarmClock", ], diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 098637b75..82174a987 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -22,7 +22,7 @@ - + @@ -34,15 +34,6 @@ - - - - -