Bug 942231 - Keep showHomePager* method together in BrowserApp (r=margaret)
authorLucas Rocha <lucasr@mozilla.com>
Thu, 12 Dec 2013 12:02:51 +0000
changeset 159985 ec4673726b46aed1c9e15419e4ac1e941206b626
parent 159984 4780678d387f44da31087c096b3810c0368c91a3
child 159986 ce3dd14c1840cd81593dd4eba22e4659719b4769
push id3934
push userlrocha@mozilla.com
push dateThu, 12 Dec 2013 12:05:08 +0000
treeherderfx-team@fe13b62902c8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs942231
milestone29.0a1
Bug 942231 - Keep showHomePager* method together in BrowserApp (r=margaret)
mobile/android/base/BrowserApp.java
--- a/mobile/android/base/BrowserApp.java
+++ b/mobile/android/base/BrowserApp.java
@@ -1613,34 +1613,34 @@ abstract public class BrowserApp extends
                 // Show the toolbar.
                 mLayerView.getLayerMarginsAnimator().showMargins(false);
             }
         } else {
             hideHomePager();
         }
     }
 
-    private void showHomePager(HomePager.Page page) {
-        showHomePagerWithAnimator(page, null);
-    }
-
     @Override
     public void onLocaleReady(final String locale) {
         super.onLocaleReady(locale);
         if (mHomePager != null) {
             // Blow it away and rebuild it with the right strings.
             mHomePager.redisplay(getSupportFragmentManager());
         }
 
         if (mMenu != null) {
             mMenu.clear();
             onCreateOptionsMenu(mMenu);
         }
     }
 
+    private void showHomePager(HomePager.Page page) {
+        showHomePagerWithAnimator(page, null);
+    }
+
     private void showHomePagerWithAnimator(HomePager.Page page, PropertyAnimator animator) {
         if (isHomePagerVisible()) {
             return;
         }
 
         // Refresh toolbar height to possibly restore the toolbar padding
         refreshToolbarHeight();