From e9ab17c59b246ca373459d89597a75b40d1ca59a Mon Sep 17 00:00:00 2001 From: Jay Shrauner Date: Sat, 11 Apr 2015 13:59:26 -0700 Subject: Don't use AudioState.ROUTE_ALL For supported audio methods, explicitly construct a combination of known supported routes. Bug: Change-Id: Iee67a08370c8dc584106493bc751c9ac8e341198 --- InCallUI/src/com/android/incallui/AudioModeProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'InCallUI/src/com/android/incallui/AudioModeProvider.java') diff --git a/InCallUI/src/com/android/incallui/AudioModeProvider.java b/InCallUI/src/com/android/incallui/AudioModeProvider.java index a26766126..d4d21172e 100644 --- a/InCallUI/src/com/android/incallui/AudioModeProvider.java +++ b/InCallUI/src/com/android/incallui/AudioModeProvider.java @@ -33,7 +33,8 @@ public class AudioModeProvider implements InCallPhoneListener { private static AudioModeProvider sAudioModeProvider = new AudioModeProvider(); private int mAudioMode = AudioState.ROUTE_EARPIECE; private boolean mMuted = false; - private int mSupportedModes = AudioState.ROUTE_ALL; + private int mSupportedModes = AudioState.ROUTE_EARPIECE | AudioState.ROUTE_BLUETOOTH | + AudioState.ROUTE_WIRED_HEADSET | AudioState.ROUTE_SPEAKER; private final List mListeners = Lists.newArrayList(); private Phone mPhone; -- cgit v1.2.3