mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: crash when starting video upon auto fullscreen
This commit is contained in:
parent
5f50c8104a
commit
ac5bf43846
@ -1331,6 +1331,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
}
|
||||
|
||||
private fun updateResolutionOnFullscreenChange(isFullscreen: Boolean) {
|
||||
// this occurs when the user has the phone in landscape mode and it thus rotates when
|
||||
// opening a new video
|
||||
if (!this::trackSelector.isInitialized) return
|
||||
|
||||
if (!isFullscreen && noFullscreenResolution != null) {
|
||||
setPlayerResolution(noFullscreenResolution!!)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user