playback: always enable skipping
This commit is contained in:
parent
08e00c7fb1
commit
64b9557793
1 changed files with 7 additions and 0 deletions
|
@ -1038,6 +1038,13 @@ class NeoPlayer(
|
|||
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 {
|
||||
// We can always skip forward and backward (this is to retain parity with the old behavior)
|
||||
return super.isCommandAvailable(command) ||
|
||||
|
|
Loading…
Reference in a new issue