Theoretical fix for double controls.

This commit is contained in:
Koen 2024-01-08 14:19:21 +01:00
commit 85db4cc4e6

View file

@ -549,7 +549,7 @@ class FutoVideoPlayer : FutoVideoPlayerBase {
_videoView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT; _videoView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT;
_videoControls_fullscreen.show(); _videoControls_fullscreen.show();
videoControls.hide(); videoControls.hideImmediately();
} }
else { else {
val lp = background.layoutParams as ConstraintLayout.LayoutParams; val lp = background.layoutParams as ConstraintLayout.LayoutParams;
@ -561,7 +561,7 @@ class FutoVideoPlayer : FutoVideoPlayerBase {
_videoView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_ZOOM; _videoView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_ZOOM;
videoControls.show(); videoControls.show();
_videoControls_fullscreen.hide(); _videoControls_fullscreen.hideImmediately();
} }
fitOrFill(fullScreen); fitOrFill(fullScreen);