mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 712536 - null pointer crash when rotating about:home r=mfinkle
This commit is contained in:
parent
f102d9d930
commit
a6bcd0cfcb
@ -215,8 +215,10 @@ public class AboutHomeContent extends ScrollView {
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
mTopSitesGrid.setNumColumns(getNumberOfColumns());
|
||||
mTopSitesAdapter.notifyDataSetChanged();
|
||||
if (mTopSitesGrid != null)
|
||||
mTopSitesGrid.setNumColumns(getNumberOfColumns());
|
||||
if (mTopSitesAdapter != null)
|
||||
mTopSitesAdapter.notifyDataSetChanged();
|
||||
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user