Skip to content

Commit

Permalink
fix: fix FullscreenPlayerView constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
YangJonghun committed Apr 10, 2024
1 parent 78c2321 commit cf57475
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ protected void setIsInPictureInPicture(boolean isInPictureInPicture) {
fullScreenPlayerView.dismiss();
}
if (pipFullScreenPlayerView == null) {
pipFullScreenPlayerView = new FullScreenPlayerView(getContext(), exoPlayerView, null, new OnBackPressedCallback(true) {
pipFullScreenPlayerView = new FullScreenPlayerView(getContext(), exoPlayerView, this, null, new OnBackPressedCallback(true) {
@Override
public void handleOnBackPressed() { }
});
Expand All @@ -1907,7 +1907,7 @@ public void handleOnBackPressed() { }
pipFullScreenPlayerView.dismiss();
}
if (controls) {
fullScreenPlayerView = new FullScreenPlayerView(getContext(), exoPlayerView, playerControlView, new OnBackPressedCallback(true) {
fullScreenPlayerView = new FullScreenPlayerView(getContext(), exoPlayerView, this, playerControlView, new OnBackPressedCallback(true) {
@Override
public void handleOnBackPressed() {
setFullscreen(false);
Expand Down

0 comments on commit cf57475

Please sign in to comment.