summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 00:22:58 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 00:22:58 +0000
commite112a09a6471f90e1ccd237e7a4fc4323700e589 (patch)
tree42ff4e77b9d1b4e838529c003f65e5e876a1533c
parentc1293489212f5f9eed675fa053b0d0566248b6a5 (diff)
parentf77c545b93919a55b3ca4817bbe06142fa634a63 (diff)
downloadDeskClock-android14-qpr2-s3-release.tar.gz
Change-Id: I2e7fae6213f6377626f7c80555fdd4ebf0cc1698
-rw-r--r--src/com/android/deskclock/data/DataModel.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/deskclock/data/DataModel.kt b/src/com/android/deskclock/data/DataModel.kt
index 72e41896a..3443cef76 100644
--- a/src/com/android/deskclock/data/DataModel.kt
+++ b/src/com/android/deskclock/data/DataModel.kt
@@ -30,6 +30,7 @@ import android.os.Handler
import android.os.Looper
import android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS
import android.provider.Settings.ACTION_SOUND_SETTINGS
+import android.provider.Settings.EXTRA_APP_PACKAGE
import android.view.View
import androidx.annotation.Keep
import androidx.annotation.StringRes
@@ -130,7 +131,7 @@ class DataModel private constructor() {
// Attempt to open the notification settings for this app.
context.startActivity(
Intent("android.settings.APP_NOTIFICATION_SETTINGS")
- .putExtra("app_package", context.packageName)
+ .putExtra(EXTRA_APP_PACKAGE, context.packageName)
.putExtra("app_uid", context.applicationInfo.uid)
.addFlags(FLAG_ACTIVITY_NEW_TASK))
return