fix: fix the default behaviour
This commit is contained in:
parent
3e4e4e6a12
commit
f0c40f9392
@ -1796,15 +1796,24 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
| SYSTEM_UI_FLAG_FULLSCREEN;
|
| SYSTEM_UI_FLAG_FULLSCREEN;
|
||||||
}
|
}
|
||||||
eventEmitter.fullscreenWillPresent();
|
eventEmitter.fullscreenWillPresent();
|
||||||
fullScreenPlayerView.show();
|
post(() -> {
|
||||||
eventEmitter.fullscreenDidPresent();
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
|
if (controls) {
|
||||||
|
fullScreenPlayerView.show();
|
||||||
|
}
|
||||||
|
eventEmitter.fullscreenDidPresent();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
|
uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
|
||||||
eventEmitter.fullscreenWillDismiss();
|
eventEmitter.fullscreenWillDismiss();
|
||||||
fullScreenPlayerView.dismiss();
|
post(() -> {
|
||||||
eventEmitter.fullscreenDidDismiss();
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
|
if (controls) {
|
||||||
|
fullScreenPlayerView.dismiss();
|
||||||
|
}
|
||||||
|
eventEmitter.fullscreenDidDismiss();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
post(() -> decorView.setSystemUiVisibility(uiOptions));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUseTextureView(boolean useTextureView) {
|
public void setUseTextureView(boolean useTextureView) {
|
||||||
|
Loading…
Reference in New Issue
Block a user