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 issue with full screen video player not closing on the first time #464

Merged
merged 3 commits into from
Oct 25, 2022

Conversation

ted3x
Copy link
Contributor

@ted3x ted3x commented Oct 23, 2022

Description

Video player in the full screen module (landscape) was not closing on the first time we clicked on 'X' button, because MainActivity didn't update videoPlayerShown value when we clicked play/pause button

moved videoPlayerShown updating logic in the openFullscreenViewPlayer, because its called in 2 places and it's better to have one place to assing value, rather than in 2 places

Fixes #463

Checklist

  • Should this change be included in the release notes? If yes, please add a line in CHANGELOG.md
  • Have you tested in landscape?
  • Have you tested accessibility with TalkBack?
  • Have you tested in different themes?
  • Does the change work with a large display font?
  • Are all the strings localized?
  • Could you have written any new tests?
  • Did you include Compose previews with any components?

…d on the first time, when clicking 'close' button

move videoPlayerShown in openFullscreenViewPlayer, because openFullscreenViewPlayer was called in setupPlayerViews, but we didn't change videoPlayerShown value here
@ted3x ted3x requested a review from a team as a code owner October 23, 2022 09:31
Copy link
Contributor

@mchowning mchowning left a comment

Choose a reason for hiding this comment

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

Great fix. Thanks so much for your contribution! 🙇

@mchowning mchowning enabled auto-merge October 25, 2022 15:20
@mchowning mchowning merged commit 6354980 into Automattic:main Oct 25, 2022
@ted3x ted3x deleted the issue#463 branch October 25, 2022 15:41
@ashiagr ashiagr added this to the 7.26 milestone Oct 31, 2022
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.

Fullscreen video player in landscape mode is not closed on the first time, when clicking 'close' button
3 participants