From 1415d06c8f93355564bfdb546ad8d02d5f65d9ab Mon Sep 17 00:00:00 2001 From: m-derakhshan <43886409+m-derakhshan@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:11:50 +0200 Subject: [PATCH 1/2] Update FullscreenHandler.kt make full screen handler compatible with edge to edge --- ui/src/main/java/com/theoplayer/android/ui/FullscreenHandler.kt | 2 -- 1 file changed, 2 deletions(-) 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 From 3bee8f3cff2d057a6cf6e537c1681f7503e10753 Mon Sep 17 00:00:00 2001 From: Mattias Buelens Date: Wed, 28 Aug 2024 11:11:34 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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)