diff options
author | Michael Kolb <kolby@google.com> | 2011-07-07 14:58:50 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-07-11 12:55:16 -0700 |
commit | 0241e7556501caae1f57d2bdf3677d7e4a619eb0 (patch) | |
tree | bfd41aade0cdc406c7d73d8ef4f462e779e58b20 /src/com/android/browser/XLargeUi.java | |
parent | aec28a4b000c1e476c7c730f609cc04c0c8dc5b9 (diff) | |
download | packages_apps_Browser-0241e7556501caae1f57d2bdf3677d7e4a619eb0.zip packages_apps_Browser-0241e7556501caae1f57d2bdf3677d7e4a619eb0.tar.gz packages_apps_Browser-0241e7556501caae1f57d2bdf3677d7e4a619eb0.tar.bz2 |
make QC work on phone
Reduce options in QC menu on phone
Avoid restart when enabling/disabling QC
Bug: 3326929
Change-Id: I5119c4df99226dcb28f47a95471872fbf51be48e
Diffstat (limited to 'src/com/android/browser/XLargeUi.java')
-rw-r--r-- | src/com/android/browser/XLargeUi.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java index 6fcfab7..290bbf7 100644 --- a/src/com/android/browser/XLargeUi.java +++ b/src/com/android/browser/XLargeUi.java @@ -42,7 +42,7 @@ public class XLargeUi extends BaseUi { private TitleBarXLarge mTitleBar; - private PieControl mPieControl; + private PieControlXLarge mPieControl; private Handler mHandler; /** @@ -84,16 +84,20 @@ public class XLargeUi extends BaseUi { } } - private void setUseQuickControls(boolean useQuickControls) { + @Override + public void setUseQuickControls(boolean useQuickControls) { mUseQuickControls = useQuickControls; mTitleBar.setUseQuickControls(mUseQuickControls); if (useQuickControls) { checkTabCount(); - mPieControl = new PieControl(mActivity, mUiController, this); + mPieControl = new PieControlXLarge(mActivity, mUiController, this); mPieControl.attachToContainer(mContentView); WebView web = getWebView(); if (web != null) { web.setEmbeddedTitleBar(null); + // don't show url bar on scrolling + web.setOnTouchListener(null); + } } else { mActivity.getActionBar().show(); @@ -103,6 +107,8 @@ public class XLargeUi extends BaseUi { WebView web = getWebView(); if (web != null) { web.setEmbeddedTitleBar(mTitleBar); + // show url bar on scrolling + web.setOnTouchListener(this); } setTitleGravity(Gravity.NO_GRAVITY); } |