force last update after setting state to Suspended (#15888)
# Objective - Android doesn't receive lifecycle event `Suspended` before suspension ## Solution - Fix update triggering just after state change on android ## Testing - Tested on the android emulator
This commit is contained in:
parent
9dd6f42b32
commit
89e19aaff0
@ -475,6 +475,7 @@ impl<T: Event> ApplicationHandler<T> for WinitAppRunnerState<T> {
|
||||
self.lifecycle = AppLifecycle::Suspended;
|
||||
// Trigger one last update to enter the suspended state
|
||||
should_update = true;
|
||||
self.ran_update_since_last_redraw = false;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user