Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
bmx666 committed Jul 21, 2023
1 parent a3984c4 commit 63f04a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/com/midisheetmusic/SheetMusicActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ void createViews() {
useColors.setName(new StringHolder(R.string.use_note_colors));
useColors.setChecked(options.useColors);
useColors.setOnCheckedChangeListener((iDrawerItem, compoundButton, isChecked) -> {
if (isChecked)
if (isChecked) {
options.colorAccidentals = false;
}

colorAccidentals.setChecked(options.colorAccidentals);
MaterialDrawerSliderViewExtensionsKt.updateItem(drawer, colorAccidentals);
Expand All @@ -170,8 +171,9 @@ void createViews() {
colorAccidentals.setName(new StringHolder(R.string.use_accidental_colors));
colorAccidentals.setChecked(options.colorAccidentals);
colorAccidentals.setOnCheckedChangeListener((iDrawerItem, compoundButton, isChecked) -> {
if (isChecked)
if (isChecked) {
options.useColors = false;
}

useColors.setChecked(options.useColors);
MaterialDrawerSliderViewExtensionsKt.updateItem(drawer, useColors);
Expand Down

0 comments on commit 63f04a9

Please sign in to comment.