From ad80beaded1e094084c75f31741797535423d69a Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 13 Jul 2024 14:02:06 +0200 Subject: [PATCH] Refactoring --- app/src/main/java/eu/faircode/email/FragmentDialogTheme.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java b/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java index 07d5d99791..3b147c4502 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogTheme.java @@ -65,8 +65,8 @@ public class FragmentDialogTheme extends FragmentDialogBase { private void eval() { int checkedId = rgTheme.getCheckedRadioButtonId(); boolean grey = (checkedId == R.id.rbThemeGrey); - boolean bw = (checkedId == R.id.rbThemeBlackOrWhite); boolean solarized = (checkedId == R.id.rbThemeSolarized); + boolean bw = (checkedId == R.id.rbThemeBlackOrWhite); boolean mono = (checkedId == R.id.rbThemeYouMono); boolean you = (checkedId == R.id.rbThemeYou || mono); boolean colored = (grey || bw || solarized || you || @@ -75,7 +75,7 @@ public class FragmentDialogTheme extends FragmentDialogBase { checkedId == R.id.rbThemeYellowPurple); int optionId = rgThemeOptions.getCheckedRadioButtonId(); - swReverse.setEnabled(colored && !grey && !bw && !solarized && !mono); + swReverse.setEnabled(colored && !grey && !solarized && !bw && !mono); rgThemeOptions.setEnabled(colored); for (int i = 0; i < rgThemeOptions.getChildCount(); i++)