Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FullscreenHandler.kt #32

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

m-derakhshan
Copy link
Contributor

Make fullScreen handler compatible with edge-to-edge.

Hello.
The current version of the full screen doesn't respect developer-selected edge-to-edge. If the developer enables the edge-to-edge feature, and then the end user goes to full screen and then returns, you force the system to ignore the edge-to-edge.
The before state is as follows:

before.mp4

The after is like this. There is no need to mention that it behaves correctly, whether the developer enables the edge-to-edge feature or not.

after.mov

Thank you.

@ceyhun-o @georgechoustoulakis @MattiasBuelens @tvanlaerhoven

@MattiasBuelens MattiasBuelens added the bug Something isn't working label Aug 28, 2024
m-derakhshan and others added 2 commits August 28, 2024 11:07
make full screen handler compatible with edge to edge
@@ -35,7 +35,6 @@ internal class FullscreenHandlerImpl(private val view: View) : FullscreenHandler
val window = activity.window

// Hide system bars
WindowCompat.setDecorFitsSystemWindows(window, false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I don't remember where I got this code from. 😅

It looks like this guide is the best resource at the moment, and it doesn't mention setDecorFitsSystemWindows at all. So I suppose it's not needed. 👍

@MattiasBuelens MattiasBuelens merged commit ba48667 into THEOplayer:develop Aug 28, 2024
1 check passed
@m-derakhshan m-derakhshan deleted the full-screen-handler branch August 31, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants