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

[KTX] onNeverAskAgain gets called when touch outside of permission dialog #745

Open
TurKurT656 opened this issue Sep 1, 2021 · 5 comments
Labels

Comments

@TurKurT656
Copy link

Overview

  • When the permission dialog pops up, if user touches outside of the permission dialog, the onNeverAskAgain lambda gets executed instead on onPermissionDenied

Expected

  • Execution of onPermissionDenied when user touches outside the permission dialog

Actual

  • Execution of onNeverAskAgain when user touches outside the permission dialog

Environment

  • Which library version are you using? 1.1.2
  • On which devices do you observe the issue? All

Reproducible steps

  • Ask for a permission with permission.launch()
  • After the dialog pops up, touch outside of the dialog's area
@hotchemi
Copy link
Member

Sorry I'm not sure how to repro the issue, is my steps correct?
1

@TurKurT656
Copy link
Author

can you test this on API 30?
This is a little bit strange cause i can easily dismiss the dialog by touching outside of the dialog

@hotchemi
Copy link
Member

Thx, I could dismiss the dialogue but looks like onPermissionDenied is called. could you try it out with ktx-sample module?

@TurKurT656
Copy link
Author

I tried ktx-sample and it was ok (never ask again doesn't called). However the first time I called camera permission and then I touched outside of the dialog neither onNeverAskAgain nor onPermissionDenied get called. But after I pressed deny button once and then launched the permission again and this time by pressing outside of the dialog onPermissionDenied gets called .

@hotchemi
Copy link
Member

thx! um...somehow couldn't repro but let me try again.

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

No branches or pull requests

2 participants