diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-12-12 21:10:53 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-12-12 21:10:53 -0800 |
commit | bd9c797579a225dfd0c3d599430d7a40b87cb97b (patch) | |
tree | 60e49c24a5a0605e622a3d0c6cab5372bc140419 | |
parent | 0b322883311a78024d0708ceceef67dac36a50b2 (diff) | |
download | dsub-bd9c797579a225dfd0c3d599430d7a40b87cb97b.tar.gz dsub-bd9c797579a225dfd0c3d599430d7a40b87cb97b.tar.bz2 dsub-bd9c797579a225dfd0c3d599430d7a40b87cb97b.zip |
Don't restart cachedPosition
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 |
1 files changed, 0 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 75437f27..d4d84def 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -746,7 +746,6 @@ public class DownloadServiceImpl extends Service implements DownloadService { } if(playerState == STARTED && (executorService == null || executorService.isShutdown())) { - cachedPosition = 0; Runnable runnable = new Runnable() { @Override public void run() { @@ -851,7 +850,6 @@ 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()) { |