Skip to content

Commit

Permalink
Update FullscreenHandler.kt
Browse files Browse the repository at this point in the history
make full screen handler compatible with edge to edge
  • Loading branch information
m-derakhshan authored and MattiasBuelens committed Aug 28, 2024
1 parent 8759705 commit 1415d06
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ internal class FullscreenHandlerImpl(private val view: View) : FullscreenHandler
val window = activity.window

// Hide system bars
WindowCompat.setDecorFitsSystemWindows(window, false)
WindowCompat.getInsetsController(window, view).let { controller ->
controller.hide(WindowInsetsCompat.Type.systemBars())
previousSystemBarsBehavior = controller.systemBarsBehavior
Expand Down Expand Up @@ -74,7 +73,6 @@ internal class FullscreenHandlerImpl(private val view: View) : FullscreenHandler
val window = activity.window

// Restore system bars
WindowCompat.setDecorFitsSystemWindows(window, true)
WindowCompat.getInsetsController(window, view).let { controller ->
controller.show(WindowInsetsCompat.Type.systemBars())
controller.systemBarsBehavior = previousSystemBarsBehavior
Expand Down

0 comments on commit 1415d06

Please sign in to comment.