playback: fix skip backward rewind w/enabled

New player setup accidentally broke rewind at beginning behavior when
rewind before skip is off.

Resolves #785
This commit is contained in:
Alexander Capehart 2024-06-08 12:19:54 -06:00
parent 0f691ee65b
commit c4a3d52903
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,8 @@
#### What's Fixed
- Fixed repeat mode not restoring on startup
- Fixed rewinding not occuring when skipping back at the beginning of the queue if
rewind before skipping was turned off
#### What's Changed
- For the time being, the media notification will not follow Album Covers or 1:1 Covers settings

View file

@ -270,8 +270,10 @@ class ExoPlaybackStateHolder(
override fun prev() {
if (playbackSettings.rewindWithPrev) {
player.seekToPrevious()
} else {
} else if (player.hasPreviousMediaItem()) {
player.seekToPreviousMediaItem()
} else {
player.seekTo(0)
}
if (!playbackSettings.rememberPause) {
player.play()