chore: fix some deprecation warning messages

This commit is contained in:
Bnyro 2025-01-24 19:14:20 +01:00
parent ebf9138026
commit 7bb450bde3
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ abstract class AbstractPlayerService : MediaLibraryService(), MediaLibrarySessio
override fun onPlayerError(error: PlaybackException) {
// show a toast on errors
toastFromMainThread(error.localizedMessage)
toastFromMainThread(error.localizedMessage.orEmpty())
}
override fun onEvents(player: Player, events: Player.Events) {

View File

@ -248,7 +248,7 @@ class OfflinePlayerActivity : BaseActivity() {
isInPictureInPictureMode: Boolean,
newConfig: Configuration
) {
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
if (isInPictureInPictureMode) {
playerView.hideController()