[Android] Fix canWriteStorage on A11

js6pak git at videolan.org
Mon Jan 10 06:53:29 UTC 2022


vlc-android | branch: master | js6pak <kubastaron at hotmail.com> | Mon Jan  3 14:02:11 2022 +0100| [135dba54dd115ccd3e8adc2f67f938388b657b4b] | committer: Nicolas Pomepuy

Fix canWriteStorage on A11

> https://code.videolan.org/videolan/vlc-android/commit/135dba54dd115ccd3e8adc2f67f938388b657b4b
---

 application/vlc-android/src/org/videolan/vlc/util/Permissions.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/util/Permissions.kt b/application/vlc-android/src/org/videolan/vlc/util/Permissions.kt
index 66f4d1524..938e7677e 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/Permissions.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/Permissions.kt
@@ -102,7 +102,7 @@ object Permissions {
 
     @JvmOverloads
     fun canWriteStorage(context: Context = AppContextProvider.appContext): Boolean {
-        return ContextCompat.checkSelfPermission(context,
+        return hasAllAccess(context) || ContextCompat.checkSelfPermission(context,
                 Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED
     }
 



More information about the Android mailing list