TedPermission icon indicating copy to clipboard operation
TedPermission copied to clipboard

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

Open VioletGiraffe opened this issue 5 years ago • 1 comments

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).

VioletGiraffe avatar Jul 06 '19 21:07 VioletGiraffe

@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

ParkSangGwon avatar Sep 10 '19 11:09 ParkSangGwon