Fix TitleBar not hiding when playing Video on Tablets
TitleBar is "fixed" on tablet UI but, should still be
moved off screen when fullscreen content is present.
Change-Id: Ie7ceef9c3a6eef52123c6de3d8f069f3a4f4203b
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java
index 92e30ad..f444e9b 100644
--- a/src/com/android/browser/XLargeUi.java
+++ b/src/com/android/browser/XLargeUi.java
@@ -202,6 +202,8 @@
public void showCustomView(View view, int requestedOrientation,
WebChromeClient.CustomViewCallback callback) {
super.showCustomView(view, requestedOrientation, callback);
+ mTitleBar.setTranslationY(
+ -mActivity.getResources().getDimensionPixelSize(R.dimen.toolbar_height));
if (mActionBar != null)
mActionBar.hide();
}
@@ -269,6 +271,7 @@
super.onHideCustomView();
if (mActionBar != null)
mActionBar.show();
+ mTitleBar.setTranslationY(0);
}
@Override