mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Merge pull request #5068 from Bnyro/master
fix: fullscreen video doesn't use landscape
This commit is contained in:
commit
ff1f64ac71
@ -521,7 +521,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
}
|
||||
|
||||
private fun updateFullscreenOrientation() {
|
||||
if (PlayerHelper.autoFullscreenEnabled || this::streams.isInitialized) return
|
||||
if (PlayerHelper.autoFullscreenEnabled || !this::streams.isInitialized) return
|
||||
|
||||
val height = streams.videoStreams.firstOrNull()?.height ?: exoPlayer.videoSize.height
|
||||
val width = streams.videoStreams.firstOrNull()?.width ?: exoPlayer.videoSize.width
|
||||
|
Loading…
Reference in New Issue
Block a user