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

permissions-dispatcher:ktx:1.0.4 has bug #730

Open lixbandroid opened 3 years ago

lixbandroid commented 3 years ago

1,I use in fragments, when I frequent switching fragments, registers observe many times 2,two fragments in same actvity are watch the same permissions, switching fragments, only one be response

hotchemi commented 2 years ago

interesting use case, but I think this is kind of an expected behaviour? we can easily fix the issue but I thought only the latest requiresPermission function is supposed to be called.

only one be response

could you elaborate on which fragment can handle the response?