summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/XLargeUi.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-07-01 15:33:56 -0700
committerMichael Kolb <kolby@google.com>2011-07-01 16:04:00 -0700
commitb14ff2febe4b6a07a73c875858437c89cf43fc72 (patch)
tree40198325874a00d61f36423fbfe78170eca8effc /src/com/android/browser/XLargeUi.java
parent2bc8042224be51966d748b870768ec1b376a1621 (diff)
downloadpackages_apps_browser-b14ff2febe4b6a07a73c875858437c89cf43fc72.zip
packages_apps_browser-b14ff2febe4b6a07a73c875858437c89cf43fc72.tar.gz
packages_apps_browser-b14ff2febe4b6a07a73c875858437c89cf43fc72.tar.bz2
remove url bar indicator from tabs
Bug: 4987410 Change-Id: If7105b4fc8e6d34712a59c4e775925d959a5ee6e
Diffstat (limited to 'src/com/android/browser/XLargeUi.java')
-rw-r--r--src/com/android/browser/XLargeUi.java22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java
index 81a6edb..6fcfab7 100644
--- a/src/com/android/browser/XLargeUi.java
+++ b/src/com/android/browser/XLargeUi.java
@@ -28,14 +28,12 @@ import android.view.View;
import android.webkit.WebChromeClient.CustomViewCallback;
import android.webkit.WebView;
-import com.android.browser.BrowserWebView.ScrollListener;
-
import java.util.List;
/**
* Ui for xlarge screen sizes
*/
-public class XLargeUi extends BaseUi implements ScrollListener {
+public class XLargeUi extends BaseUi {
private static final String LOGTAG = "XLargeUi";
@@ -69,14 +67,6 @@ public class XLargeUi extends BaseUi implements ScrollListener {
mActionBar.setCustomView(mTabBar);
}
- @Override
- public void onSetWebView(Tab tab, WebView v) {
- super.onSetWebView(tab, v);
- if (v != null) {
- ((BrowserWebView) v).setScrollListener(this);
- }
- }
-
public void showComboView(ComboViews startWith, Bundle extras) {
super.showComboView(startWith, extras);
if (mUseQuickControls) {
@@ -142,11 +132,6 @@ public class XLargeUi extends BaseUi implements ScrollListener {
hideTitleBar();
}
- @Override
- public void onScroll(int visibleTitleHeight, boolean userInitiated) {
- mTabBar.onScroll(visibleTitleHeight, userInitiated);
- }
-
void stopWebViewScrolling() {
BrowserWebView web = (BrowserWebView) mUiController.getCurrentWebView();
if (web != null) {
@@ -194,14 +179,11 @@ public class XLargeUi extends BaseUi implements ScrollListener {
// Request focus on the top window.
if (mUseQuickControls) {
mPieControl.forceToTop(mContentView);
- view.setScrollListener(null);
- mTabBar.showTitleBarIndicator(false);
} else {
// check if title bar is already attached by animation
if (mTitleBar.getParent() == null && !tab.isSnapshot()) {
view.setEmbeddedTitleBar(mTitleBar);
}
- view.setScrollListener(this);
}
mTabBar.onSetActiveTab(tab);
if (tab.isInVoiceSearchMode()) {
@@ -256,14 +238,12 @@ public class XLargeUi extends BaseUi implements ScrollListener {
protected void showTitleBar() {
if (canShowTitleBar()) {
mTitleBar.show();
- mTabBar.onShowTitleBar();
}
}
@Override
protected void hideTitleBar() {
if (isTitleBarShowing()) {
- mTabBar.onHideTitleBar();
mTitleBar.hide();
}
}