Open zezekalo opened 6 years ago
@zezekalo Please ensure onViewCreated
is invoked only a single time.
If not that means you'll have to use an other method for requestPermissions
.
Yes, I checked and onViewCreated is invoked one time.
I noticed that if I request two permissions together like
?.request(android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION)
so in that case I've got only one response in callback.
in that case I've got only one response in callback
Use requestEach
to have one response per permission (please check the README)
Here are my code:
The problem is that when I'm requesting permission ACCESS_FINE_LOCATION then I have got 2 (two) response in Subscriber and is shown 2 lines in logs
MapFragment: requestPermissions: granted - true
Is that normal behavior?