summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsher Simonds <dayanhammer@gmail.com>2018-02-12 10:20:12 +0100
committerMichael Bestas <mkbestas@lineageos.org>2018-02-14 00:17:59 +0200
commit0d3f2aad322964dcf65f6f11fa9b0a70e9f48486 (patch)
treebb1f86f072b17a91eea1e83a916c72e2215167f2
parent9ebc404b6d8590f9cba279ee63e25dc1352c8c8c (diff)
downloadandroid_packages_apps_Snap-0d3f2aad322964dcf65f6f11fa9b0a70e9f48486.tar.gz
android_packages_apps_Snap-0d3f2aad322964dcf65f6f11fa9b0a70e9f48486.tar.bz2
android_packages_apps_Snap-0d3f2aad322964dcf65f6f11fa9b0a70e9f48486.zip
Snap: adaptive icon
Change-Id: I22760394096e4b4259fb4a1755f26bb58b1b3141 Signed-off-by: Joey <joey@lineageos.org>
-rwxr-xr-xAndroidManifest.xml2
-rw-r--r--res/mipmap-anydpi/ic_launcher.xml20
-rw-r--r--res/mipmap-hdpi/ic_background.pngbin0 -> 998 bytes
-rw-r--r--res/mipmap-hdpi/ic_foreground.pngbin0 -> 12587 bytes
-rw-r--r--res/mipmap-hdpi/ic_launcher_camera.pngbin4379 -> 0 bytes
-rw-r--r--res/mipmap-mdpi/ic_background.pngbin0 -> 672 bytes
-rw-r--r--res/mipmap-mdpi/ic_foreground.pngbin0 -> 6325 bytes
-rw-r--r--res/mipmap-mdpi/ic_launcher_camera.pngbin2963 -> 0 bytes
-rw-r--r--res/mipmap-xhdpi/ic_background.pngbin0 -> 1311 bytes
-rw-r--r--res/mipmap-xhdpi/ic_foreground.pngbin0 -> 20296 bytes
-rw-r--r--res/mipmap-xhdpi/ic_launcher_camera.pngbin6868 -> 0 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_background.pngbin0 -> 2081 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_foreground.pngbin0 -> 41118 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_launcher_camera.pngbin10108 -> 0 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_background.pngbin0 -> 2884 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_foreground.pngbin0 -> 68600 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_launcher_camera.pngbin15759 -> 0 bytes
17 files changed, 21 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 11e8eaa04..e0654f80f 100755
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -37,7 +37,7 @@
<application
android:name="com.android.camera.app.CameraApp"
android:hardwareAccelerated="true"
- android:icon="@mipmap/ic_launcher_camera"
+ android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:restoreAnyVersion="true"
diff --git a/res/mipmap-anydpi/ic_launcher.xml b/res/mipmap-anydpi/ic_launcher.xml
new file mode 100644
index 000000000..d8649ba56
--- /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 000000000..591eeb3af
--- /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 000000000..6f16c1969
--- /dev/null
+++ b/res/mipmap-hdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-hdpi/ic_launcher_camera.png b/res/mipmap-hdpi/ic_launcher_camera.png
deleted file mode 100644
index e9a0584f5..000000000
--- a/res/mipmap-hdpi/ic_launcher_camera.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 000000000..1eb04d24b
--- /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 000000000..b08ab8774
--- /dev/null
+++ b/res/mipmap-mdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_launcher_camera.png b/res/mipmap-mdpi/ic_launcher_camera.png
deleted file mode 100644
index 75ece0244..000000000
--- a/res/mipmap-mdpi/ic_launcher_camera.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 000000000..daeceb3af
--- /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 000000000..ede38061f
--- /dev/null
+++ b/res/mipmap-xhdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_launcher_camera.png b/res/mipmap-xhdpi/ic_launcher_camera.png
deleted file mode 100644
index 3d5676d7e..000000000
--- a/res/mipmap-xhdpi/ic_launcher_camera.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 000000000..28b55617e
--- /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 000000000..efd6ec767
--- /dev/null
+++ b/res/mipmap-xxhdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_launcher_camera.png b/res/mipmap-xxhdpi/ic_launcher_camera.png
deleted file mode 100644
index 346d86887..000000000
--- a/res/mipmap-xxhdpi/ic_launcher_camera.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 000000000..31fbb3609
--- /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 000000000..a1425830f
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_launcher_camera.png b/res/mipmap-xxxhdpi/ic_launcher_camera.png
deleted file mode 100644
index e84c8d308..000000000
--- a/res/mipmap-xxxhdpi/ic_launcher_camera.png
+++ /dev/null
Binary files differ