Skip to content

Commit

Permalink
Also request USE_FULL_SCREEN_INTENT perm
Browse files Browse the repository at this point in the history
  • Loading branch information
Stypox committed Sep 27, 2024
1 parent c5de889 commit ed2ab74
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ed2ab74

Please sign in to comment.