handle Video access permission on Android 13+

This commit is contained in:
tibbi 2022-09-03 17:22:02 +02:00
parent 3e529c4e3a
commit 72d3903bd1
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
callback(granted)
if (granted && isRPlus()) {
handlePermission(PERMISSION_MEDIA_LOCATION) {}
if (isTiramisuPlus()) {
handlePermission(PERMISSION_READ_MEDIA_VIDEO) {}
}
if (!mWasMediaManagementPromptShown) {
mWasMediaManagementPromptShown = true
handleMediaManagementPrompt { }