Playback is stopped immediately on song change before further

processing, so the user has feedback on their input. Some operations in
this method can cause a delay on my phone.
This commit is contained in:
David Beswick authored and Christopher Eby committed 2011-08-23 16:55:17 -05:00
1 parent b8f3e3819f
commit 3fd61bcafe
1 file changed
+4
@@ -574,6 +574,10 @@ public final class PlaybackService extends Service implements Handler.Callback,
if (mMediaPlayer == null)
return;
synchronized (mMediaPlayer) {
mMediaPlayer.stop();
}
Song song = mTimeline.shiftCurrentSong(delta);
if (song == null) {
if (Song.isSongAvailable())