mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Fix bug that clicking didn't show up controls at the beginning
StyledLayoutManager#isFullyVisibility() was wrong and so hiding/showing logic didn't work properly. PiperOrigin-RevId: 324996446
This commit is contained in:
parent
5342576e73
commit
b26d578ff3
1 changed files with 3 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ import java.util.ArrayList;
|
|||
private final Runnable hideControllerRunnable;
|
||||
private final OnLayoutChangeListener onLayoutChangeListener;
|
||||
|
||||
private int uxState = UX_STATE_ALL_VISIBLE;
|
||||
private int uxState;
|
||||
private boolean initiallyHidden;
|
||||
private boolean isMinimalMode;
|
||||
private boolean needToShowBars;
|
||||
|
|
@ -88,6 +88,7 @@ import java.util.ArrayList;
|
|||
hideControllerRunnable = this::hideController;
|
||||
onLayoutChangeListener = this::onLayoutChange;
|
||||
animationEnabled = true;
|
||||
uxState = UX_STATE_ALL_VISIBLE;
|
||||
}
|
||||
|
||||
public void show() {
|
||||
|
|
@ -432,7 +433,7 @@ import java.util.ArrayList;
|
|||
if (styledPlayerControlView == null) {
|
||||
return false;
|
||||
}
|
||||
return uxState == UX_STATE_ALL_VISIBLE;
|
||||
return uxState == UX_STATE_ALL_VISIBLE && styledPlayerControlView.isVisible();
|
||||
}
|
||||
|
||||
private void setUxState(int uxState) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue