playback: fix non-functioning repeat all mode
Fix an issue where the "repeat all" mode would not actually start playing when the queue looped.
This commit is contained in:
@@ -48,8 +48,6 @@ import org.oxycblt.auxio.util.systemBarInsetsCompat
|
||||
*
|
||||
* TODO: Unit testing
|
||||
*
|
||||
* TODO: Migrate to value classes FOR ALL ENUMS
|
||||
*
|
||||
* @author Alexander Capehart (OxygenCobalt)
|
||||
*/
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
||||
@@ -186,7 +186,7 @@ class PlaybackStateManager private constructor() {
|
||||
var play = true
|
||||
if (!queue.goto(queue.index + 1)) {
|
||||
queue.goto(0)
|
||||
play = false
|
||||
play = repeatMode == RepeatMode.ALL
|
||||
}
|
||||
notifyIndexMoved()
|
||||
internalPlayer.loadSong(queue.currentSong, play)
|
||||
|
||||
Reference in New Issue
Block a user