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

fix(android): re-layout controls after fullscreen dismiss #3490

Merged

Conversation

KrzysztofMoch
Copy link
Collaborator

@KrzysztofMoch KrzysztofMoch commented Jan 20, 2024

Summary

re layout controls view after exit from fullscreen to update controls positions and weird bug when controls are out of video

fixes #3377

Test plan

  • Tested in example
  • App build in CI

@@ -500,6 +500,11 @@ private void reLayout(View view) {
view.layout(view.getLeft(), view.getTop(), view.getMeasuredWidth(), view.getMeasuredHeight());
}

private void reLayoutControls() {
reLayout(exoPlayerView);
reLayout(playerControlView);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please check playerControlView is not null !

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But reLayout function has this check

@freeboub freeboub merged commit 135d97c into TheWidlarzGroup:master Jan 26, 2024
3 checks passed
@KrzysztofMoch KrzysztofMoch deleted the fix/android-controls-missplace branch January 28, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android - Controls gets misplaced on screen when closing fullscreen in landscape mode.
2 participants