Bug 1326291 - Make width of SiteIdentity TextView as wrap_content to follow layout_gravity from layout_direction for RTL, r=sebastian
authormaliu <max@mxli.us>
Fri, 03 Feb 2017 11:54:22 +0800
changeset 479273 f90b03778d1b10de67a042798b8f6837118cfa61
parent 479272 d77cc2c1ef815d556e93b91a72377284564b7225
child 479274 a28293f9d5144bfc5e369839fa566a1b26af3894
push id44211
push userbmo:hskupin@gmail.com
push dateMon, 06 Feb 2017 12:18:11 +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"/>