Refactoring

pull/215/head
M66B 6 months ago
parent 921773eaa0
commit ad80beaded

@ -65,8 +65,8 @@ public class FragmentDialogTheme extends FragmentDialogBase {
private void eval() { private void eval() {
int checkedId = rgTheme.getCheckedRadioButtonId(); int checkedId = rgTheme.getCheckedRadioButtonId();
boolean grey = (checkedId == R.id.rbThemeGrey); boolean grey = (checkedId == R.id.rbThemeGrey);
boolean bw = (checkedId == R.id.rbThemeBlackOrWhite);
boolean solarized = (checkedId == R.id.rbThemeSolarized); boolean solarized = (checkedId == R.id.rbThemeSolarized);
boolean bw = (checkedId == R.id.rbThemeBlackOrWhite);
boolean mono = (checkedId == R.id.rbThemeYouMono); boolean mono = (checkedId == R.id.rbThemeYouMono);
boolean you = (checkedId == R.id.rbThemeYou || mono); boolean you = (checkedId == R.id.rbThemeYou || mono);
boolean colored = (grey || bw || solarized || you || boolean colored = (grey || bw || solarized || you ||
@ -75,7 +75,7 @@ public class FragmentDialogTheme extends FragmentDialogBase {
checkedId == R.id.rbThemeYellowPurple); checkedId == R.id.rbThemeYellowPurple);
int optionId = rgThemeOptions.getCheckedRadioButtonId(); int optionId = rgThemeOptions.getCheckedRadioButtonId();
swReverse.setEnabled(colored && !grey && !bw && !solarized && !mono); swReverse.setEnabled(colored && !grey && !solarized && !bw && !mono);
rgThemeOptions.setEnabled(colored); rgThemeOptions.setEnabled(colored);
for (int i = 0; i < rgThemeOptions.getChildCount(); i++) for (int i = 0; i < rgThemeOptions.getChildCount(); i++)

Loading…
Cancel
Save