From: Jean-Baptiste Queru Date: Tue, 17 Mar 2009 23:08:48 +0000 (-0700) Subject: Merge commit 'remotes/korg/cupcake' into merge X-Git-Tag: android-x86-1.6~9 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b9b90ac850a1b80f6f023a28131c0da9b751b55d;p=android-x86%2Fpackages-apps-Music.git Merge commit 'remotes/korg/cupcake' into merge --- b9b90ac850a1b80f6f023a28131c0da9b751b55d diff --cc src/com/android/music/MediaPlaybackService.java index 7aca206,8c1c9db..6c5f1f9 --- a/src/com/android/music/MediaPlaybackService.java +++ b/src/com/android/music/MediaPlaybackService.java @@@ -905,15 -977,8 +977,14 @@@ public class MediaPlaybackService exten */ public void play() { if (mPlayer.isInitialized()) { + // if we are at the end of the song, go to the next song first + if (mRepeatMode != REPEAT_CURRENT && + mPlayer.position() >= mPlayer.duration() - 1) { + next(true); + } + mPlayer.start(); setForeground(true); - mWasPlaying = true; NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);