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

Readme example may run into infinite loop #340

Open
TWiStErRob opened this issue Dec 21, 2021 · 0 comments
Open

Readme example may run into infinite loop #340

TWiStErRob opened this issue Dec 21, 2021 · 0 comments

Comments

@TWiStErRob
Copy link

Basic Information

Device type: emu
OS version: 31
EasyPermissions version: 3.0.0

Describe the problem

The code in the README.md file results in an infinite loop of starting an invisible activity on top of my activity. The following conditions have to be met:

  • Call methodRequiresTwoPermission from onResume
  • Open the app
  • Deny permission
  • Ok on rationale
  • Deny permission

At this point because methodRequiresTwoPermission doesn't check for permissionPermanentlyDenied, the execution goes to requesting the permission, butit doesn't show the rationale dialog, but I get a callback that the permission is granted, but it doesn't have permission so it requests... [loop].

Code and logs

I used the code simplest fully functional combo from the README.md.

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

1 participant