summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BaseUi.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-04-02 16:18:36 -0700
committerMichael Kolb <kolby@google.com>2012-04-03 11:23:18 -0700
commit4923c22cb79296a9624a599cf8874323cdbc6cbc (patch)
treeb7ab75efc152eea49609c583bbf225733d7513a6 /src/com/android/browser/BaseUi.java
parentd38135ceb6fa57d90d018851f09c7aaea09fd2a9 (diff)
downloadpackages_apps_Browser-4923c22cb79296a9624a599cf8874323cdbc6cbc.zip
packages_apps_Browser-4923c22cb79296a9624a599cf8874323cdbc6cbc.tar.gz
packages_apps_Browser-4923c22cb79296a9624a599cf8874323cdbc6cbc.tar.bz2
Don't embed titlebar in WebView
Bug: 5032345 The titlebar gets attached to an overlay and tracks the scrolling of the WebView at the top of the page. Change-Id: I60b2163bb7a3642813823995278722455f566f36
Diffstat (limited to 'src/com/android/browser/BaseUi.java')
-rw-r--r--src/com/android/browser/BaseUi.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index ffb2928..f8a9414 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -250,6 +250,7 @@ public abstract class BaseUi implements UI {
WebView web = mActiveTab.getWebView();
updateUrlBarAutoShowManagerTarget();
attachTabToContentView(tab);
+ mTitleBar.bringToFront();
setShouldShowErrorConsole(tab, mUiController.shouldShowErrorConsole());
onTabDataChanged(tab);
onProgressChanged(tab);
@@ -345,7 +346,6 @@ public abstract class BaseUi implements UI {
// Remove the container from the content and then remove the
// WebView from the container. This will trigger a focus change
// needed by WebView.
- WebViewClassic.fromWebView(mainView).setEmbeddedTitleBar(null);
FrameLayout wrapper =
(FrameLayout) container.findViewById(R.id.webview_wrapper);
wrapper.removeView(mainView);
@@ -475,13 +475,6 @@ public abstract class BaseUi implements UI {
return mTitleBar;
}
- protected void setTitleGravity(int gravity) {
- WebView web = getWebView();
- if (web != null) {
- WebViewClassic.fromWebView(web).setTitleBarGravity(gravity);
- }
- }
-
@Override
public void showVoiceTitleBar(String title, List<String> results) {
mNavigationBar.setInVoiceMode(true, results);