mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
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…
Reference in New Issue