aboutsummaryrefslogtreecommitdiffstats
path: root/java/res
diff options
context:
space:
mode:
authorPo Lu2023-08-21 09:36:52 +0800
committerPo Lu2023-08-21 09:36:52 +0800
commitb1e498ac8c067b265c5f3de778e0a2722f7948a6 (patch)
treebee97091b8a44db86654aec71c2382336837276e /java/res
parent652e45b70d82e6f615febe00553dbded80557845 (diff)
downloademacs-b1e498ac8c067b265c5f3de778e0a2722f7948a6.tar.gz
emacs-b1e498ac8c067b265c5f3de778e0a2722f7948a6.zip
Enable providing icons for Android desktop notifications
* doc/lispref/os.texi (Desktop Notifications) <android-notifications-notify>: Mention the :icon parameter. * java/org/gnu/emacs/EmacsDesktopNotification.java (EmacsDesktopNotification) <icon>: New field. (<init>): New argument ICON. Set this.icon to its value. (display1): Use provided icon and always supply a pending intent to open Emacs once the notification is clicked. * java/res/layout/sdk8_notifications_view.xml (sdk8_notifications_title, sdk8_notifications_content): Set foreground color to #000000. * src/androidselect.c (android_init_emacs_desktop_notification): Update signature of <init>. (android_locate_icon): New function. (android_notifications_notify_1): New arg ICON. (Fandroid_notifications_notify): New parameter icon. (syms_of_androidselect): <QCicon>: New symbol.
Diffstat (limited to 'java/res')
-rw-r--r--java/res/layout/sdk8_notifications_view.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/res/layout/sdk8_notifications_view.xml b/java/res/layout/sdk8_notifications_view.xml
index 2daa5beea86..0572f350cff 100644
--- a/java/res/layout/sdk8_notifications_view.xml
+++ b/java/res/layout/sdk8_notifications_view.xml
@@ -23,9 +23,11 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
23 android:layout_height="wrap_content" 23 android:layout_height="wrap_content"
24 android:padding="8dp"> 24 android:padding="8dp">
25 <TextView android:id="@+id/sdk8_notifications_title" 25 <TextView android:id="@+id/sdk8_notifications_title"
26 android:textColor="#000000"
26 android:layout_width="wrap_content" 27 android:layout_width="wrap_content"
27 android:layout_height="wrap_content"/> 28 android:layout_height="wrap_content"/>
28 <TextView android:id="@+id/sdk8_notifications_content" 29 <TextView android:id="@+id/sdk8_notifications_content"
30 android:textColor="#000000"
29 android:layout_width="wrap_content" 31 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"/> 32 android:layout_height="wrap_content"/>
31</LinearLayout> 33</LinearLayout>