Merge pull request #7016 from Bnyro/master

chore: fix some deprecation warning messages
This commit is contained in:
Bnyro 2025-01-24 19:14:37 +01:00 committed by GitHub
commit 56d644ac69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) { override fun onPlayerError(error: PlaybackException) {
// show a toast on errors // show a toast on errors
toastFromMainThread(error.localizedMessage) toastFromMainThread(error.localizedMessage.orEmpty())
} }
override fun onEvents(player: Player, events: Player.Events) { override fun onEvents(player: Player, events: Player.Events) {

View File

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