Fixed bug 4424 - Android windowed mode is broken (Thanks Jonas Thiem!)
authorSylvain Becker <sylvain.becker@gmail.com>
Wed, 02 Jan 2019 17:08:01 +0100
changeset 124913b1f484500f0
parent 12490 e1e13e154128
child 12492 fe136f38ab71
Fixed bug 4424 - Android windowed mode is broken (Thanks Jonas Thiem!)
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	Sun Dec 30 22:44:25 2018 +0100
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Wed Jan 02 17:08:01 2019 +0100
     1.3 @@ -1341,7 +1341,7 @@
     1.4      };
     1.5  
     1.6      public void onSystemUiVisibilityChange(int visibility) {
     1.7 -        if (SDLActivity.mFullscreenModeActive && (visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0 || (visibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) {
     1.8 +        if (SDLActivity.mFullscreenModeActive && ((visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0 || (visibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0)) {
     1.9  
    1.10              Handler handler = getWindow().getDecorView().getHandler();
    1.11              if (handler != null) {