Simplification

pull/208/head
M66B 3 years ago
parent 353a38ca2f
commit 9244fdffda

@ -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);
}

Loading…
Cancel
Save