Browse Source

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

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
63c8dbe09e
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 5
      app/src/main/java/com/github/apognu/otter/fragments/TracksFragment.kt

5
app/src/main/java/com/github/apognu/otter/fragments/TracksFragment.kt

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

Loading…
Cancel
Save