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)