fixed SENSOR_LANDSCAPE and SENSOR_PORTRAIT mode false nativeResume bug
authordmuratshin <frankinshtein85@gmail.com>
Thu, 12 Jan 2017 10:58:35 -0800
changeset 10808ba1da2658d76
parent 10807 3d7cae208a0c
child 10809 2a66eb727150
fixed SENSOR_LANDSCAPE and SENSOR_PORTRAIT mode false nativeResume bug
android-project/src/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/src/org/libsdl/app/SDLActivity.java	Tue Jan 10 23:23:32 2017 -0800
     1.2 +++ b/android-project/src/org/libsdl/app/SDLActivity.java	Thu Jan 12 10:58:35 2017 -0800
     1.3 @@ -1169,12 +1169,12 @@
     1.4          {
     1.5              // Accept any
     1.6          }
     1.7 -        else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
     1.8 +        else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT)
     1.9          {
    1.10              if (mWidth > mHeight) {
    1.11                 skip = true;
    1.12              }
    1.13 -        } else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
    1.14 +        } else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) {
    1.15              if (mWidth < mHeight) {
    1.16                 skip = true;
    1.17              }