Skip to content
Permalink
Browse files

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

  • Loading branch information
1bsyl committed Jan 2, 2019
1 parent 4d2b5c7 commit a02998a2923755a918cea4a0111d0993f0d09bd3
Showing with 1 addition and 0 deletions.
  1. +1 −0 android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -1683,6 +1683,7 @@ else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT || req
/* If the surface has been previously destroyed by onNativeSurfaceDestroyed, recreate it here */
SDLActivity.onNativeSurfaceChanged();

SDLActivity.mNextNativeState = SDLActivity.NativeState.RESUMED;
SDLActivity.handleNativeState();
}

0 comments on commit a02998a

Please sign in to comment.