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:
Alexander Capehart 2023-01-23 21:27:49 -07:00
parent d2f74fd138
commit c655f7d39e
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 4 additions and 4 deletions

View file

@ -7,8 +7,10 @@
#### What's Improved
- Auxio will now accept zeroed track/disc numbers in the presence of non-zero total
track/disc fields.
track/disc fields
#### What's Fixed
- Fixed non-functioning "repeat all" repeat mode
## 3.0.2

View file

@ -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() {

View file

@ -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)