diff --git a/CHANGELOG.md b/CHANGELOG.md index d8b78a8..4413ad0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/ui/src/main/java/com/theoplayer/android/ui/FullscreenHandler.kt b/ui/src/main/java/com/theoplayer/android/ui/FullscreenHandler.kt index c9e86bc..51a7286 100644 --- a/ui/src/main/java/com/theoplayer/android/ui/FullscreenHandler.kt +++ b/ui/src/main/java/com/theoplayer/android/ui/FullscreenHandler.kt @@ -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 @@ -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