From 439365a9477ee0dfbc4ac0933db13a1614edd597 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 10 Apr 2015 17:52:04 -0700 Subject: Simplify and rewire in-call buttons * Fix bug where the switch camera option was never shown * Fix bug where dialpad button was shown for video calls * Move management of call button's actual visiblity into the CallCardFragment. The CallCardPresenter is in charge of deciding what functionality is available, but the CallCardFragment manages the actual UI that is displayed. * Simplify code that collapses call button functionality into the overflow button. Any buttons that would cause the total number of buttons to exceed the given threshold will be collapsed into an overflow menu. * Dynamically toggle the contentDescription of the hold button. This is used for both accessibility as well as generating the menu option if the button is collapsed into the overflow menu * Removed some now unused strings and code. Bug: 20127747 Bug: 20127925 Bug: 20090502 Change-Id: I33fda7ad74af926d8c3a507bff8f3c69c19ea57e --- InCallUI/res/layout/call_button_fragment.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'InCallUI/res/layout/call_button_fragment.xml') diff --git a/InCallUI/res/layout/call_button_fragment.xml b/InCallUI/res/layout/call_button_fragment.xml index 69d0ee3a0..4eac03482 100644 --- a/InCallUI/res/layout/call_button_fragment.xml +++ b/InCallUI/res/layout/call_button_fragment.xml @@ -68,7 +68,8 @@ + android:contentDescription="@string/audio_mode_speaker" + android:visibility="gone" /> + android:contentDescription="@string/onscreenMuteText" + android:visibility="gone" /> @@ -91,7 +93,8 @@ + android:contentDescription="@string/onscreenShowDialpadText" + android:visibility="gone" /> @@ -102,7 +105,8 @@ + android:contentDescription="@string/onscreenHoldText_unselected" + android:visibility="gone" />