fix: crash when aspect ratio is 0
This commit is contained in:
parent
c43087b1a8
commit
dd826fc38d
1 changed files with 3 additions and 1 deletions
|
@ -370,7 +370,9 @@ class PlayerActivity : BasePlayerActivity() {
|
||||||
binding.playerView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT
|
binding.playerView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
enterPictureInPictureMode(pipParams())
|
enterPictureInPictureMode(pipParams())
|
||||||
|
} catch (_: IllegalArgumentException) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPictureInPictureModeChanged(
|
override fun onPictureInPictureModeChanged(
|
||||||
|
|
Loading…
Reference in a new issue