diff options
Diffstat (limited to 'src/com/android/dialer/voicemail')
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index da2a29cf7..98ccd05cb 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -184,8 +184,6 @@ public class VoicemailPlaybackPresenter mView = view; mView.setPresenter(this); - mView.onSpeakerphoneOn(isSpeakerphoneOn()); - if (mVoicemailUri != null && mVoicemailUri.equals(voicemailUri)) { // Handles rotation case where playback view is set for the same voicemail. if (mIsPrepared) { @@ -193,11 +191,17 @@ public class VoicemailPlaybackPresenter } else { checkForContent(); } + mView.onSpeakerphoneOn(isSpeakerphoneOn()); } else { mVoicemailUri = voicemailUri; mPosition = 0; mIsPlaying = startPlayingImmediately; + + // Default to earpiece. + mView.onSpeakerphoneOn(false); + checkForContent(); + } } |