diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-03-10 19:47:10 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-03-10 19:47:10 +0100 |
commit | ba1c434b1d4a89fd9c3706338bd0e1cda14e03b4 (patch) | |
tree | 66d3690e724876b1a4c44a24c74e4cb9cc7e5281 /src/de | |
parent | fc156782f4ea98c014f117e77a959fc3d5bf2e10 (diff) | |
download | AntennaPod-ba1c434b1d4a89fd9c3706338bd0e1cda14e03b4.zip |
audio player didn't always play external files correctly
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/activity/AudioplayerActivity.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/activity/AudioplayerActivity.java b/src/de/danoeh/antennapod/activity/AudioplayerActivity.java index 3e38d7b5c..adabb3bdb 100644 --- a/src/de/danoeh/antennapod/activity/AudioplayerActivity.java +++ b/src/de/danoeh/antennapod/activity/AudioplayerActivity.java @@ -88,7 +88,8 @@ public class AudioplayerActivity extends MediaplayerActivity { if (AppConfig.DEBUG) Log.d(TAG, "Received VIEW intent: " + intent.getData().getPath()); - ExternalMedia media = new ExternalMedia(intent.getData().getPath(), MediaType.AUDIO); + ExternalMedia media = new ExternalMedia(intent.getData().getPath(), + MediaType.AUDIO); Intent launchIntent = new Intent(this, PlaybackService.class); launchIntent.putExtra(PlaybackService.EXTRA_PLAYABLE, media); launchIntent.putExtra(PlaybackService.EXTRA_START_WHEN_PREPARED, @@ -101,6 +102,12 @@ public class AudioplayerActivity extends MediaplayerActivity { } @Override + protected void onNewIntent(Intent intent) { + super.onNewIntent(intent); + setIntent(intent); + } + + @Override protected void onAwaitingVideoSurface() { startActivity(new Intent(this, VideoplayerActivity.class)); } |