Browse Source

Android: make sure surfaceChanged try to enter into 'resumed' state.

Sylvain Becker 6 years ago
parent
commit
a02998a292
1 changed files with 1 additions and 0 deletions
  1. 1 0
      android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

+ 1 - 0
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();
     }