diff options
author | Nancy Chen <nancychen@google.com> | 2015-08-25 16:08:42 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-08-26 10:23:23 -0700 |
commit | 9e03429acf15113db6ded3b10bf42963c7b1e727 (patch) | |
tree | cb12a12ba1eff59ebb2c1b31124f6a87439695ba /src/com | |
parent | b3342e14d3bfb6dd9a9133ece30350e2781dddac (diff) |
Check for whether view exists before attempting to resume play.
If the view does not exist, this probably means resumePlayback() was
called as a result of an asynchronous callback that returned after
navigating away from the voicemail playback view. In this case, just
return null.
Bug: 23521761
Change-Id: I75e5e997bce463739612d65f61413d06eae82de3
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index 540ffb446..dcf28bb0f 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -587,6 +587,10 @@ public class VoicemailPlaybackPresenter * playing. */ public void resumePlayback() { + if (mView == null) { + return; + } + if (!mIsPrepared) { // If we haven't downloaded the voicemail yet, attempt to download it. checkForContent(); |