Bug 780367 - AboutHomeContent should no longer have two views. r=sriram

This commit is contained in:
Michael Comella 2012-08-06 20:27:04 -04:00
parent c89ae3e144
commit edc0af825d
2 changed files with 7 additions and 4 deletions

View File

@ -335,8 +335,10 @@ public class AboutHomeContent extends ScrollView
mNumberOfCols = getResources().getInteger(R.integer.number_of_top_sites_cols);
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
/**
* Reinflates and updates all components of this view.
*/
public void refresh() {
if (mTopSitesAdapter != null)
mTopSitesAdapter.notifyDataSetChanged();
@ -344,8 +346,6 @@ public class AboutHomeContent extends ScrollView
inflate();
mTopSitesGrid.setAdapter(mTopSitesAdapter); // mTopSitesGrid is a new instance (from loadTopSites()).
update(AboutHomeContent.UpdateFlags.ALL); // Refresh all elements.
super.onConfigurationChanged(newConfig);
}
@Override

View File

@ -287,6 +287,9 @@ abstract public class BrowserApp extends GeckoApp
invalidateOptionsMenu();
mTabsPanel.refresh();
if (mAboutHomeContent != null)
mAboutHomeContent.refresh();
}
public View getActionBarLayout() {