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(); }); }