From 2a7038337da653ad8fde7186ae137bcf5c77d539 Mon Sep 17 00:00:00 2001 From: حسين Date: Wed, 2 May 2018 19:48:02 +0100 Subject: added support for adaptive icon (#402) Signed-off-by: Hussein Mohammed --- app/src/main/AndroidManifest.xml | 2 +- app/src/main/ic_launcher-web.png | Bin 0 -> 36235 bytes .../java/com/zeapo/pwdstore/PasswordStore.java | 2 +- app/src/main/res/drawable-hdpi/ic_launcher.png | Bin 2804 -> 0 bytes app/src/main/res/drawable-mdpi/ic_launcher.png | Bin 2004 -> 0 bytes app/src/main/res/drawable-xhdpi/ic_launcher.png | Bin 3653 -> 0 bytes app/src/main/res/drawable-xxhdpi/ic_launcher.png | Bin 5427 -> 0 bytes .../main/res/drawable/ic_launcher_foreground.xml | 26 +++++++++++++++++++++ .../main/res/layout/fragment_to_clone_or_not.xml | 2 +- app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml | 5 ++++ .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 5 ++++ app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 1894 bytes app/src/main/res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 4048 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 1358 bytes app/src/main/res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2626 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 2501 bytes .../main/res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 5649 bytes app/src/main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 4045 bytes .../main/res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 8679 bytes app/src/main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 5385 bytes .../main/res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 12286 bytes app/src/main/res/values/colors.xml | 1 + 22 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 app/src/main/ic_launcher-web.png delete mode 100644 app/src/main/res/drawable-hdpi/ic_launcher.png delete mode 100644 app/src/main/res/drawable-mdpi/ic_launcher.png delete mode 100644 app/src/main/res/drawable-xhdpi/ic_launcher.png delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/drawable/ic_launcher_foreground.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png (limited to 'app') diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 95a19ca3..735fb604 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,7 +9,7 @@ diff --git a/app/src/main/ic_launcher-web.png b/app/src/main/ic_launcher-web.png new file mode 100644 index 00000000..f61a368b Binary files /dev/null and b/app/src/main/ic_launcher-web.png differ diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java index 99593700..890ab3e8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java @@ -449,7 +449,7 @@ public class PasswordStore extends AppCompatActivity { ShortcutInfo shortcut = new ShortcutInfo.Builder(this, item.getFullPathToParent()) .setShortLabel(item.toString()) .setLongLabel(item.getFullPathToParent() + item.toString()) - .setIcon(Icon.createWithResource(this, R.drawable.ic_launcher)) + .setIcon(Icon.createWithResource(this, R.mipmap.ic_launcher)) .setIntent(intent.setAction("DECRYPT_PASS")) // Needs action .build(); List shortcuts = shortcutManager.getDynamicShortcuts(); diff --git a/app/src/main/res/drawable-hdpi/ic_launcher.png b/app/src/main/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 97b6e75b..00000000 Binary files a/app/src/main/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/drawable-mdpi/ic_launcher.png b/app/src/main/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index bacd183a..00000000 Binary files a/app/src/main/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/drawable-xhdpi/ic_launcher.png b/app/src/main/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 134fd31f..00000000 Binary files a/app/src/main/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/app/src/main/res/drawable-xxhdpi/ic_launcher.png deleted file mode 100644 index f16858a7..00000000 Binary files a/app/src/main/res/drawable-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 00000000..318de001 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/app/src/main/res/layout/fragment_to_clone_or_not.xml b/app/src/main/res/layout/fragment_to_clone_or_not.xml index 87d1d849..cfeb529c 100644 --- a/app/src/main/res/layout/fragment_to_clone_or_not.xml +++ b/app/src/main/res/layout/fragment_to_clone_or_not.xml @@ -16,7 +16,7 @@ android:layout_height="wrap_content" android:id="@+id/imageView" android:layout_gravity="center" - android:src="@drawable/ic_launcher" + android:src="@mipmap/ic_launcher" android:contentDescription="@string/app_icon_hint" android:layout_centerVertical="true" android:layout_centerHorizontal="true" /> diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..7353dbd1 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..7353dbd1 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..4250b444 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..40a3e709 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..2fa14ad0 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..2fafd35a Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..42339f78 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..546c4838 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..11d48214 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..4e79b41b Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..fb3b1f03 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..17ad81d8 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 6293755e..ef263161 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -15,4 +15,5 @@ #000000 #004d40 #00bfa5 + #D4F1EA -- cgit v1.2.3