Skip to content
Snippets Groups Projects
Commit 97ff4d0d authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko
Browse files

#415 Fixed play button been checked after canceling muted sound dialog.

parent 783deb74
Branches
Tags
No related merge requests found
......@@ -85,7 +85,7 @@ public class Header extends Content {
};
if(TablexiaSettings.getInstance().isSoundMuted())
showSoundMutedDialog(playButtonAction);
showSoundMutedDialog(playButtonAction, button);
else
playButtonAction.run();
}
......@@ -98,7 +98,7 @@ public class Header extends Content {
return headerTable;
}
private void showSoundMutedDialog(final Runnable onSuccessCallback) {
private void showSoundMutedDialog(final Runnable onSuccessCallback, final ImageTablexiaButton button) {
TablexiaComponentDialogFactory.getInstance().createWarningYesNoDialog(
ApplicationTextManager.getInstance().getText(ApplicationTextManager.ApplicationTextsAssets.SOUND_MUTED_QUESTION),
new ClickListener() {
......@@ -108,6 +108,12 @@ public class Header extends Content {
onSuccessCallback.run();
}
},
new ClickListener(){
@Override
public void clicked(InputEvent event, float x, float y) {
button.setUnchecked();
}
},
true
).show(TablexiaComponentDialogFactory.WARNING_DIALOG_WIDTH, TablexiaComponentDialogFactory.WARNING_DIALOG_HEIGHT);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment