diff options
author | bxu10x <binx.xu@intel.com> | 2014-04-28 15:27:22 +0000 |
---|---|---|
committer | bxu10x <binx.xu@intel.com> | 2014-05-13 16:20:28 +0000 |
commit | 9eceb968f7151450f6be870641822e3b6927f143 (patch) | |
tree | 9a923d9133694646205bc8fd62de028dd00fda9c /src/com | |
parent | 6207cda40403a4288138c7069530e147dbe77800 (diff) | |
download | packages_apps_Browser-9eceb968f7151450f6be870641822e3b6927f143.zip packages_apps_Browser-9eceb968f7151450f6be870641822e3b6927f143.tar.gz packages_apps_Browser-9eceb968f7151450f6be870641822e3b6927f143.tar.bz2 |
Fix Incognito mode crash in AOSP browser
The menu of incognito is not supported in KK release, delete it.
Change-Id: I461b3133ec49fa067e6730ac8d15feaa9e57a92b
Signed-off-by: bxu10x <binx.xu@intel.com>
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/Controller.java | 4 | ||||
-rw-r--r-- | src/com/android/browser/PhoneUi.java | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 2d716a8..70f4383 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1554,10 +1554,6 @@ public class Controller openTabToHomePage(); break; - case R.id.incognito_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 e5c45df..7b6da07 100644 --- a/src/com/android/browser/PhoneUi.java +++ b/src/com/android/browser/PhoneUi.java @@ -188,11 +188,6 @@ public class PhoneUi extends BaseUi { if (newtab != null && !mUseQuickControls) { newtab.setVisible(false); } - MenuItem incognito = menu.findItem(R.id.incognito_menu_id); - if (incognito != null) { - incognito.setVisible(!(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) - && (showingNavScreen() || mUseQuickControls)); - } MenuItem closeOthers = menu.findItem(R.id.close_other_tabs_id); if (closeOthers != null) { boolean isLastTab = true; |