mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #7016 from Bnyro/master
chore: fix some deprecation warning messages
This commit is contained in:
commit
56d644ac69
@ -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) {
|
||||
|
@ -248,7 +248,7 @@ class OfflinePlayerActivity : BaseActivity() {
|
||||
isInPictureInPictureMode: Boolean,
|
||||
newConfig: Configuration
|
||||
) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
||||
|
||||
if (isInPictureInPictureMode) {
|
||||
playerView.hideController()
|
||||
|
Loading…
x
Reference in New Issue
Block a user