diff options
| author | Po Lu | 2024-03-12 09:48:53 +0800 |
|---|---|---|
| committer | Po Lu | 2024-03-12 09:48:53 +0800 |
| commit | d7ded996082503ca00546c220c7ce8d96e16b76a (patch) | |
| tree | c134bf9471567f3a27be6814f117d09994987059 /src/android.c | |
| parent | bf38783c32e794e46fd03210242f265f34257940 (diff) | |
| download | emacs-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.c')
| -rw-r--r-- | src/android.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/android.c b/src/android.c index 125bb5209c3..dcd5c6d99c7 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -1688,6 +1688,8 @@ android_init_emacs_service (void) | |||
| 1688 | "externalStorageAvailable", "()Z"); | 1688 | "externalStorageAvailable", "()Z"); |
| 1689 | FIND_METHOD (request_storage_access, | 1689 | FIND_METHOD (request_storage_access, |
| 1690 | "requestStorageAccess", "()V"); | 1690 | "requestStorageAccess", "()V"); |
| 1691 | FIND_METHOD (cancel_notification, | ||
| 1692 | "cancelNotification", "(Ljava/lang/String;)V"); | ||
| 1691 | #undef FIND_METHOD | 1693 | #undef FIND_METHOD |
| 1692 | } | 1694 | } |
| 1693 | 1695 | ||