Skip to content

Commit 770b8b1

Browse files
committed
Always do not rotate screen when Android TV
1 parent 18f1cf2 commit 770b8b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ public void onScreenRotationButtonClicked() {
19051905
// Just turn on fullscreen mode in landscape orientation
19061906
// or portrait & unlocked global orientation
19071907
final boolean isLandscape = DeviceUtils.isLandscape(requireContext());
1908-
if (DeviceUtils.isTablet(activity)
1908+
if (DeviceUtils.isTv(activity) || DeviceUtils.isTablet(activity)
19091909
&& (!globalScreenOrientationLocked(activity) || isLandscape)) {
19101910
player.UIs().get(MainPlayerUi.class).ifPresent(MainPlayerUi::toggleFullscreen);
19111911
return;

0 commit comments

Comments
 (0)