[Android] Permission: Fix logic fail
Geoffrey Métais
git at videolan.org
Wed Mar 13 11:12:00 CET 2019
vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 11 17:59:29 2019 +0100| [20e2e3a7ddc52ed34649fdb1f8c9a5e72a3f0128] | committer: Geoffrey Métais
Permission: Fix logic fail
> https://code.videolan.org/videolan/vlc-android/commit/20e2e3a7ddc52ed34649fdb1f8c9a5e72a3f0128
---
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