summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2015-02-05 15:47:09 -0800
committerYorke Lee <yorkelee@google.com>2015-02-06 00:45:36 +0000
commit06d7d08ecac60bca1472b5e380db7ce6fad0ea43 (patch)
tree3894aa52c534a5de4d5a19a0b3989455e37425b4 /src
parent7aaf24148e874e7a2f8565af49564fe272eff7f2 (diff)
Fix voicemail playback position control
Bug:19255194 Change-Id: I8eabe46ef6fff774291e3f943051c24eca8a00e0
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java10
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;