summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2015-04-11 13:59:26 -0700
committerJay Shrauner <shrauner@google.com>2015-04-11 14:34:26 -0700
commite9ab17c59b246ca373459d89597a75b40d1ca59a (patch)
tree890bb40fd49558333d256e92bf1fd790496cd9cf
parent28e45470f131466ad7591ff5fd167c20c8c1df17 (diff)
Don't use AudioState.ROUTE_ALL
For supported audio methods, explicitly construct a combination of known supported routes. Bug: Change-Id: Iee67a08370c8dc584106493bc751c9ac8e341198
-rw-r--r--InCallUI/src/com/android/incallui/AudioModeProvider.java3
1 files changed, 2 insertions, 1 deletions
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<AudioModeListener> mListeners = Lists.newArrayList();
private Phone mPhone;