Hide the title bar when zoomed in
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index f097ffb..f059d6a 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -2826,6 +2826,20 @@
}
@Override
+ public void onChangeViewingMode(boolean toZoomedOut) {
+ if (!CUSTOM_BROWSER_BAR) {
+ return;
+ }
+ if (toZoomedOut) {
+ // FIXME: animate the title bar into view
+ mTitleBar.setVisibility(View.VISIBLE);
+ } else {
+ // FXIME: animate the title bar out of view
+ mTitleBar.setVisibility(View.GONE);
+ }
+ }
+
+ @Override
public boolean onCreateWindow(WebView view, final boolean dialog,
final boolean userGesture, final Message resultMsg) {
// Short-circuit if we can't create any more tabs or sub windows.