OSDN Git Service

Merge change I347fe57e into eclair
authorAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 9 Oct 2009 19:31:25 +0000 (15:31 -0400)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 9 Oct 2009 19:31:25 +0000 (15:31 -0400)
* changes:
  1915450: Make the music widget show pause state properly

src/com/android/music/MediaPlaybackService.java

index f92bc6d..09edf52 100644 (file)
@@ -1066,9 +1066,10 @@ public class MediaPlaybackService extends Service {
                     new Intent("com.android.music.PLAYBACK_VIEWER"), 0);
             startForeground(PLAYBACKSERVICE_STATUS, status);
             if (!mIsSupposedToBePlaying) {
+                mIsSupposedToBePlaying = true;
                 notifyChange(PLAYSTATE_CHANGED);
             }
-            mIsSupposedToBePlaying = true;
+
         } else if (mPlayListLen <= 0) {
             // This is mostly so that if you press 'play' on a bluetooth headset
             // without every having played anything before, it will still play