-
Notifications
You must be signed in to change notification settings - Fork 24
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
Bugfix/android fullscreen layout #495
base: develop
Are you sure you want to change the base?
Conversation
@kot331107 perhaps best if I wait with this PR until after your rework on reparenting has landed? |
yeah, would be great, thank you. Also I'm gonna test these changes as a patch in our apps |
@tvanlaerhoven looks good on our apps with my latest reparenting patch 👍 I have tested on both api 34 and 35. edge 2 edge is enabled in these apps by design. |
@@ -240,9 +250,13 @@ class PresentationManager( | |||
) | |||
updatePresentationMode(PresentationMode.INLINE) | |||
|
|||
// Remove forced layout observer | |||
fullScreenLayoutObserver.remove(reactPlayerGroup) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt to unsubscribe in destroy()
function as well @tvanlaerhoven ?
0a8e6e4
to
1aa6558
Compare
…View among the direct parents
3e08d2d
to
b02e347
Compare
The fullscreen behaviour needs some changes on Android
Dimension
did not suffice. We now ask the rootView's usable screen dimensions.{top:0, left:0}
, ignoring any translation the React Native lay-out engine (specifically NewArch's Yoga engine) imposes.THEOplayer_reparent_on_fullscreen=false
.