Skip to content

Commit 17ce699

Browse files
committed
Do not change orientation on TVs when entering fullscreen
1 parent d770c6f commit 17ce699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,8 +1909,8 @@ public void onScreenRotationButtonClicked() {
19091909
return;
19101910
}
19111911

1912-
// On tablets, just toggle fullscreen UI without orientation change.
1913-
if (DeviceUtils.isTablet(activity)) {
1912+
// On tablets and TVs, just toggle fullscreen UI without orientation change.
1913+
if (DeviceUtils.isTablet(activity) || DeviceUtils.isTv(activity)) {
19141914
playerUi.get().toggleFullscreen();
19151915
return;
19161916
}

0 commit comments

Comments
 (0)