From 0df472b6236090ef3a3b5f2cda718a8972f6d1b8 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 29 Jul 2015 18:01:19 -0700 Subject: Make sure to fire progress change when paused and position changes --- .../main/java/github/daneren2005/dsub/service/DownloadService.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/src') diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java index a9f82919..31688494 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -908,6 +908,7 @@ public class DownloadService extends Service { } private synchronized void play(int index, boolean start, int position) { int size = this.size(); + cachedPosition = 0; if (index < 0 || index >= size) { reset(); if(index >= size && size != 0) { @@ -2391,6 +2392,10 @@ public class DownloadService extends Service { } }); } + + if(playerState != STARTED) { + onSongProgress(); + } } private void onSongsChanged() { final long atRevision = revision; -- cgit v1.2.3