// If the time bar is visible.
private boolean mShowing;
- // Control when system UI can be shown
- private boolean mAllowShowingSystemUI;
-
private final Runnable mPlayingChecker = new Runnable() {
@Override
public void run() {
mLastSystemUiVis = visibility;
if ((diff & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) != 0
&& (visibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) {
- mAllowShowingSystemUI = true;
mController.show();
// We need to set the background to clear ghosting images
public void onShown() {
mShowing = true;
setProgress();
-
- // System UI is invisible by default until the flag is set by user interaction
- // See VideoView's onSystemUiVisibilityChange listener for details.
- if (mAllowShowingSystemUI) {
- showSystemUi(true);
- }
+ showSystemUi(true);
}
@Override