[Android] Permission: Fix logic fail
Geoffrey Métais
git at videolan.org
Mon Mar 11 17:59:59 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 11 17:59:29 2019 +0100| [9ab4b95990bb90536bc80e246cf9d07c72f89040] | committer: Geoffrey Métais
Permission: Fix logic fail
> https://code.videolan.org/videolan/vlc-android/commit/9ab4b95990bb90536bc80e246cf9d07c72f89040
---
vlc-android/src/org/videolan/vlc/util/Permissions.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/util/Permissions.java b/vlc-android/src/org/videolan/vlc/util/Permissions.java
index 8b3f41933..bbc5d85b1 100644
--- a/vlc-android/src/org/videolan/vlc/util/Permissions.java
+++ b/vlc-android/src/org/videolan/vlc/util/Permissions.java
@@ -88,7 +88,7 @@ public class Permissions {
public static boolean checkReadStoragePermission(FragmentActivity activity, boolean exit) {
if (AndroidUtil.isMarshMallowOrLater && !canReadStorage(activity)) {
- if (!ActivityCompat.shouldShowRequestPermissionRationale(activity,
+ if (ActivityCompat.shouldShowRequestPermissionRationale(activity,
Manifest.permission.READ_EXTERNAL_STORAGE)) {
showStoragePermissionDialog(activity, exit);
} else
@@ -99,7 +99,7 @@ public class Permissions {
}
public static void askWriteStoragePermission(FragmentActivity activity, boolean exit, Runnable callback) {
- if (!ActivityCompat.shouldShowRequestPermissionRationale(activity,
+ if (ActivityCompat.shouldShowRequestPermissionRationale(activity,
Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
showStoragePermissionDialog(activity, exit);
} else
More information about the Android
mailing list