]> git.eshelyaron.com Git - emacs.git/commit
Support desktop notifications on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 20 Aug 2023 12:23:56 +0000 (20:23 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 20 Aug 2023 12:25:53 +0000 (20:25 +0800)
commit4f714dc08137d36d0d1e886814008f2abe5712c0
treee400e9263e9c1b779b07e56ea88533e6bd4adfb0
parent321f6bd5722921175ac3dc8859daca74dbe3de6a
Support desktop notifications on Android

* doc/emacs/android.texi (Android Environment): Correct list of
permissions granted by default.

* doc/lispref/os.texi (Desktop Notifications): Document the new
function `android-notifications-notify' and its limitations.

* java/AndroidManifest.xml.in: Request notification permissions.

* java/org/gnu/emacs/EmacsDesktopNotification.java: New file.

* java/res/layout/sdk8_notifications_view.xml: New file holding
substitute notification widget definitions for Android versions
prior to 3.0.

* java/res/values/strings.xml: Remove inadvertently introduced
tag attribute.

* lisp/org/org-clock.el (haiku-notifications-notify): Correct
file name in function declaration.
(android-notifications-notify): New declaration.
(org-show-notification): Use `android-notifications-notify'.

* src/androidselect.c (android_init_emacs_desktop_notification)
(android_notifications_notify_1, Fandroid_notifications_notify):
New functions.
(init_androidselect, syms_of_androidselect): Initialize new
class and define new subr.
doc/emacs/android.texi
doc/lispref/os.texi
java/AndroidManifest.xml.in
java/org/gnu/emacs/EmacsDesktopNotification.java [new file with mode: 0644]
java/res/layout/sdk8_notifications_view.xml [new file with mode: 0644]
java/res/values/strings.xml
lisp/org/org-clock.el
src/androidselect.c