mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 780367 - AboutHomeContent should no longer have two views. r=sriram
This commit is contained in:
parent
c89ae3e144
commit
edc0af825d
@ -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
|
||||
|
@ -287,6 +287,9 @@ abstract public class BrowserApp extends GeckoApp
|
||||
|
||||
invalidateOptionsMenu();
|
||||
mTabsPanel.refresh();
|
||||
|
||||
if (mAboutHomeContent != null)
|
||||
mAboutHomeContent.refresh();
|
||||
}
|
||||
|
||||
public View getActionBarLayout() {
|
||||
|
Loading…
Reference in New Issue
Block a user