Bug 721354 - Update about:home everytime it's shown (r=blassey)
authorLucas Rocha <lucasr@mozilla.com>
Fri, 27 Jan 2012 10:08:21 +0000
changeset 85551 0a548fed2a7ab4de392faede06b2244c579ef721
parent 85550 37af3f39a6b56348a430c5a9b3deadd792f90f74
child 85552 afb95cbc720f8e80f02c72cfb4d620532333c459
push id21930
push usermbrubeck@mozilla.com
push dateFri, 27 Jan 2012 16:32:09 +0000
treeherdermozilla-central@7ab255f53568 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs721354
milestone12.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 721354 - Update about:home everytime it's shown (r=blassey)
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -1109,17 +1109,21 @@ abstract public class GeckoApp
                         mBrowserToolbar.setProgressVisibility(true);
                         loadUrl(url, AwesomeBar.Type.EDIT);
                     }
                 });
                 RelativeLayout.LayoutParams lp = 
                     new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 
                                                     LayoutParams.FILL_PARENT);
                 mGeckoLayout.addView(mAboutHomeContent, lp);
+            } else if (mAboutHomeContent != null && mShow) {
+                mAboutHomeContent.update(GeckoApp.mAppContext,
+                                         EnumSet.of(AboutHomeContent.UpdateFlags.TOP_SITES));
             }
+
             if (mAboutHomeContent != null)
                 mAboutHomeContent.setVisibility(mShow ? View.VISIBLE : View.GONE);
         }
     }
 
     /**
      * @param aPermissions
      *        Array of JSON objects to represent site permissions.