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-14 17:26:20 -0700
commit87a1bd3cad4c4962db9dd52efccd339dd2534212 (patch)
treed8e22573b1ed7b35b2e3acb6f5c91dccd41710b6
parent54211febe8be96b771f793f441ec70b2e72a42b1 (diff)
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
-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 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<AudioModeListener> mListeners = Lists.newArrayList();
private Phone mPhone;