mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
0ba227922e
commit
4aef60d638
|
@ -162,9 +162,9 @@ public class MediaPlayerHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void startMusic(Context context, Uri uri, Runnable onCompleted) throws IOException {
|
static void startMusic(Context context, Uri uri, Runnable onCompleted) throws IOException {
|
||||||
|
synchronized (lock) {
|
||||||
stopMusic(context);
|
stopMusic(context);
|
||||||
|
|
||||||
synchronized (lock) {
|
|
||||||
MediaPlayerHelper.uri = uri;
|
MediaPlayerHelper.uri = uri;
|
||||||
MediaPlayerHelper.onCompleted = onCompleted;
|
MediaPlayerHelper.onCompleted = onCompleted;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue