permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.21k stars 1.44k forks source link

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

Open TurKurT656 opened 2 years ago

TurKurT656 commented 2 years ago

Overview

Expected

Actual

Environment

Reproducible steps

hotchemi commented 2 years ago

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

TurKurT656 commented 2 years ago

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 commented 2 years ago

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

TurKurT656 commented 2 years ago

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 commented 2 years ago

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