From 76a76c9b32cf77b26f126c43491ba180f61c0947 Mon Sep 17 00:00:00 2001 From: Mathias-Boulay Date: Thu, 5 Dec 2024 00:29:07 +0100 Subject: [PATCH] Fix(system bars): properly remove colors in full screen --- app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java index c963f707a5..beb826c564 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java @@ -557,8 +557,10 @@ private static void setFullscreenSdk30(Activity activity, boolean fullscreen) { (view, windowInsets) -> { if (fullscreen && !activity.isInMultiWindowMode()) { windowInsetsController.hide(WindowInsetsCompat.Type.systemBars()); + activity.getWindow().setDecorFitsSystemWindows(false); } else { windowInsetsController.show(WindowInsetsCompat.Type.systemBars()); + activity.getWindow().setDecorFitsSystemWindows(true); } return ViewCompat.onApplyWindowInsets(view, windowInsets);