diff options
author | Michael Kolb <kolby@google.com> | 2012-04-23 12:51:30 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2012-04-23 13:21:59 -0700 |
commit | a34ae509d18e6507757c337ed75ea629e05bec6d (patch) | |
tree | efc09edb549d282e77cdb022ccbf88717dc08847 /src | |
parent | 4dcbf7f74154aa4c5d8d29ce216ccfee83882a9a (diff) | |
download | packages_apps_browser-a34ae509d18e6507757c337ed75ea629e05bec6d.zip packages_apps_browser-a34ae509d18e6507757c337ed75ea629e05bec6d.tar.gz packages_apps_browser-a34ae509d18e6507757c337ed75ea629e05bec6d.tar.bz2 |
enable tab switcher on phone QuickControls
Change-Id: Idb6f34eed15277b3dc6a9c5e6835fbd0894722ad
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/browser/PieControl.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/PieControl.java b/src/com/android/browser/PieControl.java index 68b0c7b..f7e2c9f 100644 --- a/src/com/android/browser/PieControl.java +++ b/src/com/android/browser/PieControl.java @@ -151,6 +151,9 @@ public class PieControl implements PieMenu.PieController, OnClickListener { setClickListener(this, mBack, mRefresh, mForward, mUrl, mFind, mInfo, mShare, mBookmarks, mNewTab, mIncognito, mClose, mHistory, mAddBookmark, mOptions, mRDS); + if (!BrowserActivity.isTablet(mActivity)) { + mShowTabs.getView().setOnClickListener(this); + } // level 1 mPie.addItem(mOptions); mOptions.addItem(mRDS); @@ -219,6 +222,8 @@ public class PieControl implements PieMenu.PieController, OnClickListener { mUiController.findOnPage(); } else if (mRDS.getView() == v) { mUiController.toggleUserAgent(); + } else if (mShowTabs.getView() == v) { + ((PhoneUi) mUi).showNavScreen(); } } |