Remove "loop none" option (#276)

This commit is contained in:
vfsfitvnm
2022-09-04 20:45:41 +02:00
parent e38443c617
commit 45235acd5d
5 changed files with 30 additions and 92 deletions

View File

@@ -194,7 +194,10 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
.setUsePlatformDiagnostics(false)
.build()
player.repeatMode = preferences.getInt(repeatModeKey, Player.REPEAT_MODE_OFF)
player.repeatMode = when (preferences.getInt(repeatModeKey, Player.REPEAT_MODE_ALL)) {
Player.REPEAT_MODE_ONE -> Player.REPEAT_MODE_ONE
else -> Player.REPEAT_MODE_ALL
}
player.skipSilenceEnabled = preferences.getBoolean(skipSilenceKey, false)
player.addListener(this)
player.addAnalyticsListener(PlaybackStatsListener(false, this))