mirror of
https://github.com/bevyengine/bevy
synced 2024-11-28 15:40:21 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -475,6 +475,7 @@ impl<T: Event> ApplicationHandler<T> for WinitAppRunnerState<T> {
|
||||||
self.lifecycle = AppLifecycle::Suspended;
|
self.lifecycle = AppLifecycle::Suspended;
|
||||||
// Trigger one last update to enter the suspended state
|
// Trigger one last update to enter the suspended state
|
||||||
should_update = true;
|
should_update = true;
|
||||||
|
self.ran_update_since_last_redraw = false;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue