From c63f178a3008be5f735580817ebab008bbc5257b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 21 Aug 2023 14:35:45 +0800 Subject: Make the Emacs icon ``adaptive'' * java/AndroidManifest.xml.in (EmacsApplication): Set icon to @mipmap/emacs_icon. * java/org/gnu/emacs/EmacsService.java (onStartCommand): Pick a better name for the persistent notification channel. * java/res/drawable/emacs_background.xml: * java/res/drawable/emacs_foreground.xml: * java/res/mipmap/emacs_icon.png: * java/res/mipmap-v26/emacs_icon.xml: New files, comprising an ``adaptive icon'' required by some Android launchers. --- java/org/gnu/emacs/EmacsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/org/gnu') diff --git a/java/org/gnu/emacs/EmacsService.java b/java/org/gnu/emacs/EmacsService.java index 19ce67c59b7..404796cd08c 100644 --- a/java/org/gnu/emacs/EmacsService.java +++ b/java/org/gnu/emacs/EmacsService.java @@ -171,7 +171,7 @@ public final class EmacsService extends Service + " may disable it if you want;" + " see (emacs)Android Environment."); channel - = new NotificationChannel ("emacs", "Emacs persistent notification", + = new NotificationChannel ("emacs", "Emacs Background Service", NotificationManager.IMPORTANCE_DEFAULT); manager.createNotificationChannel (channel); notification = (new Notification.Builder (this, "emacs") -- cgit v1.2.1