diff options
| author | Po Lu | 2023-08-21 14:35:45 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-21 14:39:51 +0800 |
| commit | c63f178a3008be5f735580817ebab008bbc5257b (patch) | |
| tree | 97b939499f0372755ea62b120b55cf26f6613d41 /java/org | |
| parent | b1e498ac8c067b265c5f3de778e0a2722f7948a6 (diff) | |
| download | emacs-c63f178a3008be5f735580817ebab008bbc5257b.tar.gz emacs-c63f178a3008be5f735580817ebab008bbc5257b.zip | |
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.
Diffstat (limited to 'java/org')
| -rw-r--r-- | java/org/gnu/emacs/EmacsService.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 171 | + " may disable it if you want;" | 171 | + " may disable it if you want;" |
| 172 | + " see (emacs)Android Environment."); | 172 | + " see (emacs)Android Environment."); |
| 173 | channel | 173 | channel |
| 174 | = new NotificationChannel ("emacs", "Emacs persistent notification", | 174 | = new NotificationChannel ("emacs", "Emacs Background Service", |
| 175 | NotificationManager.IMPORTANCE_DEFAULT); | 175 | NotificationManager.IMPORTANCE_DEFAULT); |
| 176 | manager.createNotificationChannel (channel); | 176 | manager.createNotificationChannel (channel); |
| 177 | notification = (new Notification.Builder (this, "emacs") | 177 | notification = (new Notification.Builder (this, "emacs") |