diff options
| author | Po Lu | 2023-04-03 18:24:02 +0800 |
|---|---|---|
| committer | Po Lu | 2023-04-03 18:24:02 +0800 |
| commit | add40ccfb997e9e2576631804fc96df65ddfb156 (patch) | |
| tree | a797bdaef3ce063a583f15ee7bcf587eec0ca07e /src/androidselect.c | |
| parent | 0e0ea976cadb950258d7f3754f8fe581d092e36a (diff) | |
| download | emacs-add40ccfb997e9e2576631804fc96df65ddfb156.tar.gz emacs-add40ccfb997e9e2576631804fc96df65ddfb156.zip | |
; ; * src/androidselect.c (Fandroid_clipboard_exists_p): Add check.
Diffstat (limited to 'src/androidselect.c')
| -rw-r--r-- | src/androidselect.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/androidselect.c b/src/androidselect.c index f54a6d6f52c..dfbe0240941 100644 --- a/src/androidselect.c +++ b/src/androidselect.c | |||
| @@ -208,6 +208,9 @@ DEFUN ("android-clipboard-exists-p", Fandroid_clipboard_exists_p, | |||
| 208 | jboolean rc; | 208 | jboolean rc; |
| 209 | jmethodID method; | 209 | jmethodID method; |
| 210 | 210 | ||
| 211 | if (!android_init_gui) | ||
| 212 | error ("No Android display connection"); | ||
| 213 | |||
| 211 | method = clipboard_class.clipboard_exists; | 214 | method = clipboard_class.clipboard_exists; |
| 212 | rc = (*android_java_env)->CallBooleanMethod (android_java_env, | 215 | rc = (*android_java_env)->CallBooleanMethod (android_java_env, |
| 213 | clipboard, | 216 | clipboard, |