permissions-dispatcher / PermissionsDispatcher

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

Wrong behaviour of ktx library when two premissions are requested in one screen #717

Closed Dzmitry-Lakisau closed 3 years ago

Dzmitry-Lakisau commented 3 years ago

Sample code can be found here: https://github.com/DzmitryLakisau/Permissions-Dispatcher-KTX-Bug

Wrong action is called after granting second permission.

Steps to reproduce:

  1. Press "Open camera".
  2. Grant camera permission.
  3. Camera is opened. Close it.
  4. Press "Open file manager".
  5. Grant storage permission.
  6. Camera is opened again.

After this, if press "Open file manager" again right action will be called. This issue is absent in annotation version of library.

hotchemi commented 3 years ago

thx, let us take a look

hotchemi commented 3 years ago

we've addressed the issue in 1.0.4. thx for the report! 🙏