Fixed Tablet UI video playback fullscreen mode
Tablet UI was showing tab bar in video playback full screen
mode. Additionally, it was showing title bar (URL bar) in portrait
mode. This change removes both these bars.
Change-Id: Ic17bccac4434ac1134e2bd5a1a81f518042508c3
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index 3be4674..e6e9337 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -879,8 +879,10 @@
topControlsOffsetYPix -= 1;
mTitleBar.getParent().requestTransparentRegion(mTitleBar);
}
- mTitleBar.setTranslationY(topControlsOffsetYPix);
}
+ // This was done to get HTML5 fullscreen API to work with fixed mode since
+ // topcontrols are used to implement HTML5 fullscreen
+ mTitleBar.setTranslationY(topControlsOffsetYPix);
}
}