Bug 1091461 - Fix Tapping anywhere under the 'Private Browsing' tip in the History panel will open the Custom menu when it shouldn't. r=liuche, a=sledru
authorAllison Naaktgeboren <ally@mozilla.com>
Wed, 21 Jan 2015 15:10:11 -0800
changeset 249450 6455585f44c623f5d4f80ba025a9fc3bad715301
parent 249449 9c4c6e2bcf5686d8f09373c39d48b8f9a1a96512
child 249451 37d53b66b10ff7eea2b35a3548174850acbe6cd4
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche, sledru
bugs1091461
milestone37.0a2
Bug 1091461 - Fix Tapping anywhere under the 'Private Browsing' tip in the History panel will open the Custom menu when it shouldn't. r=liuche, a=sledru
mobile/android/base/resources/layout/home_empty_panel.xml
--- a/mobile/android/base/resources/layout/home_empty_panel.xml
+++ b/mobile/android/base/resources/layout/home_empty_panel.xml
@@ -23,21 +23,24 @@
                android:gravity="top|center"
                android:scaleType="fitCenter"/>
 
     <TextView android:id="@+id/home_empty_text"
               android:layout_width="match_parent"
               android:layout_height="0dip"
               android:gravity="top|center"
               android:textAppearance="@style/TextAppearance.EmptyMessage"
-              android:layout_weight="2"/>
+              android:layout_weight="1"/>
 
     <TextView android:id="@+id/home_empty_hint"
               android:layout_width="match_parent"
-              android:layout_height="0dip"
+              android:layout_height="wrap_content"
               android:visibility="gone"
               android:gravity="top|center"
               android:textAppearance="@style/TextAppearance.EmptyHint"
-              android:textColorLink="#FFA62F"
-              android:layout_weight="4"/>
+              android:textColorLink="#FFA62F" />
+    <!-- Empty spacer view -->
+    <View android:layout_width="match_parent"
+          android:layout_height="0dip"
+          android:layout_weight="2"/>
 
 </LinearLayout>