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

This commit is contained in:
Chris Lord 2013-03-11 16:04:55 +00:00
Родитель 9fe80b713b
Коммит 4cff2c2f1d
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

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