mirror of
https://github.com/apognu/otter
synced 2025-02-17 11:20:34 +01:00
#65: abide by order preference when using "Queue" overflow menu option.
This commit is contained in:
parent
9b0c8b0bf6
commit
63c8dbe09e
@ -143,7 +143,10 @@ class TracksFragment : OtterFragment<Track, TracksAdapter>() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
R.id.add_to_queue -> {
|
R.id.add_to_queue -> {
|
||||||
CommandBus.send(Command.AddToQueue(adapter.data))
|
when (PowerPreference.getDefaultFile().getString("play_order")) {
|
||||||
|
"in_order" -> CommandBus.send(Command.AddToQueue(adapter.data))
|
||||||
|
else -> CommandBus.send(Command.AddToQueue(adapter.data.shuffled()))
|
||||||
|
}
|
||||||
|
|
||||||
context.toast("All tracks were added to your queue")
|
context.toast("All tracks were added to your queue")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user