From 87a1bd3cad4c4962db9dd52efccd339dd2534212 Mon Sep 17 00:00:00 2001 From: Jay Shrauner Date: Sat, 11 Apr 2015 13:59:26 -0700 Subject: DO NOT MERGE 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') diff --git a/InCallUI/src/com/android/incallui/AudioModeProvider.java b/InCallUI/src/com/android/incallui/AudioModeProvider.java index c823fda3c..6516e820a 100644 --- a/InCallUI/src/com/android/incallui/AudioModeProvider.java +++ b/InCallUI/src/com/android/incallui/AudioModeProvider.java @@ -33,7 +33,8 @@ import java.util.List; 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