armcha / armcha/SimplePermissions

Nothing happens if the permissions are already granted

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.