diff options
author | Andrew Lee <anwlee@google.com> | 2015-06-11 11:27:41 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-06-11 13:35:49 -0700 |
commit | 6f60e730e1f6d39303b37ece9fb464073a98a0c2 (patch) | |
tree | c406c293370f1c4f61e63a780b213fd564b63071 /src/com/android/dialer | |
parent | a74ebca775f79f12354eaf335cb952ce246272fc (diff) |
Default to earpiece for all voicemail.
Bug: 21654804
Change-Id: I9fa76a33231ae95f4a233b4f6615c56280a0228e
Diffstat (limited to 'src/com/android/dialer')
-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(); + } } |