is responsible for opening the "android permission prompt" but triggers the above callback in the first run with
false
without waiting for a user action. When I click "Allow" btn the callback is triggered with
true
. Is the first run with false inteded? Do we have to suspend here and wait for a user action somehow? I would expect that the callback is only triggered when a button of the prompt is clciked.
f
Felix Schütz
09/03/2021, 12:25 PM
Where do you call the code? Inside
LaunchedEffect
?
l
Lilly
09/03/2021, 12:26 PM
No it's launched in
onClick
callback, so it's not affected by recomposition.
f
Felix Schütz
09/03/2021, 12:31 PM
It does not happen for me, it's definitely not intended
l
Lilly
09/03/2021, 12:32 PM
My bad, I had another side effect which I could identify. It works like intended. Tahnks for your input