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.NavigateBack -> finish()
|
||||||
is PlayerEvents.IsPlayingChanged -> {
|
is PlayerEvents.IsPlayingChanged -> {
|
||||||
if (appPreferences.playerPipGesture) {
|
if (appPreferences.playerPipGesture) {
|
||||||
setPictureInPictureParams(pipParams(event.isPlaying))
|
try {
|
||||||
|
setPictureInPictureParams(pipParams(event.isPlaying))
|
||||||
|
} catch (_: IllegalArgumentException) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue