ui/app: (android) enable IME dummy mode

We don't have full IME-aware editor yet. Fortunately, the BaseInputConnection
has a "dummy mode" setting to allow us to receive input from the fancier keyboards
without implementing the full IME interface.

Fixes gio#7 (I hope; I tested with SwiftKey that had the same symptoms)

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-06-11 16:35:43 +02:00
parent 94162f8f24
commit 503c417544
+3 -1
View File
@@ -184,7 +184,9 @@ public class GioView extends SurfaceView implements Choreographer.FrameCallback
private final Editable editable;
InputConnection(View view) {
super(view, true);
// Passing false enables "dummy mode", where the BaseInputConnection
// attempts to convert IME operations to key events.
super(view, false);
editable = Editable.Factory.getInstance().newEditable("");
}