diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-12-11 20:40:31 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-12-11 20:40:31 -0800 |
commit | 0b22a0bcadbbe12724be747fa9488258a3a95239 (patch) | |
tree | 2e004d7242102680a405554bb10cc0590685f4aa | |
parent | 195805f85c9c325a3d609915f9947e4ee1b59d8b (diff) | |
download | dsub-0b22a0bcadbbe12724be747fa9488258a3a95239.tar.gz dsub-0b22a0bcadbbe12724be747fa9488258a3a95239.tar.bz2 dsub-0b22a0bcadbbe12724be747fa9488258a3a95239.zip |
Increased frequency of cachedPosition updates
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 845ecfa5..75437f27 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -761,7 +761,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { } }; executorService = Executors.newSingleThreadScheduledExecutor(); - executorService.scheduleWithFixedDelay(runnable, 0L, 1000L, TimeUnit.MILLISECONDS); + executorService.scheduleWithFixedDelay(runnable, 0L, 200L, TimeUnit.MILLISECONDS); } else { if(executorService != null && !executorService.isShutdown()) { executorService.shutdown(); @@ -851,6 +851,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { Log.w(TAG, "Using cached current position"); pos = cachedPosition; } + Log.d(TAG, pos + " of " + cachedPosition); synchronized (DownloadServiceImpl.this) { int duration = downloadFile.getSong().getDuration() == null ? 0 : downloadFile.getSong().getDuration() * 1000; if(downloadFile.isWorkDone()) { |