Skip to content

Commit

Permalink
Temporarily disabled fullscreen switching code on Android, until we c…
Browse files Browse the repository at this point in the history
…an resolve bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop
  • Loading branch information
slouken committed Mar 1, 2018
1 parent f01f3c5 commit 47c0704
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,12 @@ public void handleMessage(Message msg) {
}
break;
case COMMAND_CHANGE_WINDOW_STYLE:
if (Build.VERSION.SDK_INT < 19) {
// This version of Android doesn't support the immersive fullscreen mode
break;
}
/* This needs more testing, per bug 4096 - Enabling fullscreen on Android causes the app to toggle fullscreen mode continuously in a loop
***
if (context instanceof Activity) {
Window window = ((Activity) context).getWindow();
if (window != null) {
Expand All @@ -457,6 +463,7 @@ public void handleMessage(Message msg) {
} else {
Log.e(TAG, "error handling message, getContext() returned no Activity");
}
***/
break;
case COMMAND_TEXTEDIT_HIDE:
if (mTextEdit != null) {
Expand Down Expand Up @@ -725,7 +732,7 @@ public static boolean showTextInput(int x, int y, int w, int h) {
public static boolean isTextInputEvent(KeyEvent event) {

// Key pressed with Ctrl should be sent as SDL_KEYDOWN/SDL_KEYUP and not SDL_TEXTINPUT
if (android.os.Build.VERSION.SDK_INT >= 11) {
if (Build.VERSION.SDK_INT >= 11) {
if (event.isCtrlPressed()) {
return false;
}
Expand Down

0 comments on commit 47c0704

Please sign in to comment.