Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant