Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Dec 26, 2024
1 parent fa8f514 commit d903963
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ public static void setVideoTime(long millis) {
return;
}

if (Utils.isLandscapeOrientation()) {
if (mode == FullscreenMode.PORTRAIT) {
return;
}
} else if (mode == FullscreenMode.LANDSCAPE) {
return;
}

if (PlayerType.getCurrent() == PlayerType.WATCH_WHILE_FULLSCREEN
&& VideoState.getCurrent() == VideoState.PLAYING
&& VideoInformation.isAtEndOfVideo()) {
ImageView fullscreenButton = PlayerControlsPatch.fullscreenButtonRef.get();

if (Utils.isLandscapeOrientation()) {
if (mode == FullscreenMode.PORTRAIT) {
return;
}
} else if (mode == FullscreenMode.LANDSCAPE) {
return;
}

ImageView fullscreenButton = PlayerControlsPatch.fullscreenButtonRef.get();
if (fullscreenButton != null) {
Logger.printDebug(() -> "Clicking fullscreen button");
fullscreenButton.performClick();
Expand Down

0 comments on commit d903963

Please sign in to comment.