diff options
| author | Po Lu | 2023-09-25 13:01:44 +0800 |
|---|---|---|
| committer | Po Lu | 2023-09-25 13:01:44 +0800 |
| commit | df5a9a78b51f2f42d2dbb010e811a239fc014732 (patch) | |
| tree | 748ced4f467648d2cdcb0e1845130bcac9bc6d7c /src/androidselect.c | |
| parent | 947409d408ed763a9fc35f9f7df97fec28a16837 (diff) | |
| download | emacs-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.c | 18 |
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 | ||
| 663 | The notification group and urgency are ignored on Android 7.1 and | 663 | The notification group is ignored on Android 7.1 and earlier versions |
| 664 | earlier versions of Android. Outside such older systems, it | 664 | of Android. Outside such older systems, it identifies a category that |
| 665 | identifies a category that will be displayed in the system Settings | 665 | will be displayed in the system Settings menu, and the urgency |
| 666 | menu. The urgency provided always extends to affect all notifications | 666 | provided always extends to affect all notifications displayed within |
| 667 | displayed within that category. If the group is not provided, it | 667 | that category. If the group is not provided, it defaults to the |
| 668 | defaults to the string "Desktop Notifications". | 668 | string "Desktop Notifications". |
| 669 | |||
| 670 | Each caller should strive to provide one unchanging combination of | ||
| 671 | notification group and urgency for each kind of notification it sends, | ||
| 672 | inasmuch as the system may, subject to user configuration, disregard | ||
| 673 | the urgency specified within a notification, should it not be the | ||
| 674 | first notification sent to its notification group. | ||
| 669 | 675 | ||
| 670 | The provided icon should be the name of a "drawable resource" present | 676 | The provided icon should be the name of a "drawable resource" present |
| 671 | within the "android.R.drawable" class designating an icon with a | 677 | within the "android.R.drawable" class designating an icon with a |