diff options
Diffstat (limited to 'java')
| -rw-r--r-- | java/AndroidManifest.xml.in | 2 | ||||
| -rw-r--r-- | java/org/gnu/emacs/EmacsService.java | 2 | ||||
| -rw-r--r-- | java/res/drawable/emacs_background.xml | 42 | ||||
| -rw-r--r-- | java/res/drawable/emacs_foreground.xml | 53 | ||||
| -rw-r--r-- | java/res/mipmap-v26/emacs_icon.xml | 23 | ||||
| -rw-r--r-- | java/res/mipmap/emacs_icon.png | bin | 0 -> 13462 bytes |
6 files changed, 120 insertions, 2 deletions
diff --git a/java/AndroidManifest.xml.in b/java/AndroidManifest.xml.in index b9cda401c9d..2cbcdbc3e5b 100644 --- a/java/AndroidManifest.xml.in +++ b/java/AndroidManifest.xml.in | |||
| @@ -76,7 +76,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | |||
| 76 | 76 | ||
| 77 | <application android:name="org.gnu.emacs.EmacsApplication" | 77 | <application android:name="org.gnu.emacs.EmacsApplication" |
| 78 | android:label="Emacs" | 78 | android:label="Emacs" |
| 79 | android:icon="@drawable/emacs" | 79 | android:icon="@mipmap/emacs_icon" |
| 80 | android:hardwareAccelerated="true" | 80 | android:hardwareAccelerated="true" |
| 81 | android:supportsRtl="true" | 81 | android:supportsRtl="true" |
| 82 | android:theme="@style/EmacsStyle" | 82 | android:theme="@style/EmacsStyle" |
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") |
diff --git a/java/res/drawable/emacs_background.xml b/java/res/drawable/emacs_background.xml new file mode 100644 index 00000000000..c4562d754d5 --- /dev/null +++ b/java/res/drawable/emacs_background.xml | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | <!-- Adaptive icon for Emacs. | ||
| 2 | |||
| 3 | Copyright (C) 2023 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | ||
| 19 | |||
| 20 | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 21 | xmlns:aapt="http://schemas.android.com/aapt" | ||
| 22 | android:width="108dp" | ||
| 23 | android:height="108dp" | ||
| 24 | android:viewportWidth="512" | ||
| 25 | android:viewportHeight="512"> | ||
| 26 | <path | ||
| 27 | android:pathData="M-4.99,-5.79h521.12v526.76h-521.12z" | ||
| 28 | android:strokeWidth="10.6667"> | ||
| 29 | <aapt:attr name="android:fillColor"> | ||
| 30 | <gradient | ||
| 31 | android:startX="0" | ||
| 32 | android:startY="0" | ||
| 33 | android:endX="512" | ||
| 34 | android:endY="512" | ||
| 35 | android:type="linear"> | ||
| 36 | <item android:offset="0" android:color="#FF8381C5"/> | ||
| 37 | <item android:offset="0.34" android:color="#FE806BBC"/> | ||
| 38 | <item android:offset="1" android:color="#FDA52ECB"/> | ||
| 39 | </gradient> | ||
| 40 | </aapt:attr> | ||
| 41 | </path> | ||
| 42 | </vector> | ||
diff --git a/java/res/drawable/emacs_foreground.xml b/java/res/drawable/emacs_foreground.xml new file mode 100644 index 00000000000..ff9e854d038 --- /dev/null +++ b/java/res/drawable/emacs_foreground.xml | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | <!-- Adaptive icon for Emacs. | ||
| 2 | |||
| 3 | Copyright (C) 2023 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | ||
| 19 | |||
| 20 | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 21 | xmlns:aapt="http://schemas.android.com/aapt" | ||
| 22 | android:width="108dp" | ||
| 23 | android:height="108dp" | ||
| 24 | android:viewportWidth="512" | ||
| 25 | android:viewportHeight="512"> | ||
| 26 | <group android:scaleX="0.6" | ||
| 27 | android:scaleY="0.6" | ||
| 28 | android:translateX="102.4" | ||
| 29 | android:translateY="102.4"> | ||
| 30 | <path | ||
| 31 | android:pathData="M0,0h512v512h-512z"> | ||
| 32 | <aapt:attr name="android:fillColor"> | ||
| 33 | <gradient | ||
| 34 | android:startX="-0" | ||
| 35 | android:startY="256" | ||
| 36 | android:endX="512" | ||
| 37 | android:endY="256" | ||
| 38 | android:type="linear"> | ||
| 39 | <item android:offset="1" android:color="#00000000"/> | ||
| 40 | <item android:offset="1" android:color="#FF5B2A85"/> | ||
| 41 | </gradient> | ||
| 42 | </aapt:attr> | ||
| 43 | </path> | ||
| 44 | <path | ||
| 45 | android:pathData="m174.83,422.11c0,0 19.74,1.4 45.13,-0.84 10.28,-0.91 49.33,-4.74 78.52,-11.14 0,0 35.59,-7.62 54.63,-14.63 19.92,-7.34 30.76,-13.57 35.64,-22.4 -0.21,-1.81 1.5,-8.22 -7.68,-12.08 -23.49,-9.85 -50.73,-8.07 -104.63,-9.21 -59.78,-2.05 -79.66,-12.06 -90.26,-20.12 -10.16,-8.18 -5.05,-30.79 38.47,-50.71 21.92,-10.61 107.87,-30.19 107.87,-30.19 -28.95,-14.31 -82.92,-39.46 -94.01,-44.89 -9.73,-4.76 -25.3,-11.94 -28.68,-20.61 -3.83,-8.33 9.04,-15.51 16.22,-17.56 23.14,-6.68 55.82,-10.83 85.55,-11.29 14.95,-0.23 17.37,-1.2 17.37,-1.2 20.62,-3.42 34.2,-17.53 28.54,-39.88 -5.08,-22.81 -31.86,-36.21 -57.31,-31.57 -23.97,4.37 -81.74,21.15 -81.74,21.15 71.41,-0.62 83.36,0.57 88.7,8.04 3.15,4.41 -1.43,10.45 -20.48,13.56 -20.73,3.39 -63.83,7.46 -63.83,7.46 -41.34,2.46 -70.47,2.62 -79.2,21.11 -5.71,12.08 6.09,22.76 11.25,29.45 21.84,24.29 53.39,37.39 73.69,47.04 7.64,3.63 30.06,10.48 30.06,10.48 -65.88,-3.62 -113.4,16.61 -141.28,39.9 -31.53,29.16 -17.58,63.92 47.01,85.33 38.15,12.64 57.07,18.59 113.98,13.46 33.52,-1.81 38.8,-0.73 39.14,2.02 0.47,3.87 -37.23,13.49 -47.52,16.46 -26.19,7.55 -94.83,22.8 -95.17,22.88z" | ||
| 46 | android:strokeLineJoin="miter" | ||
| 47 | android:strokeWidth="0" | ||
| 48 | android:fillColor="#ffffff" | ||
| 49 | android:strokeColor="#000000" | ||
| 50 | android:fillType="evenOdd" | ||
| 51 | android:strokeLineCap="butt"/> | ||
| 52 | </group> | ||
| 53 | </vector> | ||
diff --git a/java/res/mipmap-v26/emacs_icon.xml b/java/res/mipmap-v26/emacs_icon.xml new file mode 100644 index 00000000000..9f070e3f3d2 --- /dev/null +++ b/java/res/mipmap-v26/emacs_icon.xml | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | <!-- Adaptive icon for Emacs. | ||
| 2 | |||
| 3 | Copyright (C) 2023 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | ||
| 19 | |||
| 20 | <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 21 | <background android:drawable="@drawable/emacs_background"/> | ||
| 22 | <foreground android:drawable="@drawable/emacs_foreground"/> | ||
| 23 | </adaptive-icon> | ||
diff --git a/java/res/mipmap/emacs_icon.png b/java/res/mipmap/emacs_icon.png new file mode 100644 index 00000000000..9ab43d704be --- /dev/null +++ b/java/res/mipmap/emacs_icon.png | |||
| Binary files differ | |||