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:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#### What's Fixed
|
#### What's Fixed
|
||||||
- Fixed repeat mode not restoring on startup
|
- 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
|
#### What's Changed
|
||||||
- For the time being, the media notification will not follow Album Covers or 1:1 Covers settings
|
- For the time being, the media notification will not follow Album Covers or 1:1 Covers settings
|
||||||
|
|||||||
@@ -270,8 +270,10 @@ class ExoPlaybackStateHolder(
|
|||||||
override fun prev() {
|
override fun prev() {
|
||||||
if (playbackSettings.rewindWithPrev) {
|
if (playbackSettings.rewindWithPrev) {
|
||||||
player.seekToPrevious()
|
player.seekToPrevious()
|
||||||
} else {
|
} else if (player.hasPreviousMediaItem()) {
|
||||||
player.seekToPreviousMediaItem()
|
player.seekToPreviousMediaItem()
|
||||||
|
} else {
|
||||||
|
player.seekTo(0)
|
||||||
}
|
}
|
||||||
if (!playbackSettings.rememberPause) {
|
if (!playbackSettings.rememberPause) {
|
||||||
player.play()
|
player.play()
|
||||||
|
|||||||
Reference in New Issue
Block a user