aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-12-11 20:40:31 -0800
committerScott Jackson <daneren2005@gmail.com>2012-12-11 20:40:31 -0800
commit0b22a0bcadbbe12724be747fa9488258a3a95239 (patch)
tree2e004d7242102680a405554bb10cc0590685f4aa /subsonic-android
parent195805f85c9c325a3d609915f9947e4ee1b59d8b (diff)
downloaddsub-0b22a0bcadbbe12724be747fa9488258a3a95239.tar.gz
dsub-0b22a0bcadbbe12724be747fa9488258a3a95239.tar.bz2
dsub-0b22a0bcadbbe12724be747fa9488258a3a95239.zip
Increased frequency of cachedPosition updates
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java3
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()) {