From 5b8da35a798bfe4aa106ecdda979c7a4d4f787ab Mon Sep 17 00:00:00 2001 From: Inkeliz Date: Tue, 22 Jun 2021 18:44:24 +0100 Subject: [PATCH] app/internal/wm: [android] fix Samsung keyboard That change makes the Samsung Keyboard compatible with Gio, with minimal changes. Fixes gio#116 Signed-off-by: Inkeliz --- app/internal/wm/GioView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/internal/wm/GioView.java b/app/internal/wm/GioView.java index 80762529..d42d44b7 100644 --- a/app/internal/wm/GioView.java +++ b/app/internal/wm/GioView.java @@ -266,7 +266,9 @@ public final class GioView extends SurfaceView implements Choreographer.FrameCal } @Override public InputConnection onCreateInputConnection(EditorInfo editor) { - editor.inputType = this.keyboardHint; + // The TYPE_TEXT_FLAG_NO_SUGGESTIONS and TYPE_TEXT_VARIATION_VISIBLE_PASSWORD are used to fix the + // Samsung keyboard compatibility, forcing to disable the suggests/auto-complete. gio#116. + editor.inputType = InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD | this.keyboardHint; editor.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN | EditorInfo.IME_FLAG_NO_EXTRACT_UI; return new InputConnection(this); }