Skip to content
Permalink
Browse files
fixed SENSOR_LANDSCAPE and SENSOR_PORTRAIT mode false nativeResume bug
  • Loading branch information
frankinshtein committed Jan 12, 2017
1 parent acd7682 commit 01f66613db74aa223793327910e99440bfb7939a
Showing with 2 additions and 2 deletions.
  1. +2 −2 android-project/src/org/libsdl/app/SDLActivity.java
@@ -1169,12 +1169,12 @@ public void surfaceChanged(SurfaceHolder holder,
{
// Accept any
}
else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT)
{
if (mWidth > mHeight) {
skip = true;
}
} else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
} else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) {
if (mWidth < mHeight) {
skip = true;
}

0 comments on commit 01f6661

Please sign in to comment.