1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 17:01:01 -08:00

Update Android port

* java/org/gnu/emacs/EmacsNative.java (EmacsNative): New
function clearInputFlags.
* java/org/gnu/emacs/EmacsView.java (onCreateInputConnection):
Stop reporting changes after a new input method connection is
established.
* src/androidterm.c (android_handle_ime_event): Implement that
change.
(JNICALL): New function.
This commit is contained in:
Po Lu 2023-06-05 10:38:25 +08:00
parent 6f0ebe11aa
commit 66783af554
3 changed files with 52 additions and 5 deletions

View file

@ -627,6 +627,10 @@ public final class EmacsView extends ViewGroup
return null;
}
/* Reset flags set by the previous input method. */
EmacsNative.clearInputFlags (window.handle);
/* Obtain the current position of point and set it as the
selection. Don't do this under one specific situation: if
`android_update_ic' is being called in the main thread, trying
@ -663,10 +667,6 @@ public final class EmacsView extends ViewGroup
if (inputConnection == null)
inputConnection = new EmacsInputConnection (this);
else
/* Reset the composing region, in case there is still composing
text. */
inputConnection.finishComposingText ();
/* Return the input connection. */
return inputConnection;