From d41b29607bb1b988a30bb88dc7e1462709698cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 25 Oct 2026 15:08:58 +0100 Subject: [PATCH] Android: Keep the keyboard from covering the text input dialog In landscape, keyboards went fullscreen with an edit box of their own, covering the dialog and forwarding what was typed to it. Now the dialog's field asks for no fullscreen editing, and the dialog moves up above the keyboard. Co-Authored-By: Claude Opus 5.5 (1M context) --- android/src/org/ppsspp/ppsspp/PpssppActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/android/src/org/ppsspp/ppsspp/PpssppActivity.java b/android/src/org/ppsspp/ppsspp/PpssppActivity.java index 7835a075eb..fd2038e780 100644 --- a/android/src/org/ppsspp/ppsspp/PpssppActivity.java +++ b/android/src/org/ppsspp/ppsspp/PpssppActivity.java @@ -1630,7 +1630,8 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList } else { input.setInputType(InputType.TYPE_CLASS_TEXT); } - input.setImeOptions(EditorInfo.IME_ACTION_DONE); + // In landscape, keyboards otherwise go fullscreen with an edit box of their own, covering the dialog. + input.setImeOptions(EditorInfo.IME_ACTION_DONE | EditorInfo.IME_FLAG_NO_EXTRACT_UI | EditorInfo.IME_FLAG_NO_FULLSCREEN); input.setText(defaultText); input.setFocusableInTouchMode(true); input.requestFocus(); @@ -1680,7 +1681,8 @@ public class PpssppActivity extends AppCompatActivity implements SensorEventList dlg.setCancelable(true); Window wnd = dlg.getWindow(); if (wnd != null) { - wnd.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); + // Moves the dialog up out of the keyboard's way. + wnd.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); } try { dlg.show();