aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowner <owner@DeeDee-Laptop>2012-12-31 19:57:25 -0800
committerowner <owner@DeeDee-Laptop>2012-12-31 19:57:25 -0800
commitb413f000593d440bbf456afa5eef3ffb82d203b8 (patch)
tree76b6efb0ed355d73b63290a71f36310bf1664cdf
parent45edaca05fef424e2d049ee32d7f1c536df2c866 (diff)
downloaddsub-b413f000593d440bbf456afa5eef3ffb82d203b8.tar.gz
dsub-b413f000593d440bbf456afa5eef3ffb82d203b8.tar.bz2
dsub-b413f000593d440bbf456afa5eef3ffb82d203b8.zip
reset cachedPosition when starting playback
-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 7f250f2e..a95b0253 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -767,7 +767,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
}
};
executorService = Executors.newSingleThreadScheduledExecutor();
- executorService.scheduleWithFixedDelay(runnable, 0L, 200L, TimeUnit.MILLISECONDS);
+ executorService.scheduleWithFixedDelay(runnable, 200L, 200L, TimeUnit.MILLISECONDS);
} else {
if(executorService != null && !executorService.isShutdown()) {
executorService.shutdown();
@@ -846,6 +846,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
if (position != 0) {
Log.i(TAG, "Restarting player from position " + position);
mediaPlayer.seekTo(position);
+ cachedPosition = position;
}
if (start) {