Simplification

This commit is contained in:
M66B 2022-06-17 18:26:58 +02:00
parent 353a38ca2f
commit 9244fdffda
1 changed files with 2 additions and 3 deletions

View File

@ -32,9 +32,8 @@ public class MediaPlayerHelper {
@Override
public void run() {
try {
if (MediaPlayerHelper.isInCall(context))
return;
MediaPlayerHelper.play(context, uri, alarm, duration);
if (!isInCall(context))
play(context, uri, alarm, duration);
} catch (Throwable ex) {
Log.e(ex);
}