From 2bb8009bda5898fec3cb59aebb93376288bcc5c1 Mon Sep 17 00:00:00 2001
From: DJDoubleD <34967020+DJDoubleD@users.noreply.github.com>
Date: Wed, 11 Jun 2025 20:03:47 +0200
Subject: [PATCH] Implement App Icon selection - added 2 additional app icons
to choose from - added translation string for settings screen - smaller
changes + formatting some touched files
---
android/app/src/main/AndroidManifest.xml | 73 ++++-
.../src/main/ic_launcher_new-playstore.png | Bin 34109 -> 0 bytes
.../java/r/r/refreezer/ChangeIconPlugin.java | 115 +++++++
.../main/java/r/r/refreezer/MainActivity.java | 7 +
.../ic_launcher_deezer_blue_foreground.xml | 28 ++
.../drawable/ic_launcher_cat_foreground.xml | 47 +++
.../ic_launcher_cat_mono_foreground.xml | 7 +
.../ic_launcher_deezer_mono_foreground.xml | 15 +
.../res/mipmap-anydpi-v26/ic_launcher.xml | 2 +-
.../res/mipmap-anydpi-v26/ic_launcher_cat.xml | 6 +
.../ic_launcher_cat_round.xml | 6 +
.../ic_launcher_deezer_blue.xml | 6 +
.../ic_launcher_deezer_blue_round.xml | 6 +
.../mipmap-anydpi-v26/ic_launcher_round.xml | 1 +
.../main/res/mipmap-hdpi/ic_launcher_cat.png | Bin 0 -> 3105 bytes
.../res/mipmap-hdpi/ic_launcher_cat_round.png | Bin 0 -> 5107 bytes
.../mipmap-hdpi/ic_launcher_deezer_blue.png | Bin 0 -> 2463 bytes
.../ic_launcher_deezer_blue_round.png | Bin 0 -> 4339 bytes
.../main/res/mipmap-mdpi/ic_launcher_cat.png | Bin 0 -> 1914 bytes
.../res/mipmap-mdpi/ic_launcher_cat_round.png | Bin 0 -> 3082 bytes
.../mipmap-mdpi/ic_launcher_deezer_blue.png | Bin 0 -> 1618 bytes
.../ic_launcher_deezer_blue_round.png | Bin 0 -> 2651 bytes
.../main/res/mipmap-xhdpi/ic_launcher_cat.png | Bin 0 -> 4388 bytes
.../mipmap-xhdpi/ic_launcher_cat_round.png | Bin 0 -> 7175 bytes
.../mipmap-xhdpi/ic_launcher_deezer_blue.png | Bin 0 -> 3558 bytes
.../ic_launcher_deezer_blue_round.png | Bin 0 -> 6264 bytes
.../res/mipmap-xxhdpi/ic_launcher_cat.png | Bin 0 -> 6692 bytes
.../mipmap-xxhdpi/ic_launcher_cat_round.png | Bin 0 -> 11493 bytes
.../mipmap-xxhdpi/ic_launcher_deezer_blue.png | Bin 0 -> 5575 bytes
.../ic_launcher_deezer_blue_round.png | Bin 0 -> 10126 bytes
.../res/mipmap-xxxhdpi/ic_launcher_cat.png | Bin 0 -> 9670 bytes
.../mipmap-xxxhdpi/ic_launcher_cat_round.png | Bin 0 -> 16085 bytes
.../ic_launcher_deezer_blue.png | Bin 0 -> 7786 bytes
.../ic_launcher_deezer_blue_round.png | Bin 0 -> 14331 bytes
.../res/values/ic_launcher_cat_background.xml | 4 +
.../ic_launcher_deezer_blue_background.xml | 4 +
assets/icon_deezer.png | Bin 0 -> 12549 bytes
assets/icons/CatIcon.png | Bin 0 -> 44293 bytes
assets/icons/DeezerBlueIcon.png | Bin 0 -> 40624 bytes
assets/icons/DefaultIcon.png | Bin 0 -> 48338 bytes
lib/languages/crowdin.dart | 8 +-
lib/languages/en_us.dart | 4 +
lib/service/audio_service.dart | 267 +++++++++++----
lib/settings.dart | 28 +-
lib/settings.g.dart | 2 +
lib/ui/player_screen.dart | 232 +++++++++----
lib/ui/search.dart | 2 -
lib/ui/settings_screen.dart | 304 ++++++++++++++----
lib/utils/app_icon_changer.dart | 25 ++
pubspec.yaml | 5 +-
translations/refreezer.json | 4 +-
51 files changed, 982 insertions(+), 226 deletions(-)
delete mode 100644 android/app/src/main/ic_launcher_new-playstore.png
create mode 100644 android/app/src/main/java/r/r/refreezer/ChangeIconPlugin.java
create mode 100644 android/app/src/main/res/drawable-v24/ic_launcher_deezer_blue_foreground.xml
create mode 100644 android/app/src/main/res/drawable/ic_launcher_cat_foreground.xml
create mode 100644 android/app/src/main/res/drawable/ic_launcher_cat_mono_foreground.xml
create mode 100644 android/app/src/main/res/drawable/ic_launcher_deezer_mono_foreground.xml
create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_cat.xml
create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_cat_round.xml
create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deezer_blue.xml
create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_deezer_blue_round.xml
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_cat.png
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_cat_round.png
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_deezer_blue.png
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_deezer_blue_round.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_cat.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_cat_round.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_deezer_blue.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_deezer_blue_round.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_cat.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_cat_round.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_deezer_blue.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_deezer_blue_round.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_cat.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_cat_round.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_deezer_blue.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_deezer_blue_round.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_cat.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_cat_round.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_deezer_blue.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_deezer_blue_round.png
create mode 100644 android/app/src/main/res/values/ic_launcher_cat_background.xml
create mode 100644 android/app/src/main/res/values/ic_launcher_deezer_blue_background.xml
create mode 100644 assets/icon_deezer.png
create mode 100644 assets/icons/CatIcon.png
create mode 100644 assets/icons/DeezerBlueIcon.png
create mode 100644 assets/icons/DefaultIcon.png
create mode 100644 lib/utils/app_icon_changer.dart
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 354de3f..f999c29 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -27,6 +27,7 @@
+
@@ -59,7 +63,6 @@
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:banner="@mipmap/ic_launcher"
- android:icon="@mipmap/ic_launcher"
android:logo="@mipmap/ic_launcher"
android:windowSoftInputMode="adjustResize"
android:exported = "true">
@@ -76,10 +79,10 @@
-
+
-
@@ -113,12 +116,70 @@
android:scheme="https"
android:host="www.deezer.page.link" />
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+