Skip to content

Commit

Permalink
revert: controls condition to handle fullScreen button
Browse files Browse the repository at this point in the history
  • Loading branch information
seyedmostafahasani authored Jun 1, 2024
1 parent 99cb973 commit 12f504b
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2187,11 +2187,15 @@ public boolean getPreventsDisplaySleepDuringVideoPlayback() {
private void updateFullScreenButtonVisibility() {
if (playerControlView != null) {
final ImageButton fullScreenButton = playerControlView.findViewById(R.id.exo_fullscreen);
//Handling the fullScreenButton click event
if (isFullscreen && fullScreenPlayerView != null && !fullScreenPlayerView.isShowing()) {
fullScreenButton.setVisibility(GONE);
if (controls) {
//Handling the fullScreenButton click event
if (isFullscreen && fullScreenPlayerView != null && !fullScreenPlayerView.isShowing()) {
fullScreenButton.setVisibility(GONE);
} else {
fullScreenButton.setVisibility(VISIBLE);
}
} else {
fullScreenButton.setVisibility(VISIBLE);
fullScreenButton.setVisibility(GONE);
}
}
}
Expand Down

0 comments on commit 12f504b

Please sign in to comment.