From 8dd4dffb64fb95ca298d70574d734a4807130578 Mon Sep 17 00:00:00 2001 From: twyen Date: Tue, 13 Mar 2018 11:13:06 -0700 Subject: Fix RTL label alignment in select SIM dialog The default text alignment of a TextView is based on the content of the view (does it has any RTL characters or not). Previously the TextView width is match parent so the text will either align to the left or right depending on the content (the label is user content which we don't control). In this CL it is changed to wrap content so the whole text will align to the parent's gravity which is "start". Bug: 74421655 Test: N/A PiperOrigin-RevId: 188899698 Change-Id: Id754ed97bb6d3b6bba05d0a96c83623daca01cc8 --- .../android/contacts/common/res/layout/select_account_list_item.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/android/contacts/common/res/layout/select_account_list_item.xml b/java/com/android/contacts/common/res/layout/select_account_list_item.xml index 8f7cc7017..84cb1fd66 100644 --- a/java/com/android/contacts/common/res/layout/select_account_list_item.xml +++ b/java/com/android/contacts/common/res/layout/select_account_list_item.xml @@ -42,7 +42,7 @@ android:orientation="vertical">