fix: handle IllegalArgumentException
from setPictureInPictureParams
This commit is contained in:
parent
0a1582f47b
commit
f61f65828f
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ class PlayerActivity : BasePlayerActivity() {
|
|||
is PlayerEvents.NavigateBack -> finish()
|
||||
is PlayerEvents.IsPlayingChanged -> {
|
||||
if (appPreferences.playerPipGesture) {
|
||||
try {
|
||||
setPictureInPictureParams(pipParams(event.isPlaying))
|
||||
} catch (_: IllegalArgumentException) { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue