Update Android port
authorPo Lu <luangruo@yahoo.com>
Sun, 12 Feb 2023 12:32:25 +0000 (20:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 12 Feb 2023 12:32:25 +0000 (20:32 +0800)
commit0198b8cffd82893412c738dae8e50c45a99286f1
tree5dd87dc03d1c1ee08205c988f2c287f714f1cfa3
parentab48881a2fb72df016f2a00bc107e5a35a411a9d
Update Android port

* doc/emacs/android.texi (Android Environment): Document
notifications permission.
* java/org/gnu/emacs/EmacsEditable.java (EmacsEditable):
* java/org/gnu/emacs/EmacsInputConnection.java
(EmacsInputConnection): New files.
* java/org/gnu/emacs/EmacsNative.java (EmacsNative): Load
library dependencies in a less verbose fashion.
* java/org/gnu/emacs/EmacsView.java (EmacsView): Make imManager
public.
(onCreateInputConnection): Set InputType to TYPE_NULL for now.
* java/org/gnu/emacs/EmacsWindow.java (EmacsWindow, onKeyDown)
(onKeyUp, getEventUnicodeChar): Correctly handle key events with
strings.
* lisp/term/android-win.el (android-clear-preedit-text)
(android-preedit-text): New special event handlers.
* src/android.c (struct android_emacs_window): Add function
lookup_string.
(android_init_emacs_window): Adjust accordingly.
(android_wc_lookup_string): New function.
* src/androidgui.h (struct android_key_event): Improve
commentary.
(enum android_lookup_status): New enum.
* src/androidterm.c (handle_one_android_event): Synchronize IM
lookup code with X.
* src/coding.c (from_unicode_buffer): Implement on Android.
* src/coding.h:
* src/sfnt.c: Fix commentary.
13 files changed:
doc/emacs/android.texi
java/org/gnu/emacs/EmacsEditable.java [new file with mode: 0644]
java/org/gnu/emacs/EmacsInputConnection.java [new file with mode: 0644]
java/org/gnu/emacs/EmacsNative.java
java/org/gnu/emacs/EmacsView.java
java/org/gnu/emacs/EmacsWindow.java
lisp/term/android-win.el
src/android.c
src/androidgui.h
src/androidterm.c
src/coding.c
src/coding.h
src/sfnt.c