Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2385,8 +2385,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
playerBinding?.apply {
playerSpeedBtt.isVisible = playBackSpeedEnabled
playerResizeBtt.isVisible = playerResizeEnabled
playerRotateBtt.isVisible =
if (isLayout(TV or EMULATOR)) false else playerRotateEnabled
playerRotateBtt.isVisible = playerRotateEnabled
if (hideControlsNames) {
hideControlsNames()
}
Expand Down Expand Up @@ -2602,6 +2601,9 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
}

private fun dynamicOrientation(): Int {
if (isLayout(TV or EMULATOR)) {
return ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE
}
return if (autoPlayerRotateEnabled) {
if (isVerticalOrientation) {
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT
Expand Down
Loading