[Android] Remove redundant check

Geoffrey Métais git at videolan.org
Fri Jan 20 16:01:35 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jan 20 16:01:07 2017 +0100| [8bf22beb479155d3f0e5f58592d6c1d012f873af] | committer: Geoffrey Métais

Remove redundant check

> https://code.videolan.org/videolan/vlc-android/commit/8bf22beb479155d3f0e5f58592d6c1d012f873af
---

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

diff --git a/vlc-android/src/org/videolan/vlc/util/Permissions.java b/vlc-android/src/org/videolan/vlc/util/Permissions.java
index ae9ec81..abeeac4 100644
--- a/vlc-android/src/org/videolan/vlc/util/Permissions.java
+++ b/vlc-android/src/org/videolan/vlc/util/Permissions.java
@@ -95,7 +95,7 @@ public class Permissions {
     }
 
     public static void checkWriteSettingsPermission(Activity activity, int mode) {
-        if (AndroidUtil.isMarshMallowOrLater() && !canWriteSettings(activity)) {
+        if (!canWriteSettings(activity)) {
             showSettingsPermissionDialog(activity, mode);
         }
     }



More information about the Android mailing list