Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 671 forks source link

Fragment is recreated after permission confirming #231

Closed Papashkin closed 3 years ago

Papashkin commented 5 years ago

I implemented this library to my project and now I'm trying to use it in fragment to get camera permission.

Expected behaviour

After confirming I want to start camera fragment withaout application re-creation.

Actual behaviour

After confirming I return to last state of application. I tried to override the onRequestPermissionsResult method, but in this method I receive the GRANTED value (i.e. 0) in any cases (independently I click on cancel or ok button in permission dialog).

Version of the library

last version (5.0.0)

NimaaZx commented 4 years ago

@Papashkin Hi, Can you resolve this problem ?

nguyennh-0786 commented 4 years ago

Maybe add a small delay time before doing something in onPermissionGranted/onPermissionDenied

pedrovgs commented 4 years ago

@Papashkin can you create a small project reproducing this issue so we can use it as a playground to see what's going on? Thank you in advance 😃

Papashkin commented 3 years ago

Hello! This issue is no longer relevant anymore. You can close this issue.