]> git.eshelyaron.com Git - emacs.git/commit
Don't forcibly display dialogs on Android if a keyboard is present
authorPo Lu <luangruo@yahoo.com>
Tue, 6 Feb 2024 05:10:57 +0000 (13:10 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 7 Feb 2024 10:54:35 +0000 (11:54 +0100)
commitacbe60335ce2b8ae01d6c124660a8b7d63b2d597
treea16ca79690c1d2f0592694dac9e9c9df990c90db
parentc709e03fa510c5b76465f93eaac70f11d83adc73
Don't forcibly display dialogs on Android if a keyboard is present

* java/org/gnu/emacs/EmacsService.java (detectKeyboard): New
function.

* lisp/subr.el (use-dialog-box-p): Don't always return t if a
keyboard is present on Android.

* src/android.c (android_init_emacs_service): Link to new
function.
(android_detect_keyboard): New function.

* src/android.h: Update prototypes.

* src/androidfns.c (Fandroid_detect_keyboard)
(syms_of_androidfns): New function.

(cherry picked from commit 0d2b7120783255fbb0f8e98717573c35425f4df6)
java/org/gnu/emacs/EmacsService.java
lisp/subr.el
src/android.c
src/android.h
src/androidfns.c