Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't you make "check()" a no-op when all the requested permissions are already granted? #105

Open
VioletGiraffe opened this issue Jul 6, 2019 · 1 comment

Comments

@VioletGiraffe
Copy link

VioletGiraffe commented Jul 6, 2019

Is there a reason why check() can't see that all the permissions are granted and do nothing in that case? My activity does onPause() - onResume() when I call check () even if no actual request is shown (all permissions already granted).

@ParkSangGwon
Copy link
Owner

@VioletGiraffe

  • If you want only check permission granted, you can use TedPermission.isGranted()
  • And onPause(), onResume lifecycle is normal. If you use original check permission logic, that has same lifecycle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants