SimplePermissions icon indicating copy to clipboard operation
SimplePermissions copied to clipboard

Nothing happens if the permissions are already granted

Open metalurgus opened this issue 9 years ago • 1 comments

When the permissions are already granted, and I try to re-request them, nothing happens. That is because of PermissionActivity.java:

if (!permissionsToRequest.isEmpty()) {
                ActivityCompat.requestPermissions(this, permissionsToRequest.toArray(new String[permissionsToRequest.size()]),
                        PERMISSION_REQUEST_CODE);
            }

I think that there should be some else statement where some success callback is called.

Now to check if permissions are already granted, I have to call

PermissionUtils.isGranted(this, permission) for each permission that I need to check.

metalurgus avatar Jan 25 '17 09:01 metalurgus

Thanks @metalurgus it will be fixed as soon as possible

armcha avatar Jan 27 '17 15:01 armcha