Bug 1326291 - Make width of SiteIdentity TextView as wrap_content to follow layout_gravity from layout_direction for RTL, r=sebastian draft
authormaliu <max@mxli.us>
Fri, 03 Feb 2017 11:54:22 +0800
changeset 470032 664505b617243a265852fece17dec9785d2af581
parent 469313 ece0e0fd16a30d37249a18c41fa65143d7c01b8f
child 544366 647dab1b8f4618902746763a70465fc92a5dd919
push id43910
push userbmo:max@mxli.us
push dateFri, 03 Feb 2017 03:55:06 +0000
reviewerssebastian
bugs1326291
milestone54.0a1
Bug 1326291 - Make width of SiteIdentity TextView as wrap_content to follow layout_gravity from layout_direction for RTL, r=sebastian MozReview-Commit-ID: Fk7VtHd1VMM
mobile/android/base/resources/layout/site_identity.xml
--- a/mobile/android/base/resources/layout/site_identity.xml
+++ b/mobile/android/base/resources/layout/site_identity.xml
@@ -24,17 +24,17 @@
                    android:layout_marginRight="@dimen/doorhanger_section_padding_small"/>
 
         <LinearLayout android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:orientation="vertical"
                      android:layout_weight="1.0">
 
             <TextView android:id="@+id/site_identity_title"
-                      android:layout_width="match_parent"
+                      android:layout_width="wrap_content"
                       android:layout_height="wrap_content"
                       android:textAppearance="@style/TextAppearance.DoorHanger.Medium.Light"/>
 
             <TextView android:id="@+id/site_identity_state"
                       android:layout_width="match_parent"
                       android:layout_height="wrap_content"
                       android:layout_marginTop="@dimen/doorhanger_subsection_padding"
                       android:textAppearance="@style/TextAppearance.DoorHanger.Medium.Bold"/>