Skip to content

Commit

Permalink
Fix(system bars): properly remove colors in full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias-Boulay committed Dec 4, 2024
1 parent e16c350 commit 76a76c9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 76a76c9

Please sign in to comment.