mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +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) {
|
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) {
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user