diff options
author | Michael Kolb <kolby@google.com> | 2011-12-05 16:36:05 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-12-05 16:39:25 -0800 |
commit | 0d0245ffd51825f90a9df883667a71e500da03fa (patch) | |
tree | 26069730df2982d50ed0b3e6bdc5f62165bf887b /src/com/android/browser/XLargeUi.java | |
parent | 861d52c80430edeb0eba6f73cd0e206e27f4ac6b (diff) | |
download | packages_apps_Browser-0d0245ffd51825f90a9df883667a71e500da03fa.zip packages_apps_Browser-0d0245ffd51825f90a9df883667a71e500da03fa.tar.gz packages_apps_Browser-0d0245ffd51825f90a9df883667a71e500da03fa.tar.bz2 |
Add Bookmarks option to phone menu
Bug: 5713465
Change-Id: I7a260ea5138efca9b4f8ac461a03207480b438df
Diffstat (limited to 'src/com/android/browser/XLargeUi.java')
-rw-r--r-- | src/com/android/browser/XLargeUi.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java index 556e88d..c828df4 100644 --- a/src/com/android/browser/XLargeUi.java +++ b/src/com/android/browser/XLargeUi.java @@ -30,6 +30,8 @@ import android.util.Log; import android.view.ActionMode; import android.view.Gravity; import android.view.KeyEvent; +import android.view.Menu; +import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.webkit.WebChromeClient.CustomViewCallback; @@ -145,6 +147,16 @@ public class XLargeUi extends BaseUi { } } + @Override + public boolean onPrepareOptionsMenu(Menu menu) { + MenuItem bm = menu.findItem(R.id.bookmarks_menu_id); + if (bm != null) { + bm.setVisible(false); + } + return true; + } + + // WebView callbacks @Override |