Skip to content

Commit 0df7fe8

Browse files
committed
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
1 parent eac3766 commit 0df7fe8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ public void handleMessage(Message msg) {
436436
}
437437
break;
438438
case COMMAND_CHANGE_WINDOW_STYLE:
439+
if (Build.VERSION.SDK_INT < 19) {
440+
// This version of Android doesn't support the immersive fullscreen mode
441+
break;
442+
}
443+
/* This needs more testing, per bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop
444+
***
439445
if (context instanceof Activity) {
440446
Window window = ((Activity) context).getWindow();
441447
if (window != null) {
@@ -457,6 +463,7 @@ public void handleMessage(Message msg) {
457463
} else {
458464
Log.e(TAG, "error handling message, getContext() returned no Activity");
459465
}
466+
***/
460467
break;
461468
case COMMAND_TEXTEDIT_HIDE:
462469
if (mTextEdit != null) {
@@ -725,7 +732,7 @@ public static boolean showTextInput(int x, int y, int w, int h) {
725732
public static boolean isTextInputEvent(KeyEvent event) {
726733

727734
// Key pressed with Ctrl should be sent as SDL_KEYDOWN/SDL_KEYUP and not SDL_TEXTINPUT
728-
if (android.os.Build.VERSION.SDK_INT >= 11) {
735+
if (Build.VERSION.SDK_INT >= 11) {
729736
if (event.isCtrlPressed()) {
730737
return false;
731738
}

0 commit comments

Comments
 (0)