fix: handle the initial fullscreen props

This commit is contained in:
wood1986 2022-09-08 00:31:47 -07:00
parent 40e8d9474f
commit 5203fa63d4

View File

@ -1770,6 +1770,16 @@ class ReactExoplayerView extends FrameLayout implements
if (activity == null) {
return;
}
if (fullScreenPlayerView == null) {
fullScreenPlayerView = new FullScreenPlayerView(getContext(), exoPlayerView, playerControlView, new OnBackPressedCallback(true) {
@Override
public void handleOnBackPressed() {
setFullscreen(false);
}
});
}
Window window = activity.getWindow();
View decorView = window.getDecorView();
int uiOptions;