THEOplayer / android-ui

UI component library for the THEOplayer Android SDK
https://www.theoplayer.com/docs/open-video-ui/android/
MIT License
8 stars 2 forks source link

Update FullscreenHandler.kt #32

Closed m-derakhshan closed 3 months ago

m-derakhshan commented 3 months ago

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:

https://github.com/user-attachments/assets/bd4aa287-6364-47a1-a466-213d33549924

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.

https://github.com/user-attachments/assets/873cc2fd-042c-4ce1-9961-978a7747cc45

Thank you.

@ceyhun-o @georgechoustoulakis @MattiasBuelens @tvanlaerhoven