Skip to content

Commit

Permalink
6.0权限适配权限适配BUG 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
XinYiWorld committed May 9, 2017
1 parent c607644 commit 4976da0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public List<String> getNotPassedPermissions(Context context, List<String> planT

List<String> 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<>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,8 @@ public static void display(Context mContext, String url, final ImageView img, Re
// }
// }
// });



}
}

0 comments on commit 4976da0

Please sign in to comment.