summaryrefslogtreecommitdiff
path: root/java/org/gnu/emacs/EmacsView.java
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-06-05 10:38:25 +0800
committerPo Lu <luangruo@yahoo.com>2023-06-05 10:38:25 +0800
commit66783af554176c68cb58726aeff4ae6a23224234 (patch)
tree076a6d6e2232696a378077f7cb0fa8553b090a4c /java/org/gnu/emacs/EmacsView.java
parent6f0ebe11aaf9b2e54df14147cd2f62b048ffec9a (diff)
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.
Diffstat (limited to 'java/org/gnu/emacs/EmacsView.java')
-rw-r--r--java/org/gnu/emacs/EmacsView.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/org/gnu/emacs/EmacsView.java b/java/org/gnu/emacs/EmacsView.java
index c223dfa7911..a78dec08839 100644
--- a/java/org/gnu/emacs/EmacsView.java
+++ b/java/org/gnu/emacs/EmacsView.java
@@ -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;