mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 800071 - Hide the quit menu item on ICS and greater versions (r=mfinkle)
This commit is contained in:
parent
d39fa81ef3
commit
23582d1bc7
@ -977,6 +977,10 @@ abstract public class BrowserApp extends GeckoApp
|
|||||||
MenuItem findInPage = aMenu.findItem(R.id.find_in_page);
|
MenuItem findInPage = aMenu.findItem(R.id.find_in_page);
|
||||||
MenuItem desktopMode = aMenu.findItem(R.id.desktop_mode);
|
MenuItem desktopMode = aMenu.findItem(R.id.desktop_mode);
|
||||||
|
|
||||||
|
// Only show the "Quit" menu item on pre-ICS. In ICS+, it's easy to
|
||||||
|
// kill an app through the task switcher.
|
||||||
|
aMenu.findItem(R.id.quit).setVisible(Build.VERSION.SDK_INT < 14);
|
||||||
|
|
||||||
if (tab == null || tab.getURL() == null) {
|
if (tab == null || tab.getURL() == null) {
|
||||||
bookmark.setEnabled(false);
|
bookmark.setEnabled(false);
|
||||||
forward.setEnabled(false);
|
forward.setEnabled(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user