diff options
author | twyen <twyen@google.com> | 2017-07-19 10:52:06 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-07-25 16:43:09 +0000 |
commit | c0f9a04f7a3ae23c65ba9bd41ff8c8aad84a473f (patch) | |
tree | 2872c92f89e0e0dba8be3cf735598838063be78f /java/com/android/dialer/app/voicemail | |
parent | 35a248f6351664ab1b3cd7b933efc30521312d39 (diff) |
Pause voicemail playback when headphone is unplugged
Bug: 34512128
Test: VoicemailAudioManagerTest
PiperOrigin-RevId: 162505938
Change-Id: Ie097c0e04562ea5bf915ec61cd686b5ae5e1791c
Diffstat (limited to 'java/com/android/dialer/app/voicemail')
-rw-r--r-- | java/com/android/dialer/app/voicemail/VoicemailAudioManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/voicemail/VoicemailAudioManager.java b/java/com/android/dialer/app/voicemail/VoicemailAudioManager.java index 8d70cdbe7..d3c3820d7 100644 --- a/java/com/android/dialer/app/voicemail/VoicemailAudioManager.java +++ b/java/com/android/dialer/app/voicemail/VoicemailAudioManager.java @@ -86,6 +86,7 @@ public final class VoicemailAudioManager if (newIsPluggedIn) { newRoute = CallAudioState.ROUTE_WIRED_HEADSET; } else { + mVoicemailPlaybackPresenter.pausePlayback(); if (mWasSpeakerOn) { newRoute = CallAudioState.ROUTE_SPEAKER; } else { |