Bug 1310195 - Set LayerView paint state to PAINT_BEFORE_FIRST in GeckoApp.initialize. r=jchen
authorDylan Roeh <droeh@mozilla.com>
Mon, 31 Oct 2016 16:15:54 -0500
changeset 320603 ef924bafeeda424b67bbe9ab07c5d52686288463
parent 320602 f74ebe3e7a86429a4157049956996a84a2ef0c25
child 320604 0fab72ee7bbd16fdbcec17950c4ae0fe8fe13060
push id30902
push userphilringnalda@gmail.com
push dateThu, 03 Nov 2016 02:30:31 +0000
treeherdermozilla-central@ade8d4a63e57 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1310195
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1310195 - Set LayerView paint state to PAINT_BEFORE_FIRST in GeckoApp.initialize. r=jchen
mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
@@ -1631,16 +1631,19 @@ public abstract class GeckoApp
         if (mIsRestoringActivity) {
             Tab selectedTab = Tabs.getInstance().getSelectedTab();
             if (selectedTab != null) {
                 Tabs.getInstance().notifyListeners(selectedTab, Tabs.TabEvents.SELECTED);
             }
 
             if (GeckoThread.isRunning()) {
                 geckoConnected();
+                if (mLayerView != null) {
+                    mLayerView.setPaintState(LayerView.PAINT_BEFORE_FIRST);
+                }
             }
         }
     }
 
     @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
     @Override
     public void onGlobalLayout() {
         if (Versions.preJB) {