From 027572524bb4b90926ff91306d496eff29ac5aef Mon Sep 17 00:00:00 2001 From: Anton Danilov <anton.danilov@nic.cz> Date: Thu, 4 Aug 2016 11:13:45 +0200 Subject: [PATCH] #428 Removed dialog when pausing music while sounds muted --- .../tablexia/screen/encyclopedia/content/model/Header.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/cz/nic/tablexia/screen/encyclopedia/content/model/Header.java b/core/src/cz/nic/tablexia/screen/encyclopedia/content/model/Header.java index fa3e05653..a254c0119 100644 --- a/core/src/cz/nic/tablexia/screen/encyclopedia/content/model/Header.java +++ b/core/src/cz/nic/tablexia/screen/encyclopedia/content/model/Header.java @@ -84,10 +84,11 @@ public class Header extends Content { } }; - if(TablexiaSettings.getInstance().isSoundMuted()) + if(TablexiaSettings.getInstance().isSoundMuted() && button.isChecked()) { showSoundMutedDialog(playButtonAction, button); - else + } else { playButtonAction.run(); + } } }); headerTable.add(headerLabel).maxWidth(parentContainerWidth - BUTTON_WIDTH - PAD_RIGHT).fillX().expandX().left(); -- GitLab