aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidselect.c
diff options
context:
space:
mode:
authorPo Lu2023-09-25 13:01:44 +0800
committerPo Lu2023-09-25 13:01:44 +0800
commitdf5a9a78b51f2f42d2dbb010e811a239fc014732 (patch)
tree748ced4f467648d2cdcb0e1845130bcac9bc6d7c /src/androidselect.c
parent947409d408ed763a9fc35f9f7df97fec28a16837 (diff)
downloademacs-df5a9a78b51f2f42d2dbb010e811a239fc014732.tar.gz
emacs-df5a9a78b51f2f42d2dbb010e811a239fc014732.zip
Update Android port
* doc/lispref/os.texi (Desktop Notifications): Revise documentation for android-notifications-notify to reflect changes. * java/org/gnu/emacs/EmacsDesktopNotification.java (display1): Convert notification importance to a legacy priority between Android 7.1 and 4.1. * java/org/gnu/emacs/EmacsPixmap.java (EmacsPixmap): Remove immutable bitmap constructor, as the underlying Android API functions are erroneously implemented. * src/android.c (android_init_emacs_pixmap): Cease searching for deleted constructor. (android_create_pixmap_from_bitmap_data): Create a pixmap, then fill it with the contents of the bitmap, in lieu of employing the aforementioned constructor. * src/androidselect.c (Fandroid_notifications_notify): Revise doc string.
Diffstat (limited to 'src/androidselect.c')
-rw-r--r--src/androidselect.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/androidselect.c b/src/androidselect.c
index 5735eda2dd5..cf2265d4cf4 100644
--- a/src/androidselect.c
+++ b/src/androidselect.c
@@ -660,12 +660,18 @@ keywords is understood:
660 :icon The name of a drawable resource to display as the 660 :icon The name of a drawable resource to display as the
661 notification's icon. 661 notification's icon.
662 662
663The notification group and urgency are ignored on Android 7.1 and 663The notification group is ignored on Android 7.1 and earlier versions
664earlier versions of Android. Outside such older systems, it 664of Android. Outside such older systems, it identifies a category that
665identifies a category that will be displayed in the system Settings 665will be displayed in the system Settings menu, and the urgency
666menu. The urgency provided always extends to affect all notifications 666provided always extends to affect all notifications displayed within
667displayed within that category. If the group is not provided, it 667that category. If the group is not provided, it defaults to the
668defaults to the string "Desktop Notifications". 668string "Desktop Notifications".
669
670Each caller should strive to provide one unchanging combination of
671notification group and urgency for each kind of notification it sends,
672inasmuch as the system may, subject to user configuration, disregard
673the urgency specified within a notification, should it not be the
674first notification sent to its notification group.
669 675
670The provided icon should be the name of a "drawable resource" present 676The provided icon should be the name of a "drawable resource" present
671within the "android.R.drawable" class designating an icon with a 677within the "android.R.drawable" class designating an icon with a