diff options
author | Andrew Lee <anwlee@google.com> | 2015-06-11 11:19:31 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-06-11 11:19:31 -0700 |
commit | 200916e230f4876d55dc5cfb158565b901073730 (patch) | |
tree | b96b9f9aa6efcabc659914ec42ebe1979cd5c6bf /src | |
parent | a74ebca775f79f12354eaf335cb952ce246272fc (diff) |
Check mIsPrepared before querying MediaPlayer.
Bug: 21764908
Change-Id: I5336ccadf13724430c2f3ee76c37efacd73cd27f
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index da2a29cf7..a0e48546f 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -523,7 +523,8 @@ public class VoicemailPlaybackPresenter } private void enableProximitySensor() { - if (mProximityWakeLock == null || isSpeakerphoneOn() || !mMediaPlayer.isPlaying()) { + if (mProximityWakeLock == null || isSpeakerphoneOn() || + !mIsPrepared || !mMediaPlayer.isPlaying()) { return; } |