mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Merge pull request #6818 from Bnyro/master
fix: crash when opening video in landscape with autofullscreen enabled
This commit is contained in:
commit
a54799db32
@ -1182,6 +1182,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
}
|
||||
|
||||
private fun setPlayerResolution(resolution: Int, isSelectedByUser: Boolean = false) {
|
||||
if (!::playerController.isInitialized) return
|
||||
|
||||
val transformedResolution = if (!isSelectedByUser && isShort) {
|
||||
ceil(resolution * 16.0 / 9.0).toInt()
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user