|
|
@ -145,8 +145,6 @@ class PlayerService : Service() { |
|
|
|
CommandBus.get().collect { command -> |
|
|
|
CommandBus.get().collect { command -> |
|
|
|
when (command) { |
|
|
|
when (command) { |
|
|
|
is Command.RefreshService -> { |
|
|
|
is Command.RefreshService -> { |
|
|
|
EventBus.send(Event.QueueChanged) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (queue.metadata.isNotEmpty()) { |
|
|
|
if (queue.metadata.isNotEmpty()) { |
|
|
|
CommandBus.send(Command.RefreshTrack(queue.current())) |
|
|
|
CommandBus.send(Command.RefreshTrack(queue.current())) |
|
|
|
EventBus.send(Event.StateChanged(player.playWhenReady)) |
|
|
|
EventBus.send(Event.StateChanged(player.playWhenReady)) |
|
|
|