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 <inkeliz@inkeliz.com>
This commit is contained in:
Inkeliz
2021-06-22 18:44:24 +01:00
committed by Elias Naur
parent 9df56f44e9
commit 5b8da35a79
+3 -1
View File
@@ -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);
}