Merge pull request #2855 from wood1986/fix/status-bar

fix: fix the system status bar and touch twice to show control after going back from fullscreen
This commit is contained in:
Olivier Bouillet 2022-09-14 09:09:59 +02:00 committed by GitHub
commit c9c0fe25ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1796,22 +1796,22 @@ class ReactExoplayerView extends FrameLayout implements
| SYSTEM_UI_FLAG_FULLSCREEN;
}
eventEmitter.fullscreenWillPresent();
post(() -> {
decorView.setSystemUiVisibility(uiOptions);
if (controls) {
fullScreenPlayerView.show();
}
post(() -> {
decorView.setSystemUiVisibility(uiOptions);
eventEmitter.fullscreenDidPresent();
});
} else {
uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
eventEmitter.fullscreenWillDismiss();
post(() -> {
decorView.setSystemUiVisibility(uiOptions);
if (controls) {
fullScreenPlayerView.dismiss();
reLayout(exoPlayerView);
}
post(() -> {
decorView.setSystemUiVisibility(uiOptions);
eventEmitter.fullscreenDidDismiss();
});
}