Check DND for speak/sound

This commit is contained in:
M66B
2022-07-30 23:02:17 +02:00
parent 2939a50bd2
commit 867de1e813
3 changed files with 18 additions and 3 deletions

View File

@@ -906,7 +906,7 @@ public class EntityRule {
@Override
public void run() {
try {
if (MediaPlayerHelper.isInCall(context))
if (MediaPlayerHelper.isInCall(context) || MediaPlayerHelper.isDnd(context))
return;
speak(context, EntityRule.this, message);
} catch (Throwable ex) {