From a02998a2923755a918cea4a0111d0993f0d09bd3 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Wed, 2 Jan 2019 17:41:33 +0100 Subject: [PATCH] Android: make sure surfaceChanged try to enter into 'resumed' state. --- .../app/src/main/java/org/libsdl/app/SDLActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java index 72004ac79..a58ce3447 100644 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java @@ -1683,6 +1683,7 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback, /* If the surface has been previously destroyed by onNativeSurfaceDestroyed, recreate it here */ SDLActivity.onNativeSurfaceChanged(); + SDLActivity.mNextNativeState = SDLActivity.NativeState.RESUMED; SDLActivity.handleNativeState(); }