Skip to content

Commit

Permalink
- Fix rational message trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
gun0912 committed May 27, 2016
1 parent eaa43b0 commit 98b44c7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,20 @@ private void checkPermissions(boolean fromOnActivityResult) {

ArrayList<String> needPermissions = new ArrayList<>();

boolean showRationale = false;

for (String permission : permissions) {



if (ContextCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {
needPermissions.add(permission);
showRationale=true;
}

}


boolean showRationale = false;
/*
for(String permission:needPermissions){
Expand All @@ -151,6 +152,7 @@ private void checkPermissions(boolean fromOnActivityResult) {
}
*/


if (needPermissions.isEmpty()) {
Expand Down

0 comments on commit 98b44c7

Please sign in to comment.