diff options
author | Jay Shrauner <shrauner@google.com> | 2015-02-06 01:07:24 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-06 01:07:24 +0000 |
commit | 26be9374834c61bcd1d2c267d42253ca7524b4dd (patch) | |
tree | 3894aa52c534a5de4d5a19a0b3989455e37425b4 | |
parent | 2e7ea428be632749f9e1a2b716e09fd493028547 (diff) | |
parent | 06d7d08ecac60bca1472b5e380db7ce6fad0ea43 (diff) |
am 06d7d08e: Fix voicemail playback position control
* commit '06d7d08ecac60bca1472b5e380db7ce6fad0ea43':
Fix voicemail playback position control
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index 085ef669a..cb246f4c8 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -446,12 +446,10 @@ public class VoicemailPlaybackPresenter { @Override public Exception doInBackground(Void... params) { try { - if (!mPlayer.isReadyToPlay()) { - mPlayer.reset(); - mPlayer.setDataSource(mView.getDataSourceContext(), mVoicemailUri); - mPlayer.setAudioStreamType(PLAYBACK_STREAM); - mPlayer.prepare(); - } + mPlayer.reset(); + mPlayer.setDataSource(mView.getDataSourceContext(), mVoicemailUri); + mPlayer.setAudioStreamType(PLAYBACK_STREAM); + mPlayer.prepare(); return null; } catch (Exception e) { return e; |