diff --git a/app/src/main/java/sushi/hardcore/droidfs/file_viewers/MediaPlayer.kt b/app/src/main/java/sushi/hardcore/droidfs/file_viewers/MediaPlayer.kt index a4513ee..e396817 100644 --- a/app/src/main/java/sushi/hardcore/droidfs/file_viewers/MediaPlayer.kt +++ b/app/src/main/java/sushi/hardcore/droidfs/file_viewers/MediaPlayer.kt @@ -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()