Temporarily disabled fullscreen switching code on Android, until we can resolve bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop
authorSam Lantinga <slouken@libsdl.org>
Thu, 01 Mar 2018 08:22:56 -0800
changeset 11913505d8f777ff8
parent 11912 8fe6fea767a0
child 11914 f1084c419f33
Temporarily disabled fullscreen switching code on Android, until we can resolve bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop
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	Thu Mar 01 08:08:20 2018 -0800
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Thu Mar 01 08:22:56 2018 -0800
     1.3 @@ -436,6 +436,12 @@
     1.4                  }
     1.5                  break;
     1.6              case COMMAND_CHANGE_WINDOW_STYLE:
     1.7 +                if (Build.VERSION.SDK_INT < 19) {
     1.8 +                    // This version of Android doesn't support the immersive fullscreen mode
     1.9 +                    break;
    1.10 +                }
    1.11 +/* This needs more testing, per bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop
    1.12 + ***
    1.13                  if (context instanceof Activity) {
    1.14                      Window window = ((Activity) context).getWindow();
    1.15                      if (window != null) {
    1.16 @@ -457,6 +463,7 @@
    1.17                  } else {
    1.18                      Log.e(TAG, "error handling message, getContext() returned no Activity");
    1.19                  }
    1.20 +***/
    1.21                  break;
    1.22              case COMMAND_TEXTEDIT_HIDE:
    1.23                  if (mTextEdit != null) {
    1.24 @@ -725,7 +732,7 @@
    1.25      public static boolean isTextInputEvent(KeyEvent event) {
    1.26        
    1.27          // Key pressed with Ctrl should be sent as SDL_KEYDOWN/SDL_KEYUP and not SDL_TEXTINPUT
    1.28 -        if (android.os.Build.VERSION.SDK_INT >= 11) {
    1.29 +        if (Build.VERSION.SDK_INT >= 11) {
    1.30              if (event.isCtrlPressed()) {
    1.31                  return false;
    1.32              }