From 26feaf50b1bdc216741766ff301921b24fe85e37 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 5 Jun 2015 10:40:18 -0700 Subject: Don't call isPlaying if not prepared. Bug: 21647046 Change-Id: Ib0f5c2d7cd973ba4732defeceb32fe956e8dbdb8 --- src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index 99d2734eb..8db785212 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -204,7 +204,7 @@ public class VoicemailPlaybackPresenter public void onPause(boolean isFinishing) { // Do not pause for orientation changes. - if (mMediaPlayer.isPlaying() && isFinishing) { + if (mIsPrepared && mMediaPlayer.isPlaying() && isFinishing) { pausePlayback(); } -- cgit v1.2.3