diff options
author | Santos Cordon <santoscordon@google.com> | 2013-08-06 19:06:19 -0700 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2013-08-07 18:08:12 -0700 |
commit | ee4a3feabd047f27540c5967b88d407855f3de8a (patch) | |
tree | 5c60d1fc13b4d69006ca7ff2c456f999e00f8f78 /InCallUI/res/menu/incall_audio_mode_menu.xml | |
parent | 6d231f52e4f00399330d772f2a337283803f3a9d (diff) |
Audio Routing support in UI
Changes:
- AudioModeProvider - receives audio mode changes from
CallHandlerService
- CallButtonPresenter listens to AudioModeProvider so that it can use
those changes in the UI.
- CallButtonFragment uses the audio mode from Presenter() to display:
- The correct layers for the supported modes
- The popup menu when bluetooth is enabled
Change-Id: I8ec4024f7bbb5e3b1cfdaae20a4dd2f85ae802cf
Diffstat (limited to 'InCallUI/res/menu/incall_audio_mode_menu.xml')
-rw-r--r-- | InCallUI/res/menu/incall_audio_mode_menu.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/InCallUI/res/menu/incall_audio_mode_menu.xml b/InCallUI/res/menu/incall_audio_mode_menu.xml new file mode 100644 index 000000000..013989500 --- /dev/null +++ b/InCallUI/res/menu/incall_audio_mode_menu.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<!-- "Audio mode" popup menu for the in-call UI. --> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- TODO: Need final icon assets. Also, PopupMenu currently ignores the + android:icon attribute anyway(!) --> + <item android:id="@+id/audio_mode_speaker" + android:icon="@drawable/ic_sound_holo_dark" + android:title="@string/audio_mode_speaker" /> + + <!-- We display *either* "earpiece" or "wired headset", never both, + depending on whether a wired headset is physically plugged in + (see InCallTouchUi.showAudioModePopup().) --> + <item android:id="@+id/audio_mode_earpiece" + android:icon="@drawable/ic_ab_dialer_holo_dark" + android:title="@string/audio_mode_earpiece" /> + <item android:id="@+id/audio_mode_wired_headset" + android:icon="@drawable/ic_ab_dialer_holo_dark" + android:title="@string/audio_mode_wired_headset" /> + + <item android:id="@+id/audio_mode_bluetooth" + android:icon="@drawable/ic_bluetooth_holo_dark" + android:title="@string/audio_mode_bluetooth" /> +</menu> |