fix: handle the initial fullscreen props
This commit is contained in:
parent
40e8d9474f
commit
5203fa63d4
@ -1770,6 +1770,16 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
if (activity == null) {
|
if (activity == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fullScreenPlayerView == null) {
|
||||||
|
fullScreenPlayerView = new FullScreenPlayerView(getContext(), exoPlayerView, playerControlView, new OnBackPressedCallback(true) {
|
||||||
|
@Override
|
||||||
|
public void handleOnBackPressed() {
|
||||||
|
setFullscreen(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
Window window = activity.getWindow();
|
Window window = activity.getWindow();
|
||||||
View decorView = window.getDecorView();
|
View decorView = window.getDecorView();
|
||||||
int uiOptions;
|
int uiOptions;
|
||||||
|
Loading…
Reference in New Issue
Block a user