diff options
| author | Po Lu | 2023-02-05 23:02:14 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-05 23:02:14 +0800 |
| commit | 98c90135fe5f3729a3fa6e9a724d04a78b2cd514 (patch) | |
| tree | e4d05533619b88dac6f45768af837629675b65e2 /java | |
| parent | 1b8beed9608b56889f23b49704033ef6437462cd (diff) | |
| download | emacs-98c90135fe5f3729a3fa6e9a724d04a78b2cd514.tar.gz emacs-98c90135fe5f3729a3fa6e9a724d04a78b2cd514.zip | |
Update Android port
* INSTALL.android: Explain how to build selinux.
* configure.ac: Enable selinux on Android.
* cross/ndk-build/ndk-build-shared-library.mk: ($(call
objname,$(LOCAL_MODULE),$(basename $(1))))::($$(error
Unsupported suffix)::(NDK_CFLAGS_$(LOCAL_MODULE)):
* cross/ndk-build/ndk-build-static-library.mk: ($(call
objname,$(LOCAL_MODULE),$(basename $(1))))::($$(error
Unsupported suffix)::(NDK_CFLAGS_$(LOCAL_MODULE)): Correctly
handle files with a .cc suffix, and clang-specific asflags.
* cross/ndk-build/ndk-clear-vars.mk: Handle AOSP extensions
LOCAL_ADDITIONAL_DEPENDENCIES,
LOCAL_CLANG_ASFLAGS_$(NDK_BUILD_ARCH) and LOCAL_IS_HOST_MODULE.
* doc/emacs/android.texi (Android Startup): Explain emacsclient
wrapper.
* java/org/gnu/emacs/EmacsView.java (EmacsView): New flag
`isCurrentlyTextEditor'.
(showOnScreenKeyboard, hideOnScreenKeyboard): Set as
appropriate.
(onCheckIsTextEditor): Return its value.
* lisp/touch-screen.el (touch-screen-handle-scroll): Don't ding
at buffer limits.
* m4/ndk-build.m4: Improve doc.
* src/Makefile.in (LIBSELINUX_CFLAGS): New variable.
(EMACS_CFLAGS): Add it.
Diffstat (limited to 'java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsView.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/java/org/gnu/emacs/EmacsView.java b/java/org/gnu/emacs/EmacsView.java index 730ed02d4f1..873124c86d1 100644 --- a/java/org/gnu/emacs/EmacsView.java +++ b/java/org/gnu/emacs/EmacsView.java | |||
| @@ -106,6 +106,10 @@ public class EmacsView extends ViewGroup | |||
| 106 | /* Whether or not this view is attached to a window. */ | 106 | /* Whether or not this view is attached to a window. */ |
| 107 | public boolean isAttachedToWindow; | 107 | public boolean isAttachedToWindow; |
| 108 | 108 | ||
| 109 | /* Whether or not this view should have the on screen keyboard | ||
| 110 | displayed whenever possible. */ | ||
| 111 | public boolean isCurrentlyTextEditor; | ||
| 112 | |||
| 109 | public | 113 | public |
| 110 | EmacsView (EmacsWindow window) | 114 | EmacsView (EmacsWindow window) |
| 111 | { | 115 | { |
| @@ -597,6 +601,7 @@ public class EmacsView extends ViewGroup | |||
| 597 | /* Specifying no flags at all tells the system the user asked for | 601 | /* Specifying no flags at all tells the system the user asked for |
| 598 | the input method to be displayed. */ | 602 | the input method to be displayed. */ |
| 599 | imManager.showSoftInput (this, 0); | 603 | imManager.showSoftInput (this, 0); |
| 604 | isCurrentlyTextEditor = true; | ||
| 600 | } | 605 | } |
| 601 | 606 | ||
| 602 | public void | 607 | public void |
| @@ -604,6 +609,7 @@ public class EmacsView extends ViewGroup | |||
| 604 | { | 609 | { |
| 605 | imManager.hideSoftInputFromWindow (this.getWindowToken (), | 610 | imManager.hideSoftInputFromWindow (this.getWindowToken (), |
| 606 | 0); | 611 | 0); |
| 612 | isCurrentlyTextEditor = false; | ||
| 607 | } | 613 | } |
| 608 | 614 | ||
| 609 | public void | 615 | public void |
| @@ -636,4 +642,13 @@ public class EmacsView extends ViewGroup | |||
| 636 | screen keyboard to work correctly. */ | 642 | screen keyboard to work correctly. */ |
| 637 | return null; | 643 | return null; |
| 638 | } | 644 | } |
| 645 | |||
| 646 | @Override | ||
| 647 | public boolean | ||
| 648 | onCheckIsTextEditor () | ||
| 649 | { | ||
| 650 | /* If value is true, then the system will display the on screen | ||
| 651 | keyboard. */ | ||
| 652 | return isCurrentlyTextEditor; | ||
| 653 | } | ||
| 639 | }; | 654 | }; |