Skip to content

Commit

Permalink
Grant results pointer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Nov 24, 2016
1 parent e7fce7c commit 9bf0276
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis

super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == MY_PERMISSIONS_REQUEST_STORAGE) {
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
if ((grantResults.length > 0) && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {
installFile();
finish();
} else {
Expand Down

0 comments on commit 9bf0276

Please sign in to comment.