summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsher Simonds <dayanhammer@gmail.com>2018-02-12 10:18:30 +0100
committerMichael Bestas <mkbestas@lineageos.org>2019-12-11 20:06:19 +0200
commit7d721b331f44890c48f32e87b7f09f64e00261af (patch)
tree581ef7c85de0bf639339344407011d653aba7e2b
parent1938ad4fc2cba17bedfdb7f55760cd8132b27de3 (diff)
downloadandroid_packages_apps_Calendar-7d721b331f44890c48f32e87b7f09f64e00261af.tar.gz
android_packages_apps_Calendar-7d721b331f44890c48f32e87b7f09f64e00261af.tar.bz2
android_packages_apps_Calendar-7d721b331f44890c48f32e87b7f09f64e00261af.zip
Calendar: adaptive icon
Change-Id: Ie04adc9e759820bb0d813ffb0efdca687b0a1fe4 Signed-off-by: Joey <joey@lineageos.org>
-rw-r--r--AndroidManifest.xml3
-rw-r--r--res/mipmap-anydpi/ic_launcher.xml20
-rw-r--r--res/mipmap-hdpi/ic_background.pngbin0 -> 971 bytes
-rw-r--r--res/mipmap-hdpi/ic_foreground.pngbin0 -> 8422 bytes
-rw-r--r--res/mipmap-hdpi/ic_launcher_calendar.pngbin7609 -> 0 bytes
-rw-r--r--res/mipmap-mdpi/ic_background.pngbin0 -> 629 bytes
-rw-r--r--res/mipmap-mdpi/ic_foreground.pngbin0 -> 4392 bytes
-rw-r--r--res/mipmap-mdpi/ic_launcher_calendar.pngbin4167 -> 0 bytes
-rw-r--r--res/mipmap-xhdpi/ic_background.pngbin0 -> 1240 bytes
-rw-r--r--res/mipmap-xhdpi/ic_foreground.pngbin0 -> 13817 bytes
-rw-r--r--res/mipmap-xhdpi/ic_launcher_calendar.pngbin11578 -> 0 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_background.pngbin0 -> 1866 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_foreground.pngbin0 -> 27759 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_launcher_calendar.pngbin20247 -> 0 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_background.pngbin0 -> 2805 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_foreground.pngbin0 -> 46541 bytes
16 files changed, 22 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 9fa49957..3d378824 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -42,7 +42,8 @@
<application android:name="CalendarApplication"
- android:label="@string/app_label" android:icon="@mipmap/ic_launcher_calendar"
+ android:label="@string/app_label"
+ android:icon="@mipmap/ic_launcher"
android:taskAffinity="android.task.calendar"
android:hardwareAccelerated="true"
android:backupAgent="com.android.calendar.CalendarBackupAgent"
diff --git a/res/mipmap-anydpi/ic_launcher.xml b/res/mipmap-anydpi/ic_launcher.xml
new file mode 100644
index 00000000..d8649ba5
--- /dev/null
+++ b/res/mipmap-anydpi/ic_launcher.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2018 The LineageOS Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@mipmap/ic_background"/>
+ <foreground android:drawable="@mipmap/ic_foreground"/>
+</adaptive-icon>
+
diff --git a/res/mipmap-hdpi/ic_background.png b/res/mipmap-hdpi/ic_background.png
new file mode 100644
index 00000000..6b2d39d9
--- /dev/null
+++ b/res/mipmap-hdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-hdpi/ic_foreground.png b/res/mipmap-hdpi/ic_foreground.png
new file mode 100644
index 00000000..32079306
--- /dev/null
+++ b/res/mipmap-hdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-hdpi/ic_launcher_calendar.png b/res/mipmap-hdpi/ic_launcher_calendar.png
deleted file mode 100644
index 0564717b..00000000
--- a/res/mipmap-hdpi/ic_launcher_calendar.png
+++ /dev/null
Binary files differ
diff --git a/res/mipmap-mdpi/ic_background.png b/res/mipmap-mdpi/ic_background.png
new file mode 100644
index 00000000..af0b1be1
--- /dev/null
+++ b/res/mipmap-mdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_foreground.png b/res/mipmap-mdpi/ic_foreground.png
new file mode 100644
index 00000000..691aee9a
--- /dev/null
+++ b/res/mipmap-mdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_launcher_calendar.png b/res/mipmap-mdpi/ic_launcher_calendar.png
deleted file mode 100644
index 0f403474..00000000
--- a/res/mipmap-mdpi/ic_launcher_calendar.png
+++ /dev/null
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_background.png b/res/mipmap-xhdpi/ic_background.png
new file mode 100644
index 00000000..072b4927
--- /dev/null
+++ b/res/mipmap-xhdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_foreground.png b/res/mipmap-xhdpi/ic_foreground.png
new file mode 100644
index 00000000..5e479427
--- /dev/null
+++ b/res/mipmap-xhdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_launcher_calendar.png b/res/mipmap-xhdpi/ic_launcher_calendar.png
deleted file mode 100644
index d7705cfb..00000000
--- a/res/mipmap-xhdpi/ic_launcher_calendar.png
+++ /dev/null
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_background.png b/res/mipmap-xxhdpi/ic_background.png
new file mode 100644
index 00000000..0614494e
--- /dev/null
+++ b/res/mipmap-xxhdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_foreground.png b/res/mipmap-xxhdpi/ic_foreground.png
new file mode 100644
index 00000000..c509fe9a
--- /dev/null
+++ b/res/mipmap-xxhdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_launcher_calendar.png b/res/mipmap-xxhdpi/ic_launcher_calendar.png
deleted file mode 100644
index f07299fd..00000000
--- a/res/mipmap-xxhdpi/ic_launcher_calendar.png
+++ /dev/null
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_background.png b/res/mipmap-xxxhdpi/ic_background.png
new file mode 100644
index 00000000..786164d3
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_foreground.png b/res/mipmap-xxxhdpi/ic_foreground.png
new file mode 100644
index 00000000..cc772317
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_foreground.png
Binary files differ