aboutsummaryrefslogtreecommitdiffstats
path: root/src/android.h
diff options
context:
space:
mode:
authorPo Lu2024-03-12 09:48:53 +0800
committerPo Lu2024-03-12 09:48:53 +0800
commitd7ded996082503ca00546c220c7ce8d96e16b76a (patch)
treec134bf9471567f3a27be6814f117d09994987059 /src/android.h
parentbf38783c32e794e46fd03210242f265f34257940 (diff)
downloademacs-d7ded996082503ca00546c220c7ce8d96e16b76a.tar.gz
emacs-d7ded996082503ca00546c220c7ce8d96e16b76a.zip
Implement notification residency on Android
* doc/lispref/os.texi (Desktop Notifications): Document support for `:resident'. * java/org/gnu/emacs/EmacsService.java (cancelNotification): * src/android.c (android_init_emacs_service): * src/android.h (struct android_emacs_service): New function. * src/androidselect.c (android_notifications_notify_1) (Fandroid_notifications_notify): New parameter QCresident; save it within notification lists. (android_notification_deleted, android_notification_action): Adjust for changes to the format of notification lists and cancel non-resident notifications when an action is selected. (syms_of_androidselect): <QCresident>: New symbol.
Diffstat (limited to 'src/android.h')
-rw-r--r--src/android.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h
index ee634a3e76c..2ca3d7e1446 100644
--- a/src/android.h
+++ b/src/android.h
@@ -302,6 +302,7 @@ struct android_emacs_service
302 jmethodID valid_authority; 302 jmethodID valid_authority;
303 jmethodID external_storage_available; 303 jmethodID external_storage_available;
304 jmethodID request_storage_access; 304 jmethodID request_storage_access;
305 jmethodID cancel_notification;
305}; 306};
306 307
307extern JNIEnv *android_java_env; 308extern JNIEnv *android_java_env;