From 5f5dff8fa85229e31961df1a636173333854a683 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 17 Oct 2012 19:40:17 -0700 Subject: Fix that timer wasn't starting on changing timer settings --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index aaa8c39c..4be1dbcc 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -846,11 +846,15 @@ public class DownloadServiceImpl extends Service implements DownloadService { @Override public void setSleepTimerDuration(int duration){ timerDuration = duration; + if(this.playerState == PlayerState.STARTED) + startSleepTimer(); } @Override public void setSleepTimerStatus(int status){ timerStatus = status; + if(this.playerState == PlayerState.STARTED) + startSleepTimer(); } @Override -- cgit v1.2.3