mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
474fa41a84
When the OS needs to display a permission prompt, our current activity is paused and onSaveInstanceState gets called, however the activity isn't stopped yet. When the permission handling then returns with the results to us, we display the file picker using the current activity as retrieved from the GeckoActivity- Monitor. The problem is that in bug 1437382, our application-background handling was changed such that it would already be triggered by the preparatory onSave- InstanceState call. This had the side effect that the current activity would be cleared from the GeckoActivityMonitor at that point already. Therefore, in our case showing the file picker would fail because the GAM would have cleared the current activity already after the runtime permission prompt caused our previous activity to save its state. To fix this, we change the behaviour of the GeckoActivityMonitor such that it will continue to trigger our application-background handling during onSave- InstanceState if possible, but will only clear the current activity when it is stopping for real. Differential Revision: https://phabricator.services.mozilla.com/D5304 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
locales |