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) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-25 15:08:58 +01:00
1 parent 09b899845a
commit d41b29607b
1 file changed
+4 -2
@@ -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();