From 107c7da5da4e689b38433756244971d7543f7272 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Fri, 13 Nov 2015 14:41:06 -0800 Subject: Move secondary call information to the bottom, clear call context. The secondary call information was obscuring the call context info because it was incorrectly being placed right under the primary call info. This is a bug because it should placed under the FAB at the bottom of the screen. Also hide the call context info when a new call comes in that does not have caller contex. Bug: 25222360 Change-Id: I7601ce7e7e2609ac046ea104651ac50d863a86bc --- InCallUI/res/layout/call_card_fragment.xml | 244 +++++++++++---------- .../src/com/android/incallui/CallCardFragment.java | 2 - .../com/android/incallui/CallCardPresenter.java | 2 + 3 files changed, 126 insertions(+), 122 deletions(-) (limited to 'InCallUI') diff --git a/InCallUI/res/layout/call_card_fragment.xml b/InCallUI/res/layout/call_card_fragment.xml index 8f8ed93f9..2b8e811e5 100644 --- a/InCallUI/res/layout/call_card_fragment.xml +++ b/InCallUI/res/layout/call_card_fragment.xml @@ -16,147 +16,151 @@ ~ limitations under the License --> - - - + android:layout_height="match_parent"> - - - - + android:layout_height="match_parent" + android:orientation="vertical"> - + + android:layout_height="0dp" + android:layout_weight="1" + android:orientation="vertical" + android:elevation="@dimen/primary_call_elevation" + android:background="@color/incall_call_banner_background_color" + android:paddingTop="@dimen/call_banner_primary_call_container_top_padding" + android:clipChildren="false" + android:clipToPadding="false" + android:gravity="bottom"> + + + + - + - + + android:layout_height="0dp" + android:layout_weight="2"> - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - + - - + - - - + - - - + + android:elevation="@dimen/dialpad_elevation" /> + + + + + + - - - + + + + \ No newline at end of file diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 0d635543c..75d13535b 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -184,8 +184,6 @@ public class CallCardFragment extends BaseFragment mPrimaryContactInfo.openingHours); getUi().setContactContextContent(mInCallContactInteractions.getListAdapter()); getUi().showContactContext(mPrimary.getState() != State.INCOMING); + } else { + getUi().showContactContext(false); } } -- cgit v1.2.3