OSDN Git Service

am 52f70b2e: Fix bug with other apps launching the music app to play a song.
authorMarco Nelissen <marcone@google.com>
Tue, 15 Dec 2009 15:39:07 +0000 (07:39 -0800)
committerAndroid Git Automerger <android-git-automerger@android.com>
Tue, 15 Dec 2009 15:39:07 +0000 (07:39 -0800)
Merge commit '52f70b2e8eec4db1ee55ba55f92c70d2090ee412' into eclair-plus-aosp

* commit '52f70b2e8eec4db1ee55ba55f92c70d2090ee412':
  Fix bug with other apps launching the music app to play a song.

src/com/android/music/MediaPlaybackActivityStarter.java

index 373c61c..248a5f1 100644 (file)
@@ -30,7 +30,8 @@ public class MediaPlaybackActivityStarter extends Activity
     public void onCreate(Bundle icicle)
     {
         super.onCreate(icicle);
-        Intent i = new Intent(this, MediaPlaybackActivity.class);
+        Intent i = new Intent(getIntent());
+        i.setClass(this, MediaPlaybackActivity.class);
         startActivity(i);
         finish();
     }