summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-05 23:08:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-05 23:08:42 +0000
commit82974b2a33a26eb41d137f0b29484961fd71293a (patch)
treeaf989b29aca16a79ef7802d4ff781ccdaf8c7e60
parent9f1caf18bf3daf34bb1724998bae5e0fce385b61 (diff)
parent26feaf50b1bdc216741766ff301921b24fe85e37 (diff)
Merge "Don't call isPlaying if not prepared." into mnc-dev
-rw-r--r--src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java2
1 files changed, 1 insertions, 1 deletions
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();
}