Bug 1175563 - Change LinearLayout to a less expensive View. r=mcomella
authorSergej Kravcenko <sergej@codewaves.com>
Wed, 24 Jun 2015 22:45:31 +0300
changeset 268641 b8503f1aef66dd08efade95ee4cf46e1f17a6c6e
parent 268640 85c82cd1e3de4528bc89d51ecd55daec283448cd
child 268642 587531672cd960b541c379f55e4f10ac957f7f62
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-esr52@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs1175563
milestone41.0a1
Bug 1175563 - Change LinearLayout to a less expensive View. r=mcomella
mobile/android/base/BrowserApp.java
mobile/android/base/resources/layout/gecko_app.xml
--- a/mobile/android/base/BrowserApp.java
+++ b/mobile/android/base/BrowserApp.java
@@ -1466,17 +1466,16 @@ public class BrowserApp extends GeckoApp
             return;
         }
 
         final Animator alphaAnimator = ObjectAnimator.ofFloat(mDoorhangerOverlay, "alpha", 1);
         alphaAnimator.setDuration(250);
         TransitionsTracker.track(alphaAnimator);
 
         alphaAnimator.start();
-
     }
 
     @Override
     public void onDoorHangerHide() {
         if (Versions.preHC) {
             return;
         }
 
--- a/mobile/android/base/resources/layout/gecko_app.xml
+++ b/mobile/android/base/resources/layout/gecko_app.xml
@@ -52,24 +52,23 @@
 
                 <ViewStub android:id="@+id/firstrun_pager_stub"
                           android:layout="@layout/firstrun_pane"
                           android:layout_width="match_parent"
                           android:layout_height="match_parent"/>
 
             </FrameLayout>
 
-            <LinearLayout android:id="@+id/doorhanger_overlay"
-                          android:layout_width="match_parent"
-                          android:layout_height="match_parent"
-                          android:background="@color/dark_transparent_overlay"
-                          android:visibility="gone"
-                          android:alpha="0"
-                          android:layerType="hardware"
-                          android:orientation="horizontal" />
+            <View android:id="@+id/doorhanger_overlay"
+                  android:layout_width="match_parent"
+                  android:layout_height="match_parent"
+                  android:background="@color/dark_transparent_overlay"
+                  android:visibility="gone"
+                  android:alpha="0"
+                  android:layerType="hardware"/>
 
         </RelativeLayout>
 
         <org.mozilla.gecko.FindInPageBar android:id="@+id/find_in_page"
                                          android:layout_width="match_parent"
                                          android:layout_height="wrap_content"
                                          android:layout_alignParentBottom="true"
                                          style="@style/FindBar"