Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jul 13, 2024
1 parent 921773e commit ad80bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/eu/faircode/email/FragmentDialogTheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand All @@ -75,7 +75,7 @@ private void eval() {
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++)
Expand Down

0 comments on commit ad80bea

Please sign in to comment.