Skip to content

Fix/issue/4488#4690

Open
Zakariasma wants to merge 11 commits intoTheWidlarzGroup:support/6.x.xfrom
Zakariasma:fix/issue/4488
Open

Fix/issue/4488#4690
Zakariasma wants to merge 11 commits intoTheWidlarzGroup:support/6.x.xfrom
Zakariasma:fix/issue/4488

Conversation

@Zakariasma
Copy link
Copy Markdown

Summary

Fix for [BUG]: Video rect not updating #4488 on Android.

Motivation

On Android, the Picture-in-Picture (PIP) feature did not correctly resize the video when exiting PIP mode and returning to the app. The video retained the PIP dimensions instead of adapting to the normal screen size.

Changes

Modified ReactExoplayerView.java.
In setIsInPictureInPicture, added a post(requestLayout()) to force the layout recalculation after exiting PIP.
Result: video now correctly resizes to fit the screen after leaving PIP.

Test plan

  • Open a video on Android.
  • Enter Picture-in-Picture mode (background the app).
  • Return to the app.
  • Verify that the video resizes correctly to fit the screen.
  • Without this change, the video retains the PIP dimensions.
    fix
    unfix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

1 participant