mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Android life cycle behavior more closely matches iOS
On iOS, the application gets one last change to process messages before going into the background. We do the same on Android, which more closely matches the previous behavior.
This commit is contained in:
@@ -101,7 +101,6 @@ void Android_InitEvents(void)
|
|||||||
|
|
||||||
void Android_PumpEvents(void)
|
void Android_PumpEvents(void)
|
||||||
{
|
{
|
||||||
restart:
|
|
||||||
if (Android_Paused) {
|
if (Android_Paused) {
|
||||||
if (SDL_WaitSemaphoreTimeout(Android_ResumeSem, Android_PausedWaitTime) == 0) {
|
if (SDL_WaitSemaphoreTimeout(Android_ResumeSem, Android_PausedWaitTime) == 0) {
|
||||||
|
|
||||||
@@ -166,7 +165,6 @@ restart:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Android_Paused = SDL_TRUE;
|
Android_Paused = SDL_TRUE;
|
||||||
goto restart;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user