diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-07-29 18:01:19 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-07-29 18:01:19 -0700 |
commit | 0df472b6236090ef3a3b5f2cda718a8972f6d1b8 (patch) | |
tree | 8a2d79495934483d156dec2b22b44ff84893d5a4 /app/src | |
parent | 5d8e6775034a8887bb05619b9793325089d18e47 (diff) | |
download | dsub-0df472b6236090ef3a3b5f2cda718a8972f6d1b8.tar.gz dsub-0df472b6236090ef3a3b5f2cda718a8972f6d1b8.tar.bz2 dsub-0df472b6236090ef3a3b5f2cda718a8972f6d1b8.zip |
Make sure to fire progress change when paused and position changes
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 5 |
1 files changed, 5 insertions, 0 deletions
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; |