Skip to content

Commit

Permalink
Fix exiting fullscreen disabling edge-to-edge display
Browse files Browse the repository at this point in the history
* Update FullscreenHandler.kt

make full screen handler compatible with edge to edge

* Update changelog

---------

Co-authored-by: Mattias Buelens <[email protected]>
  • Loading branch information
m-derakhshan and MattiasBuelens authored Aug 28, 2024
1 parent 8759705 commit ba48667
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* 🐛 Disable system gestures on the `SeekBar` component. ([#30](https://github.com/THEOplayer/android-ui/pull/30))
* 🐛 Fixed ad clickthrough not working. ([#33](https://github.com/THEOplayer/android-ui/pull/33))
* 🐛 Fixed UI not re-appearing after playing an ad. ([#33](https://github.com/THEOplayer/android-ui/pull/33))
* 🐛 Fixed exiting fullscreen disabling [edge-to-edge display](https://developer.android.com/develop/ui/views/layout/edge-to-edge-manually). ([#32](https://github.com/THEOplayer/android-ui/pull/32))

## v1.7.0 (2024-08-12)

Expand Down
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 ba48667

Please sign in to comment.