armcha / armcha/SimplePermissions
Nothing happens if the permissions are already granted
- Dominant language
- Java
- Stars
- 24
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.