From 5d5c9e1920fb70ad77c9385630dd0c716ae2fb9d Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 15 Apr 2022 09:03:32 +0200 Subject: [PATCH] request MEDIA_LOCATION on SDK 30 already --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8ca0bfd79..b909e64cd 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 @@ -156,7 +156,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { private fun handleMediaPermissions(callback: (granted: Boolean) -> Unit) { handlePermission(PERMISSION_WRITE_STORAGE) { granted -> callback(granted) - if (granted && isSPlus()) { + if (granted && isRPlus()) { handlePermission(PERMISSION_MEDIA_LOCATION) {} } }