From 4862a2d7d9cd9b95af84018754d14c3bf45e0bad Mon Sep 17 00:00:00 2001 From: Jay Shrauner Date: Thu, 21 Nov 2013 10:08:35 -0800 Subject: Remove Google Voice gateway number Remove gateway number from call card when making a call. Bug:11591481 Change-Id: Ib96cdd223c4e61c8a55536df2bd1ecf59a0339c4 --- InCallUI/res/layout/primary_call_info.xml | 52 ++++------------------ .../src/com/android/incallui/CallCardFragment.java | 23 +++------- 2 files changed, 15 insertions(+), 60 deletions(-) diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 0d37a737a..d013f7022 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -123,8 +123,10 @@ android:background="@color/incall_secondary_info_background" android:animateLayoutChanges="true"> - - + - - - - - - + android:singleLine="true" + android:ellipsize="end"/> diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 0d26b82cc..23c6d6d7d 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -51,9 +51,6 @@ public class CallCardFragment extends BaseFragment") + callStateLabel = gatewayLabel; + } else { + callStateLabel = getCallStateLabelFromState(state, cause); + } Log.v(this, "setCallState " + callStateLabel); Log.v(this, "DisconnectCause " + cause); @@ -275,15 +273,6 @@ public class CallCardFragment extends BaseFragment") - if (!TextUtils.isEmpty(gatewayLabel) && !TextUtils.isEmpty(gatewayNumber)) { - mProviderLabel.setText(gatewayLabel); - mProviderNumber.setText(gatewayNumber); - mProviderInfo.setVisibility(View.VISIBLE); - } else { - mProviderInfo.setVisibility(View.GONE); - } - // Restore the animation. if (skipAnimation) { mSupplementaryInfoContainer.setLayoutTransition(transition); -- cgit v1.2.3