Fix video title switching
This commit is contained in:
parent
821c853a22
commit
c434d79c06
@ -61,9 +61,11 @@ abstract class MediaPlayer: FileViewerActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onMediaItemTransition(mediaItem: MediaItem?, reason: Int) {
|
override fun onMediaItemTransition(mediaItem: MediaItem?, reason: Int) {
|
||||||
|
if (player.repeatMode != Player.REPEAT_MODE_ONE) {
|
||||||
playlistNext(player.currentMediaItemIndex == (currentPlaylistIndex + 1) % mappedPlaylist.size)
|
playlistNext(player.currentMediaItemIndex == (currentPlaylistIndex + 1) % mappedPlaylist.size)
|
||||||
refreshFileName()
|
refreshFileName()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
player.prepare()
|
player.prepare()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user