summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCassie(Yitong) Wang <cassieyw@google.com>2020-06-02 03:40:22 +0000
committerCassie(Yitong) Wang <cassieyw@google.com>2020-06-03 20:51:46 +0000
commit3903d572e1a171317c1e37975063ae591f622c8a (patch)
tree2bd50d176efe1e25953c5157f3529bb23acdb3cd
parent2c9ba1208829aa76946c3aa0acf54fa1965beb0f (diff)
downloadplatform_packages_apps_Car_Dialer-3903d572e1a171317c1e37975063ae591f622c8a.tar.gz
platform_packages_apps_Car_Dialer-3903d572e1a171317c1e37975063ae591f622c8a.tar.bz2
platform_packages_apps_Car_Dialer-3903d572e1a171317c1e37975063ae591f622c8a.zip
DO NOT MERGE Format numbers and addresses for RTL
Bug: 151276227 Bug: 154241156 Test: Manual Change-Id: Ifa6a04dbf42ecf1445a513ee77b4ff98d7e2cb6c
-rw-r--r--res/layout-port/user_profile_large.xml2
-rw-r--r--res/layout-w1280dp/type_down_list_item.xml1
-rw-r--r--res/layout/call_history_list_item.xml1
-rw-r--r--res/layout/contact_details_address.xml1
-rw-r--r--res/layout/contact_details_number.xml1
-rw-r--r--res/layout/onhold_user_profile.xml1
-rw-r--r--res/layout/type_down_list_item.xml1
-rw-r--r--res/layout/user_profile_large.xml2
-rw-r--r--res/values/themes.xml5
9 files changed, 15 insertions, 0 deletions
diff --git a/res/layout-port/user_profile_large.xml b/res/layout-port/user_profile_large.xml
index fbc601c6..71a94fb0 100644
--- a/res/layout-port/user_profile_large.xml
+++ b/res/layout-port/user_profile_large.xml
@@ -25,6 +25,7 @@ limitations under the License.
android:id="@+id/user_profile_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.InCallUserTitle"
android:paddingTop="@dimen/in_call_margin_between_avatar_and_text"
android:singleLine="true"/>
@@ -32,6 +33,7 @@ limitations under the License.
android:id="@+id/user_profile_phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.InCallUserPhoneNumber"
android:singleLine="true"
android:paddingTop="@dimen/in_call_phone_number_margin_top"/>
diff --git a/res/layout-w1280dp/type_down_list_item.xml b/res/layout-w1280dp/type_down_list_item.xml
index fec8a538..28afee48 100644
--- a/res/layout-w1280dp/type_down_list_item.xml
+++ b/res/layout-w1280dp/type_down_list_item.xml
@@ -50,6 +50,7 @@
android:id="@+id/phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:singleLine="true"
app:layout_constraintTop_toBottomOf="@id/contact_name"
app:layout_constraintBottom_toBottomOf="parent"
diff --git a/res/layout/call_history_list_item.xml b/res/layout/call_history_list_item.xml
index 813a5e1b..e45efca3 100644
--- a/res/layout/call_history_list_item.xml
+++ b/res/layout/call_history_list_item.xml
@@ -57,6 +57,7 @@ limitations under the License.
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:layout_marginEnd="@dimen/call_history_text_margin_end"
android:singleLine="true"
app:layout_constraintVertical_chainStyle="packed"
diff --git a/res/layout/contact_details_address.xml b/res/layout/contact_details_address.xml
index cd15f661..61e62420 100644
--- a/res/layout/contact_details_address.xml
+++ b/res/layout/contact_details_address.xml
@@ -35,6 +35,7 @@
<TextView
android:id="@+id/title"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.ContactDetailsListTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/res/layout/contact_details_number.xml b/res/layout/contact_details_number.xml
index c7ef8cb5..30b0b1ab 100644
--- a/res/layout/contact_details_number.xml
+++ b/res/layout/contact_details_number.xml
@@ -35,6 +35,7 @@
<TextView
android:id="@+id/title"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.ContactDetailsListTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/res/layout/onhold_user_profile.xml b/res/layout/onhold_user_profile.xml
index 22afc237..54984711 100644
--- a/res/layout/onhold_user_profile.xml
+++ b/res/layout/onhold_user_profile.xml
@@ -46,6 +46,7 @@
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
app:layout_constraintVertical_chainStyle="packed"
diff --git a/res/layout/type_down_list_item.xml b/res/layout/type_down_list_item.xml
index a0476f60..73cada3c 100644
--- a/res/layout/type_down_list_item.xml
+++ b/res/layout/type_down_list_item.xml
@@ -39,6 +39,7 @@
android:id="@+id/phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:singleLine="true"
app:layout_constraintTop_toBottomOf="@id/contact_name"
app:layout_constraintBottom_toBottomOf="parent"
diff --git a/res/layout/user_profile_large.xml b/res/layout/user_profile_large.xml
index 6b74b076..0fe453d7 100644
--- a/res/layout/user_profile_large.xml
+++ b/res/layout/user_profile_large.xml
@@ -31,6 +31,7 @@ limitations under the License.
android:paddingStart="@dimen/in_call_margin_between_avatar_and_text">
<TextView
android:id="@+id/user_profile_title"
+ android:theme="@style/Theme.Dialer.BidiText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.InCallUserTitle"
@@ -39,6 +40,7 @@ limitations under the License.
android:id="@+id/user_profile_phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.InCallUserPhoneNumber"
android:singleLine="true"
android:layout_marginTop="@dimen/in_call_phone_number_margin_top"/>
diff --git a/res/values/themes.xml b/res/values/themes.xml
index 11152f4b..28726d19 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -21,6 +21,11 @@ limitations under the License.
<item name="android:textDirection">locale</item>
</style>
+ <style name="Theme.Dialer.BidiText" parent="Theme.Dialer">
+ <item name="android:textDirection">ltr</item>
+ <item name="android:textAlignment">viewStart</item>
+ </style>
+
<style name="Theme.Dialer.Telecom">
<item name="toolbarTitleMode">@integer/config_toolbar_title_mode</item>
</style>