From 8b8ebe9410e95085e5602393c2ce3de814df4a96 Mon Sep 17 00:00:00 2001 From: Seyed Mostafa Hasani Date: Tue, 3 Sep 2024 10:29:24 +0330 Subject: [PATCH] fix(android): show the status bar and navigation bar after exiting full-screen mode (#4112) * fix(android): show the status bar and navigation bar after exiting full-screen mode --- .../java/com/brentvatne/exoplayer/ReactExoplayerView.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index 37b68f48..3ef807c3 100644 --- a/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -2277,10 +2277,6 @@ public class ReactExoplayerView extends FrameLayout implements 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 { @@ -2291,8 +2287,6 @@ public class ReactExoplayerView extends FrameLayout implements setControls(controls); } UiThreadUtil.runOnUiThread(() -> { - WindowCompat.setDecorFitsSystemWindows(window, originalFitsSystemWindows); - controller.show(WindowInsetsCompat.Type.systemBars()); eventEmitter.onVideoFullscreenPlayerDidDismiss.invoke(); }); }