aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-07-29 18:01:19 -0700
committerScott Jackson <daneren2005@gmail.com>2015-07-29 18:01:19 -0700
commit0df472b6236090ef3a3b5f2cda718a8972f6d1b8 (patch)
tree8a2d79495934483d156dec2b22b44ff84893d5a4 /app/src
parent5d8e6775034a8887bb05619b9793325089d18e47 (diff)
downloaddsub-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.java5
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;