mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-11 00:35:38 +00:00
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
This commit is contained in:
parent
eac3766698
commit
0df7fe8404
|
@ -436,6 +436,12 @@ public class SDLActivity extends Activity {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case COMMAND_CHANGE_WINDOW_STYLE:
|
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) {
|
if (context instanceof Activity) {
|
||||||
Window window = ((Activity) context).getWindow();
|
Window window = ((Activity) context).getWindow();
|
||||||
if (window != null) {
|
if (window != null) {
|
||||||
|
@ -457,6 +463,7 @@ public class SDLActivity extends Activity {
|
||||||
} else {
|
} else {
|
||||||
Log.e(TAG, "error handling message, getContext() returned no Activity");
|
Log.e(TAG, "error handling message, getContext() returned no Activity");
|
||||||
}
|
}
|
||||||
|
***/
|
||||||
break;
|
break;
|
||||||
case COMMAND_TEXTEDIT_HIDE:
|
case COMMAND_TEXTEDIT_HIDE:
|
||||||
if (mTextEdit != null) {
|
if (mTextEdit != null) {
|
||||||
|
@ -725,7 +732,7 @@ public class SDLActivity extends Activity {
|
||||||
public static boolean isTextInputEvent(KeyEvent event) {
|
public static boolean isTextInputEvent(KeyEvent event) {
|
||||||
|
|
||||||
// Key pressed with Ctrl should be sent as SDL_KEYDOWN/SDL_KEYUP and not SDL_TEXTINPUT
|
// 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()) {
|
if (event.isCtrlPressed()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue