diff options
author | Andrew Lee <anwlee@google.com> | 2015-06-11 21:45:13 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-11 21:45:13 +0000 |
commit | 42d8f97b49dd90c11077a680d40088d2505e1129 (patch) | |
tree | 03182c77df0c0f3ea3d9b4b2a303a122514f7861 /src | |
parent | 44919b041bd28792e18cfa65ea6868da3d8b9f52 (diff) | |
parent | 6f60e730e1f6d39303b37ece9fb464073a98a0c2 (diff) |
Merge "Default to earpiece for all voicemail." into mnc-dev
Diffstat (limited to 'src')
-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 a0e48546f..4ccbe102d 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(); + } } |