1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

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;