diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/Controller.java | 4 | ||||
-rw-r--r-- | src/com/android/browser/PhoneUi.java | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index f006986..3382e36 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1617,6 +1617,10 @@ public class Controller openTabToHomePage(); break; + case R.id.new_incognito_tab_menu_id: + openIncognitoTab(); + break; + case R.id.close_other_tabs_id: closeOtherTabs(); break; diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java index 6707134..d71d9ec 100644 --- a/src/com/android/browser/PhoneUi.java +++ b/src/com/android/browser/PhoneUi.java @@ -184,10 +184,14 @@ public class PhoneUi extends BaseUi { if (info != null) { info.setVisible(false); } - MenuItem newtab = menu.findItem(R.id.new_tab_menu_id); - if (newtab != null && !mUseQuickControls) { - newtab.setVisible(false); - } + MenuItem newTab = menu.findItem(R.id.new_tab_menu_id); + if (newTab != null && !mUseQuickControls) { + newTab.setVisible(false); + } + MenuItem newIncognitoTab = menu.findItem(R.id.new_incognito_tab_menu_id); + if (newIncognitoTab != null && !mUseQuickControls) { + newIncognitoTab.setVisible(false); + } MenuItem closeOthers = menu.findItem(R.id.close_other_tabs_id); if (closeOthers != null) { boolean isLastTab = true; |