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 347296 ef924bafeeda424b67bbe9ab07c5d52686288463
parent 347295 f74ebe3e7a86429a4157049956996a84a2ef0c25
child 347297 0fab72ee7bbd16fdbcec17950c4ae0fe8fe13060
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1310195
milestone52.0a1
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) {