playback: always enable skipping

This commit is contained in:
Alexander Capehart 2024-04-08 21:15:15 -06:00
parent 08e00c7fb1
commit 64b9557793
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -1038,6 +1038,13 @@ class NeoPlayer(
player.setShuffleOrder(order) player.setShuffleOrder(order)
} }
override fun getAvailableCommands(): Player.Commands {
return super.getAvailableCommands()
.buildUpon()
.addAll(Player.COMMAND_SEEK_TO_NEXT, Player.COMMAND_SEEK_TO_PREVIOUS)
.build()
}
override fun isCommandAvailable(command: Int): Boolean { override fun isCommandAvailable(command: Int): Boolean {
// We can always skip forward and backward (this is to retain parity with the old behavior) // We can always skip forward and backward (this is to retain parity with the old behavior)
return super.isCommandAvailable(command) || return super.isCommandAvailable(command) ||