summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-05-01 14:59:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-01 14:59:05 +0000
commita26e37941c98adf500e71f2095b1a7c4d7cbe51d (patch)
tree897dce6a25f716da690b8bd5f1388647d5852b32
parente1d23239946734042de5ad1778aee9e1ac6669b2 (diff)
parent7aa48391a30920007ecb42d6a1d47075fc2a9b63 (diff)
Merge "Always show the call state text view."
-rw-r--r--InCallUI/res/layout/primary_call_info.xml42
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java11
2 files changed, 27 insertions, 26 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml
index 18cc70b7c..7c0a1811e 100644
--- a/InCallUI/res/layout/primary_call_info.xml
+++ b/InCallUI/res/layout/primary_call_info.xml
@@ -55,14 +55,32 @@
android:gravity="left"
android:ellipsize="end" />
- <TextView android:id="@+id/name"
+
+ <LinearLayout android:id="@+id/stateAndName"
android:layout_width="match_parent"
- android:paddingEnd="@dimen/call_banner_name_number_right_padding"
android:layout_height="wrap_content"
- android:fontFamily="sans-serif-light"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textSize="@dimen/call_name_text_size"
- android:singleLine="true" />
+ android:orientation="horizontal" >
+
+ <TextView android:id="@+id/name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingEnd="@dimen/call_banner_name_number_right_padding"
+ android:fontFamily="sans-serif-light"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:textSize="@dimen/call_name_text_size"
+ android:singleLine="true" />
+
+ <!-- Elapsed time indication for a call in progress. -->
+ <TextView android:id="@+id/elapsedTime"
+ android:gravity="right"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="@color/incall_call_banner_text_color"
+ android:singleLine="true"
+ android:visibility="invisible" />
+
+ </LinearLayout>
</LinearLayout>
@@ -93,18 +111,6 @@
android:layout_marginStart="6dp" />
</LinearLayout>
-
- <!-- Elapsed time indication for a call in progress. -->
- <TextView android:id="@+id/elapsedTime"
- android:layout_alignParentEnd="true"
- android:layout_centerVertical="true"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textColor="@color/incall_call_banner_text_color"
- android:singleLine="true"
- android:visibility="invisible" />
-
<!-- Call type indication: a special label and/or branding
for certain kinds of calls (like "Internet call" for a SIP call.) -->
<TextView android:id="@+id/callTypeLabel"
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 9f5b0527f..e08c6207f 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -250,15 +250,10 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
Log.v(this, "gateway " + gatewayLabel + gatewayNumber);
// Update the call state label.
- if (!TextUtils.isEmpty(callStateLabel)) {
- mCallStateLabel.setVisibility(View.VISIBLE);
- mCallStateLabel.setText(callStateLabel);
+ mCallStateLabel.setText(callStateLabel);
- if (Call.State.INCOMING == state) {
- setBluetoothOn(bluetoothOn);
- }
- } else {
- mCallStateLabel.setVisibility(View.GONE);
+ if (Call.State.INCOMING == state) {
+ setBluetoothOn(bluetoothOn);
}
}