From 4976da09971981a6d92db078a7f70f37afca45a5 Mon Sep 17 00:00:00 2001 From: XinYiWorld <1349308479@qq.com> Date: Tue, 9 May 2017 11:18:25 +0800 Subject: [PATCH] =?UTF-8?q?6.0=E6=9D=83=E9=99=90=E9=80=82=E9=85=8D?= =?UTF-8?q?=E6=9D=83=E9=99=90=E9=80=82=E9=85=8DBUG=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xinyi/czbasedevtool/base/manager/PermissionManager.java | 2 +- .../xinyi/czbasedevtool/base/manager/ui_about/GlideMaster.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/PermissionManager.java b/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/PermissionManager.java index dcae2e5..e12a0cc 100644 --- a/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/PermissionManager.java +++ b/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/PermissionManager.java @@ -65,7 +65,7 @@ public List getNotPassedPermissions(Context context, List planT List result = null; for(String plan : planToRequestPermissions){ - if(ContextCompat.checkSelfPermission(context, plan) == PackageManager.PERMISSION_DENIED){ + if(ContextCompat.checkSelfPermission(context, plan) != PackageManager.PERMISSION_GRANTED){ if(result == null){ result = new ArrayList<>(); } diff --git a/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/ui_about/GlideMaster.java b/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/ui_about/GlideMaster.java index 47a9a62..9e7ccef 100644 --- a/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/ui_about/GlideMaster.java +++ b/CZBaseDevTool/src/main/java/com/xinyi/czbasedevtool/base/manager/ui_about/GlideMaster.java @@ -65,5 +65,8 @@ public static void display(Context mContext, String url, final ImageView img, Re // } // } // }); + + + } }