fix: fix the system status bar when dismiss
This commit is contained in:
parent
82e537085d
commit
2a77c5f0df
@ -1796,22 +1796,22 @@ class ReactExoplayerView extends FrameLayout implements
|
|||||||
| SYSTEM_UI_FLAG_FULLSCREEN;
|
| SYSTEM_UI_FLAG_FULLSCREEN;
|
||||||
}
|
}
|
||||||
eventEmitter.fullscreenWillPresent();
|
eventEmitter.fullscreenWillPresent();
|
||||||
post(() -> {
|
|
||||||
decorView.setSystemUiVisibility(uiOptions);
|
|
||||||
if (controls) {
|
if (controls) {
|
||||||
fullScreenPlayerView.show();
|
fullScreenPlayerView.show();
|
||||||
}
|
}
|
||||||
|
post(() -> {
|
||||||
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
eventEmitter.fullscreenDidPresent();
|
eventEmitter.fullscreenDidPresent();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
|
uiOptions = View.SYSTEM_UI_FLAG_VISIBLE;
|
||||||
eventEmitter.fullscreenWillDismiss();
|
eventEmitter.fullscreenWillDismiss();
|
||||||
post(() -> {
|
|
||||||
decorView.setSystemUiVisibility(uiOptions);
|
|
||||||
if (controls) {
|
if (controls) {
|
||||||
fullScreenPlayerView.dismiss();
|
fullScreenPlayerView.dismiss();
|
||||||
reLayout(exoPlayerView);
|
reLayout(exoPlayerView);
|
||||||
}
|
}
|
||||||
|
post(() -> {
|
||||||
|
decorView.setSystemUiVisibility(uiOptions);
|
||||||
eventEmitter.fullscreenDidDismiss();
|
eventEmitter.fullscreenDidDismiss();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user