From ed2ab74bcc522a5a3a8a8e150ef3f004cebbaf2d Mon Sep 17 00:00:00 2001 From: Stypox Date: Sat, 28 Sep 2024 00:46:46 +0200 Subject: [PATCH] Also request USE_FULL_SCREEN_INTENT perm --- .../main/kotlin/org/stypox/dicio/ui/home/WakeWordWidget.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/stypox/dicio/ui/home/WakeWordWidget.kt b/app/src/main/kotlin/org/stypox/dicio/ui/home/WakeWordWidget.kt index d0618f8c..cf3bdc72 100644 --- a/app/src/main/kotlin/org/stypox/dicio/ui/home/WakeWordWidget.kt +++ b/app/src/main/kotlin/org/stypox/dicio/ui/home/WakeWordWidget.kt @@ -35,7 +35,10 @@ import org.stypox.dicio.ui.util.LoadingProgress import org.stypox.dicio.ui.util.WakeStatesPreviews import org.stypox.dicio.ui.util.loadingProgressString -val wakeWordPermissions = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) +val wakeWordPermissions = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) + arrayOf(Manifest.permission.RECORD_AUDIO, Manifest.permission.POST_NOTIFICATIONS, + Manifest.permission.USE_FULL_SCREEN_INTENT) +else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) arrayOf(Manifest.permission.RECORD_AUDIO, Manifest.permission.POST_NOTIFICATIONS) else arrayOf(Manifest.permission.RECORD_AUDIO)