Small improvement

This commit is contained in:
M66B
2024-01-24 07:09:24 +01:00
parent 0ba227922e
commit 4aef60d638

View File

@@ -162,9 +162,9 @@ public class MediaPlayerHelper {
}
static void startMusic(Context context, Uri uri, Runnable onCompleted) throws IOException {
stopMusic(context);
synchronized (lock) {
stopMusic(context);
MediaPlayerHelper.uri = uri;
MediaPlayerHelper.onCompleted = onCompleted;