From 5f9b256131497720e286d84ae01edc37b82b1460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=BE=8E=E6=B6=8Czinc?= <56002982@qq.com> Date: Tue, 12 Jun 2018 11:33:44 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=94=B3?= =?UTF-8?q?=E8=AF=B7manifest=E6=97=B6=EF=BC=8C6.0=E4=BB=A5=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E7=89=88=E6=9C=AC=E4=BC=9A=E6=9C=89=E9=81=AE=E6=8C=A1?= =?UTF-8?q?=E6=A1=86=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zinc/libpermission/utils/JPermissionUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib.permission/src/main/java/com/zinc/libpermission/utils/JPermissionUtil.java b/lib.permission/src/main/java/com/zinc/libpermission/utils/JPermissionUtil.java index a818736..e6d816d 100644 --- a/lib.permission/src/main/java/com/zinc/libpermission/utils/JPermissionUtil.java +++ b/lib.permission/src/main/java/com/zinc/libpermission/utils/JPermissionUtil.java @@ -152,6 +152,12 @@ public void canceled(int requestCode) { * @version */ public static void requestAllPermission(Context context, List excluedPermission, IPermission iPermission) { + + //如果小于 6.0 不进行逻辑处理 + if(Build.VERSION.SDK_INT <= Build.VERSION_CODES.M){ + return; + } + String[] manifestPermission = JPermissionHelper.getManifestPermission(context); if (manifestPermission == null) {