permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.21k stars 1.44k forks source link

Use the constant from `PermissionChecker` #658

Closed manijshrestha closed 4 years ago

manijshrestha commented 4 years ago

As we are using PermissionChecker.checkSelfPermission, we would want to check against PermissionChecker.PERMISSION_GRANTED constant instead.