summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSagar Dhawan <sdhawan@codeaurora.org>2015-09-14 19:50:50 -0700
committerjrizzoli <joey@cyanogenmoditalia.it>2015-09-26 21:51:34 +0200
commitdeb81fca8265b7f4ddeef2bb53d39f2461f29292 (patch)
tree65669604a796c15018202f603a1c03170eb8b772
parent13860ef0ca21fdcc7b1565f89b627583495fe07d (diff)
downloadandroid_packages_apps_Gello-deb81fca8265b7f4ddeef2bb53d39f2461f29292.tar.gz
android_packages_apps_Gello-deb81fca8265b7f4ddeef2bb53d39f2461f29292.tar.bz2
android_packages_apps_Gello-deb81fca8265b7f4ddeef2bb53d39f2461f29292.zip
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
-rw-r--r--src/src/com/android/browser/XLargeUi.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/src/com/android/browser/XLargeUi.java b/src/src/com/android/browser/XLargeUi.java
index 92e30ad2..f444e9b0 100644
--- a/src/src/com/android/browser/XLargeUi.java
+++ b/src/src/com/android/browser/XLargeUi.java
@@ -202,6 +202,8 @@ public class XLargeUi extends BaseUi {
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 @@ public class XLargeUi extends BaseUi {
super.onHideCustomView();
if (mActionBar != null)
mActionBar.show();
+ mTitleBar.setTranslationY(0);
}
@Override