Bug 1146730 - Always show top of options menu when opened. r=mcomella

This commit is contained in:
Jeff Lu 2015-03-31 20:53:00 +02:00
parent 33cce10813
commit 3806f7c061

View File

@ -2891,6 +2891,11 @@ public class BrowserApp extends GeckoApp
if (mMenuPanel != null)
mMenuPanel.scrollTo(0, 0);
// Scroll menu ListView (potentially in MenuPanel ViewGroup) to top.
if (mMenu instanceof GeckoMenu) {
((GeckoMenu) mMenu).setSelection(0);
}
if (!mBrowserToolbar.openOptionsMenu())
super.openOptionsMenu();