File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/fragments/detail Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1900,12 +1900,13 @@ public void onFullscreenStateChanged(final boolean fullscreen) {
19001900
19011901 @ Override
19021902 public void onScreenRotationButtonClicked () {
1903+ // On Android TV screen rotation is not supported
19031904 // In tablet user experience will be better if screen will not be rotated
19041905 // from landscape to portrait every time.
19051906 // Just turn on fullscreen mode in landscape orientation
19061907 // or portrait & unlocked global orientation
19071908 final boolean isLandscape = DeviceUtils .isLandscape (requireContext ());
1908- if (DeviceUtils .isTablet (activity )
1909+ if (DeviceUtils .isTv ( activity ) || DeviceUtils . isTablet (activity )
19091910 && (!globalScreenOrientationLocked (activity ) || isLandscape )) {
19101911 player .UIs ().get (MainPlayerUi .class ).ifPresent (MainPlayerUi ::toggleFullscreen );
19111912 return ;
You can’t perform that action at this time.
0 commit comments