mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 849254 - Fix NullPointerException in BrowserApp.setToolbarHeight. r=kats
This commit is contained in:
parent
615637590a
commit
f2c4d6a8a4
@ -960,9 +960,6 @@ abstract public class BrowserApp extends GeckoApp
|
||||
mAboutHomeShowing = true;
|
||||
Runnable r = new AboutHomeRunnable(true);
|
||||
mMainHandler.postAtFrontOfQueue(r);
|
||||
|
||||
// Refresh margins to possibly remove the toolbar padding
|
||||
((BrowserToolbarLayout)mBrowserToolbar.getLayout()).refreshMargins();
|
||||
}
|
||||
|
||||
private void hideAboutHome() {
|
||||
@ -975,9 +972,6 @@ abstract public class BrowserApp extends GeckoApp
|
||||
mAboutHomeShowing = false;
|
||||
Runnable r = new AboutHomeRunnable(false);
|
||||
mMainHandler.postAtFrontOfQueue(r);
|
||||
|
||||
// Refresh margins to possibly restore the toolbar padding
|
||||
((BrowserToolbarLayout)mBrowserToolbar.getLayout()).refreshMargins();
|
||||
}
|
||||
|
||||
private class AboutHomeRunnable implements Runnable {
|
||||
@ -1014,7 +1008,10 @@ abstract public class BrowserApp extends GeckoApp
|
||||
} else {
|
||||
findViewById(R.id.abouthome_content).setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
// Refresh margins to possibly restore the toolbar padding
|
||||
((BrowserToolbarLayout)mBrowserToolbar.getLayout()).refreshMargins();
|
||||
}
|
||||
}
|
||||
|
||||
private class HideTabsTouchListener implements OnInterceptTouchListener {
|
||||
|
Loading…
Reference in New Issue
Block a user