This PR refactors and simplifies how the state of the app activity is managed and also:
Fixes nativeOnResume() not being called after a system popup is displayed. (Easy repro: turn on bluetooth in quick settings menu and wait couple seconds for a popup to show up, then close it).
Fix AxmolRenderer forgetting paused state when AxmolActivity is relaunched, during which the old objects are destroyed and recreated. (Easy repro: in Android settings change global font size).
I have tested this extensively on several devices, and everything seems to work. But it would be nice if more people tested it.
This PR refactors and simplifies how the state of the app activity is managed and also:
nativeOnResume()
not being called after a system popup is displayed. (Easy repro: turn on bluetooth in quick settings menu and wait couple seconds for a popup to show up, then close it).AxmolRenderer
forgetting paused state whenAxmolActivity
is relaunched, during which the old objects are destroyed and recreated. (Easy repro: in Android settings change global font size).I have tested this extensively on several devices, and everything seems to work. But it would be nice if more people tested it.