зеркало из https://github.com/mozilla/gecko-dev.git
Bug 849254 - Fix NullPointerException in BrowserApp.setToolbarHeight. r=kats
This commit is contained in:
Родитель
9fe80b713b
Коммит
4cff2c2f1d
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче