From 6a7769ea00dcc509a2c4c199f022c9ccfaa9db9f Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sun, 11 Aug 2013 14:46:37 -0700 Subject: Minor code improvements --- src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 +- src/github/daneren2005/dsub/service/JukeboxController.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 88898887..14fd5c67 100644 --- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -671,7 +671,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { setCurrentPlaying(index, start); if (start) { if (remoteState != RemoteControlState.LOCAL) { - remoteController.changeTrack(getCurrentPlayingIndex(), currentPlaying); + remoteController.changeTrack(index, downloadList.get(index)); setPlayerState(STARTED); } else { bufferAndPlay(); diff --git a/src/github/daneren2005/dsub/service/JukeboxController.java b/src/github/daneren2005/dsub/service/JukeboxController.java index 3904066d..06227d5d 100644 --- a/src/github/daneren2005/dsub/service/JukeboxController.java +++ b/src/github/daneren2005/dsub/service/JukeboxController.java @@ -185,9 +185,9 @@ public class JukeboxController extends RemoteController { // Track change? Integer index = jukeboxStatus.getCurrentPlayingIndex(); if (index != null && index != -1 && index != downloadService.getCurrentPlayingIndex()) { - downloadService.setPlayerState(PlayerState.COMPLETED); + downloadService.setPlayerState(PlayerState.COMPLETED); downloadService.setCurrentPlaying(index, true); - downloadService.setPlayerState(PlayerState.STARTED); + downloadService.setPlayerState(PlayerState.STARTED); } } -- cgit v1.2.3