Bug 849254 - Fix NullPointerException in BrowserApp.setToolbarHeight. r=kats

This commit is contained in:
Chris Lord 2013-03-11 16:04:55 +00:00
parent 615637590a
commit f2c4d6a8a4

View File

@ -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 {