From 72d3903bd1c9626956f04c8e3749c5e957b19875 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 3 Sep 2022 17:22:02 +0200 Subject: [PATCH] handle Video access permission on Android 13+ --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index 1c54f3bdd..fad2c47b8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -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 { }