Fix video title switching

This commit is contained in:
Matéo Duparc 2023-03-13 17:10:06 +01:00
parent 821c853a22
commit c434d79c06
Signed by: hardcoresushi
GPG Key ID: AFE384344A45E13A

View File

@ -61,8 +61,10 @@ abstract class MediaPlayer: FileViewerActivity() {
}
override fun onMediaItemTransition(mediaItem: MediaItem?, reason: Int) {
playlistNext(player.currentMediaItemIndex == (currentPlaylistIndex+1) % mappedPlaylist.size)
refreshFileName()
if (player.repeatMode != Player.REPEAT_MODE_ONE) {
playlistNext(player.currentMediaItemIndex == (currentPlaylistIndex + 1) % mappedPlaylist.size)
refreshFileName()
}
}
})
player.prepare()