#65: abide by order preference when using "Queue" overflow menu option.

This commit is contained in:
Antoine POPINEAU 2020-09-02 14:24:59 +02:00
parent 9b0c8b0bf6
commit 63c8dbe09e
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ class TracksFragment : OtterFragment<Track, TracksAdapter>() {
}
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")
}