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