Bug 942231 - Keep showHomePager* method together in BrowserApp (r=margaret)
authorLucas Rocha <lucasr@mozilla.com>
Thu, 12 Dec 2013 12:02:51 +0000
changeset 160185 ec4673726b46aed1c9e15419e4ac1e941206b626
parent 160184 4780678d387f44da31087c096b3810c0368c91a3
child 160186 ce3dd14c1840cd81593dd4eba22e4659719b4769
push id25826
push userkwierso@gmail.com
push dateFri, 13 Dec 2013 02:14:34 +0000
treeherdermozilla-central@f551c8244289 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs942231
milestone29.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 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();