Android: make sure surfaceChanged try to enter into 'resumed' state.
authorSylvain Becker <sylvain.becker@gmail.com>
Wed, 02 Jan 2019 17:41:33 +0100
changeset 12492fe136f38ab71
parent 12491 3b1f484500f0
child 12493 82f9397db3e7
Android: make sure surfaceChanged try to enter into 'resumed' state.
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Wed Jan 02 17:08:01 2019 +0100
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Wed Jan 02 17:41:33 2019 +0100
     1.3 @@ -1683,6 +1683,7 @@
     1.4          /* If the surface has been previously destroyed by onNativeSurfaceDestroyed, recreate it here */
     1.5          SDLActivity.onNativeSurfaceChanged();
     1.6  
     1.7 +        SDLActivity.mNextNativeState = SDLActivity.NativeState.RESUMED;
     1.8          SDLActivity.handleNativeState();
     1.9      }
    1.10