aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 4be1dbcc..6218209d 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -517,6 +517,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
@Override
public synchronized void play(int index) {
+ Log.d(TAG, "Play");
play(index, true);
}
@@ -846,14 +847,14 @@ public class DownloadServiceImpl extends Service implements DownloadService {
@Override
public void setSleepTimerDuration(int duration){
timerDuration = duration;
- if(this.playerState == PlayerState.STARTED)
+ if(this.playerState == PlayerState.STARTED && timerStatus > 0)
startSleepTimer();
}
@Override
public void setSleepTimerStatus(int status){
timerStatus = status;
- if(this.playerState == PlayerState.STARTED)
+ if(this.playerState == PlayerState.STARTED && timerStatus > 0)
startSleepTimer();
}