From facc6945f77e34fd561ac5fd40da47270cbed001 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 25 Jul 2020 20:03:59 +0200 Subject: convert webp files to compressed pngs, because Android 4 devices couldn't display webp's correctly --- app/src/custom/res/drawable-land/background_main.png | Bin 0 -> 44562 bytes app/src/custom/res/drawable-land/background_main.webp | Bin 10452 -> 0 bytes .../custom/res/drawable-land/ic_splash_background.png | Bin 0 -> 74207 bytes .../custom/res/drawable-land/ic_splash_background.webp | Bin 16928 -> 0 bytes .../res/drawable-sw600dp-port/background_main.png | Bin 0 -> 51417 bytes .../res/drawable-sw600dp-port/background_main.webp | Bin 12894 -> 0 bytes .../res/drawable-sw600dp-port/ic_splash_background.png | Bin 0 -> 90207 bytes .../drawable-sw600dp-port/ic_splash_background.webp | Bin 21606 -> 0 bytes .../custom/res/drawable-sw600dp/background_main.png | Bin 0 -> 73784 bytes .../custom/res/drawable-sw600dp/background_main.webp | Bin 17034 -> 0 bytes .../res/drawable-sw600dp/ic_splash_background.png | Bin 0 -> 102884 bytes .../res/drawable-sw600dp/ic_splash_background.webp | Bin 23410 -> 0 bytes app/src/custom/res/drawable/background_drawer.png | Bin 0 -> 74867 bytes app/src/custom/res/drawable/background_drawer.webp | Bin 16328 -> 0 bytes app/src/custom/res/drawable/background_main.png | Bin 0 -> 51417 bytes app/src/custom/res/drawable/background_main.webp | Bin 12894 -> 0 bytes app/src/custom/res/drawable/ic_splash_background.png | Bin 0 -> 90207 bytes app/src/custom/res/drawable/ic_splash_background.webp | Bin 21606 -> 0 bytes app/src/custom/res/drawable/logo_square.png | Bin 0 -> 5376 bytes app/src/custom/res/drawable/logo_square.webp | Bin 1042 -> 0 bytes 20 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 app/src/custom/res/drawable-land/background_main.png delete mode 100644 app/src/custom/res/drawable-land/background_main.webp create mode 100644 app/src/custom/res/drawable-land/ic_splash_background.png delete mode 100644 app/src/custom/res/drawable-land/ic_splash_background.webp create mode 100644 app/src/custom/res/drawable-sw600dp-port/background_main.png delete mode 100644 app/src/custom/res/drawable-sw600dp-port/background_main.webp create mode 100644 app/src/custom/res/drawable-sw600dp-port/ic_splash_background.png delete mode 100644 app/src/custom/res/drawable-sw600dp-port/ic_splash_background.webp create mode 100644 app/src/custom/res/drawable-sw600dp/background_main.png delete mode 100644 app/src/custom/res/drawable-sw600dp/background_main.webp create mode 100644 app/src/custom/res/drawable-sw600dp/ic_splash_background.png delete mode 100644 app/src/custom/res/drawable-sw600dp/ic_splash_background.webp create mode 100644 app/src/custom/res/drawable/background_drawer.png delete mode 100644 app/src/custom/res/drawable/background_drawer.webp create mode 100644 app/src/custom/res/drawable/background_main.png delete mode 100644 app/src/custom/res/drawable/background_main.webp create mode 100644 app/src/custom/res/drawable/ic_splash_background.png delete mode 100644 app/src/custom/res/drawable/ic_splash_background.webp create mode 100644 app/src/custom/res/drawable/logo_square.png delete mode 100644 app/src/custom/res/drawable/logo_square.webp (limited to 'app') diff --git a/app/src/custom/res/drawable-land/background_main.png b/app/src/custom/res/drawable-land/background_main.png new file mode 100644 index 00000000..5e22dfa1 Binary files /dev/null and b/app/src/custom/res/drawable-land/background_main.png differ diff --git a/app/src/custom/res/drawable-land/background_main.webp b/app/src/custom/res/drawable-land/background_main.webp deleted file mode 100644 index c28c2183..00000000 Binary files a/app/src/custom/res/drawable-land/background_main.webp and /dev/null differ diff --git a/app/src/custom/res/drawable-land/ic_splash_background.png b/app/src/custom/res/drawable-land/ic_splash_background.png new file mode 100644 index 00000000..8d8ed3d1 Binary files /dev/null and b/app/src/custom/res/drawable-land/ic_splash_background.png differ diff --git a/app/src/custom/res/drawable-land/ic_splash_background.webp b/app/src/custom/res/drawable-land/ic_splash_background.webp deleted file mode 100644 index f939c114..00000000 Binary files a/app/src/custom/res/drawable-land/ic_splash_background.webp and /dev/null differ diff --git a/app/src/custom/res/drawable-sw600dp-port/background_main.png b/app/src/custom/res/drawable-sw600dp-port/background_main.png new file mode 100644 index 00000000..c01e26c3 Binary files /dev/null and b/app/src/custom/res/drawable-sw600dp-port/background_main.png differ diff --git a/app/src/custom/res/drawable-sw600dp-port/background_main.webp b/app/src/custom/res/drawable-sw600dp-port/background_main.webp deleted file mode 100644 index 6d23e9e1..00000000 Binary files a/app/src/custom/res/drawable-sw600dp-port/background_main.webp and /dev/null differ diff --git a/app/src/custom/res/drawable-sw600dp-port/ic_splash_background.png b/app/src/custom/res/drawable-sw600dp-port/ic_splash_background.png new file mode 100644 index 00000000..6a06ddc9 Binary files /dev/null and b/app/src/custom/res/drawable-sw600dp-port/ic_splash_background.png differ diff --git a/app/src/custom/res/drawable-sw600dp-port/ic_splash_background.webp b/app/src/custom/res/drawable-sw600dp-port/ic_splash_background.webp deleted file mode 100644 index 227fcb24..00000000 Binary files a/app/src/custom/res/drawable-sw600dp-port/ic_splash_background.webp and /dev/null differ diff --git a/app/src/custom/res/drawable-sw600dp/background_main.png b/app/src/custom/res/drawable-sw600dp/background_main.png new file mode 100644 index 00000000..9ec4de06 Binary files /dev/null and b/app/src/custom/res/drawable-sw600dp/background_main.png differ diff --git a/app/src/custom/res/drawable-sw600dp/background_main.webp b/app/src/custom/res/drawable-sw600dp/background_main.webp deleted file mode 100644 index aa6b452b..00000000 Binary files a/app/src/custom/res/drawable-sw600dp/background_main.webp and /dev/null differ diff --git a/app/src/custom/res/drawable-sw600dp/ic_splash_background.png b/app/src/custom/res/drawable-sw600dp/ic_splash_background.png new file mode 100644 index 00000000..6b8c753f Binary files /dev/null and b/app/src/custom/res/drawable-sw600dp/ic_splash_background.png differ diff --git a/app/src/custom/res/drawable-sw600dp/ic_splash_background.webp b/app/src/custom/res/drawable-sw600dp/ic_splash_background.webp deleted file mode 100644 index f1a035ec..00000000 Binary files a/app/src/custom/res/drawable-sw600dp/ic_splash_background.webp and /dev/null differ diff --git a/app/src/custom/res/drawable/background_drawer.png b/app/src/custom/res/drawable/background_drawer.png new file mode 100644 index 00000000..0c42b73c Binary files /dev/null and b/app/src/custom/res/drawable/background_drawer.png differ diff --git a/app/src/custom/res/drawable/background_drawer.webp b/app/src/custom/res/drawable/background_drawer.webp deleted file mode 100644 index 8e0c4a6f..00000000 Binary files a/app/src/custom/res/drawable/background_drawer.webp and /dev/null differ diff --git a/app/src/custom/res/drawable/background_main.png b/app/src/custom/res/drawable/background_main.png new file mode 100644 index 00000000..c01e26c3 Binary files /dev/null and b/app/src/custom/res/drawable/background_main.png differ diff --git a/app/src/custom/res/drawable/background_main.webp b/app/src/custom/res/drawable/background_main.webp deleted file mode 100644 index 6d23e9e1..00000000 Binary files a/app/src/custom/res/drawable/background_main.webp and /dev/null differ diff --git a/app/src/custom/res/drawable/ic_splash_background.png b/app/src/custom/res/drawable/ic_splash_background.png new file mode 100644 index 00000000..6a06ddc9 Binary files /dev/null and b/app/src/custom/res/drawable/ic_splash_background.png differ diff --git a/app/src/custom/res/drawable/ic_splash_background.webp b/app/src/custom/res/drawable/ic_splash_background.webp deleted file mode 100644 index 227fcb24..00000000 Binary files a/app/src/custom/res/drawable/ic_splash_background.webp and /dev/null differ diff --git a/app/src/custom/res/drawable/logo_square.png b/app/src/custom/res/drawable/logo_square.png new file mode 100644 index 00000000..3cec6cec Binary files /dev/null and b/app/src/custom/res/drawable/logo_square.png differ diff --git a/app/src/custom/res/drawable/logo_square.webp b/app/src/custom/res/drawable/logo_square.webp deleted file mode 100644 index cd3ad9d0..00000000 Binary files a/app/src/custom/res/drawable/logo_square.webp and /dev/null differ -- cgit v1.2.3 From 023fa0e8d18a95e4fecb256fd4e4a1e6488c3df8 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 25 Jul 2020 21:21:22 +0200 Subject: move default background images to drawable-nodpi, drawable is treated as mdpi and will lead to upscaled images. Fixes blank background images on older devices because of exceeded opengl pixel width/height limits --- app/src/custom/res/drawable-nodpi/background_drawer.png | Bin 0 -> 74867 bytes app/src/custom/res/drawable-nodpi/background_main.png | Bin 0 -> 51417 bytes .../custom/res/drawable-nodpi/ic_splash_background.png | Bin 0 -> 90207 bytes app/src/custom/res/drawable/background_drawer.png | Bin 74867 -> 0 bytes app/src/custom/res/drawable/background_main.png | Bin 51417 -> 0 bytes app/src/custom/res/drawable/ic_splash_background.png | Bin 90207 -> 0 bytes 6 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 app/src/custom/res/drawable-nodpi/background_drawer.png create mode 100644 app/src/custom/res/drawable-nodpi/background_main.png create mode 100644 app/src/custom/res/drawable-nodpi/ic_splash_background.png delete mode 100644 app/src/custom/res/drawable/background_drawer.png delete mode 100644 app/src/custom/res/drawable/background_main.png delete mode 100644 app/src/custom/res/drawable/ic_splash_background.png (limited to 'app') diff --git a/app/src/custom/res/drawable-nodpi/background_drawer.png b/app/src/custom/res/drawable-nodpi/background_drawer.png new file mode 100644 index 00000000..0c42b73c Binary files /dev/null and b/app/src/custom/res/drawable-nodpi/background_drawer.png differ diff --git a/app/src/custom/res/drawable-nodpi/background_main.png b/app/src/custom/res/drawable-nodpi/background_main.png new file mode 100644 index 00000000..c01e26c3 Binary files /dev/null and b/app/src/custom/res/drawable-nodpi/background_main.png differ diff --git a/app/src/custom/res/drawable-nodpi/ic_splash_background.png b/app/src/custom/res/drawable-nodpi/ic_splash_background.png new file mode 100644 index 00000000..6a06ddc9 Binary files /dev/null and b/app/src/custom/res/drawable-nodpi/ic_splash_background.png differ diff --git a/app/src/custom/res/drawable/background_drawer.png b/app/src/custom/res/drawable/background_drawer.png deleted file mode 100644 index 0c42b73c..00000000 Binary files a/app/src/custom/res/drawable/background_drawer.png and /dev/null differ diff --git a/app/src/custom/res/drawable/background_main.png b/app/src/custom/res/drawable/background_main.png deleted file mode 100644 index c01e26c3..00000000 Binary files a/app/src/custom/res/drawable/background_main.png and /dev/null differ diff --git a/app/src/custom/res/drawable/ic_splash_background.png b/app/src/custom/res/drawable/ic_splash_background.png deleted file mode 100644 index 6a06ddc9..00000000 Binary files a/app/src/custom/res/drawable/ic_splash_background.png and /dev/null differ -- cgit v1.2.3 From d184c6e0a63467e1a18d35b0bc5fa0991cfc5e98 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 25 Jul 2020 22:19:42 +0200 Subject: fix rounded image in donation dialog for Android 4 devices --- app/build.gradle | 1 + app/src/main/res/layout/donation_reminder_dialog.xml | 16 ++++------------ app/src/main/res/layout/f_about.xml | 15 +++++++++++++++ app/src/main/res/values/untranslatable.xml | 3 +++ 4 files changed, 23 insertions(+), 12 deletions(-) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index 088be987..57cdf228 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -329,6 +329,7 @@ dependencies { implementation 'androidx.multidex:multidex:2.0.0' implementation 'androidx.cardview:cardview:1.0.0' implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0' + implementation 'de.hdodenhof:circleimageview:3.1.0' implementation project(path: ':shapeshifter') } diff --git a/app/src/main/res/layout/donation_reminder_dialog.xml b/app/src/main/res/layout/donation_reminder_dialog.xml index dc16906b..3af36086 100644 --- a/app/src/main/res/layout/donation_reminder_dialog.xml +++ b/app/src/main/res/layout/donation_reminder_dialog.xml @@ -32,20 +32,12 @@ android:gravity="center" android:text="@string/donate_message" /> - - - - + android:src="@drawable/donation_img" + />