summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gernoth <michael@gernoth.net>2016-04-13 18:12:42 +0200
committerRohit Yengisetty <rohit@cyngn.com>2016-04-13 11:52:46 -0700
commit150d9ff61e6cbbce7b2d849f66826a1cceb72757 (patch)
tree7ed3f4c03cd0c1025102cc3e78cdbadb1d2105a6
parenta9f93e8d49aab59b805dc9f2be9be916c6f7d15b (diff)
downloadandroid_packages_apps_InCallUI-150d9ff61e6cbbce7b2d849f66826a1cceb72757.tar.gz
android_packages_apps_InCallUI-150d9ff61e6cbbce7b2d849f66826a1cceb72757.tar.bz2
android_packages_apps_InCallUI-150d9ff61e6cbbce7b2d849f66826a1cceb72757.zip
InCallUI: add LookupProvider and VoLTE to landscape layout
Prevents FC when making calls while the phone is in forced landscape mode (docked, open hardware keyboard) by resyncing the landscape layout with the portrait layout. Issue-Id: DIALER-726 Change-Id: Ic95af018a86b405fdb9fe698f4272f6c4425a5de (cherry picked from commit b63eca05ad818679628b394fe45667eff4e0a742)
-rw-r--r--res/layout-land/call_card_fragment.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/res/layout-land/call_card_fragment.xml b/res/layout-land/call_card_fragment.xml
index 14665712..dcdd1aa1 100644
--- a/res/layout-land/call_card_fragment.xml
+++ b/res/layout-land/call_card_fragment.xml
@@ -53,6 +53,28 @@
android:alpha="0.9"
android:layout_margin="10dp">
+ <LinearLayout android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:clipChildren="false"
+ android:gravity="right"
+ android:paddingEnd="@dimen/call_banner_side_padding"
+ android:paddingTop="@dimen/incall_volte_label_top_padding"
+ android:clipToPadding="false">
+
+ <!-- VoLTE annunciator. Visible or gone depending on whether
+ VoLTE is in use. Carriers may customize this annunciator
+ by overlaying the ic_volte.xml drawable. -->
+ <ImageView android:id="@+id/volte_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAlignment="viewEnd"
+ android:tint="@color/incall_accent_color"
+ android:src="@drawable/ic_volte"
+ android:visibility="gone" />
+
+ </LinearLayout>
+
<include layout="@layout/primary_call_info" />
<FrameLayout
@@ -143,4 +165,40 @@
</FrameLayout>
+ <FrameLayout
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:layout_below="@id/primary_call_info_container"
+ android:elevation="@dimen/lookup_extra_info_container_elevation">
+
+ <LinearLayout
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginStart="@dimen/lookup_extra_info_container_margin_start"
+ android:layout_marginTop="@dimen/lookup_extra_info_container_margin_top"
+ android:layout_gravity="start|top"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/contactInfoAttribution"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:gravity="center"
+ android:textSize="@dimen/contact_info_attribution_text_size"
+ android:textColor="@color/contact_info_attribution_text_color"
+ android:text="@string/powered_by_provider" />
+
+ <TextView
+ android:id="@+id/spamInfo"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:layout_marginStart="25dp"
+ android:layout_marginTop="4dp"
+ android:textSize="@dimen/contact_info_spam_info_text_size"
+ android:textColor="@color/contact_info_spam_info_text_color"
+ android:text="@string/caller_info_loading" />
+ </LinearLayout>
+
+ </FrameLayout>
+
</RelativeLayout>