Skip to content

Commit

Permalink
fix(android): show the status bar and navigation bar after exiting fu…
Browse files Browse the repository at this point in the history
…ll-screen mode (#4112)

* fix(android):  show the status bar and navigation bar after exiting full-screen mode
  • Loading branch information
seyedmostafahasani authored Sep 3, 2024
1 parent 308447a commit 8b8ebe9
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2277,10 +2277,6 @@ public void setFullscreen(boolean fullscreen) {
fullScreenPlayerView.show();
}
UiThreadUtil.runOnUiThread(() -> {
originalFitsSystemWindows = window.getDecorView().getFitsSystemWindows();
WindowCompat.setDecorFitsSystemWindows(window, false);
controller.hide(WindowInsetsCompat.Type.systemBars());
controller.setSystemBarsBehavior(WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE);
eventEmitter.onVideoFullscreenPlayerDidPresent.invoke();
});
} else {
Expand All @@ -2291,8 +2287,6 @@ public void setFullscreen(boolean fullscreen) {
setControls(controls);
}
UiThreadUtil.runOnUiThread(() -> {
WindowCompat.setDecorFitsSystemWindows(window, originalFitsSystemWindows);
controller.show(WindowInsetsCompat.Type.systemBars());
eventEmitter.onVideoFullscreenPlayerDidDismiss.invoke();
});
}
Expand Down

0 comments on commit 8b8ebe9

Please sign in to comment.