From 08dbfb2e09b9718d9cfabf5c9285741f9a6d97ab Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 3 Nov 2023 11:18:34 +0100 Subject: [PATCH] View HTML improvements --- .../java/eu/faircode/email/ActivityCode.java | 10 ++++++++-- .../drawable/twotone_cleaning_services_24.xml | 20 ------------------- app/src/main/res/menu/menu_code.xml | 4 ++-- app/src/main/res/values/strings.xml | 1 - 4 files changed, 10 insertions(+), 25 deletions(-) delete mode 100644 app/src/main/res/drawable/twotone_cleaning_services_24.xml diff --git a/app/src/main/java/eu/faircode/email/ActivityCode.java b/app/src/main/java/eu/faircode/email/ActivityCode.java index 1763d82897..5c19141ac5 100644 --- a/app/src/main/java/eu/faircode/email/ActivityCode.java +++ b/app/src/main/java/eu/faircode/email/ActivityCode.java @@ -116,7 +116,13 @@ public class ActivityCode extends ActivityBase { menu.findItem(R.id.menu_sanitize) .setVisible(BuildConfig.DEBUG || debug) - .setChecked(sanitize); + .setChecked(sanitize) + .setIcon(sanitize + ? R.drawable.twotone_fullscreen_24 + : R.drawable.twotone_fullscreen_exit_24) + .setTitle(getString(sanitize + ? R.string.title_legend_show_full + : R.string.title_legend_show_reformatted)); return super.onPrepareOptionsMenu(menu); } @@ -128,7 +134,7 @@ public class ActivityCode extends ActivityBase { return true; } else if (itemId == R.id.menu_sanitize) { sanitize = !sanitize; - item.setChecked(sanitize); + invalidateOptionsMenu(); load(); return true; } diff --git a/app/src/main/res/drawable/twotone_cleaning_services_24.xml b/app/src/main/res/drawable/twotone_cleaning_services_24.xml deleted file mode 100644 index 13c7501478..0000000000 --- a/app/src/main/res/drawable/twotone_cleaning_services_24.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - diff --git a/app/src/main/res/menu/menu_code.xml b/app/src/main/res/menu/menu_code.xml index 96e7ac0031..c49fc7df43 100644 --- a/app/src/main/res/menu/menu_code.xml +++ b/app/src/main/res/menu/menu_code.xml @@ -4,7 +4,7 @@ diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4e52f4c555..524301d5e7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2344,7 +2344,6 @@ Follow dark system theme Google removed dark mode for Android versions before version 10 - Sanitize Important