[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/android add40ccfb99 1/2: ; ; * src/androidselect.c (Fandroid_cli
From: |
Po Lu |
Subject: |
feature/android add40ccfb99 1/2: ; ; * src/androidselect.c (Fandroid_clipboard_exists_p): Add check. |
Date: |
Mon, 3 Apr 2023 06:39:39 -0400 (EDT) |
branch: feature/android
commit add40ccfb997e9e2576631804fc96df65ddfb156
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
; ; * src/androidselect.c (Fandroid_clipboard_exists_p): Add check.
---
src/androidselect.c | 3 +++
1 file changed, 3 insertions(+)
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,
jboolean rc;
jmethodID method;
+ if (!android_init_gui)
+ error ("No Android display connection");
+
method = clipboard_class.clipboard_exists;
rc = (*android_java_env)->CallBooleanMethod (android_java_env,
clipboard,