aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-21 19:43:32 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-21 19:43:32 -0700
commitbc4bac7a7c2e02e0f65ae804205232f2e256b97a (patch)
tree90b828d0e4a60851eff7d70ba64e11ecefca62d6
parentf7dd85cc866e750cee334269f5fc41c02e8a0721 (diff)
downloaddsub-bc4bac7a7c2e02e0f65ae804205232f2e256b97a.tar.gz
dsub-bc4bac7a7c2e02e0f65ae804205232f2e256b97a.tar.bz2
dsub-bc4bac7a7c2e02e0f65ae804205232f2e256b97a.zip
Fix crash by making sure to update currentPlayingIndex in download
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 5b4861ac..b96d76bd 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -349,6 +349,8 @@ public class DownloadService extends Service {
currentPlaying = downloadList.get(0);
currentPlayingIndex = 0;
currentPlaying.setPlaying(true);
+ } else {
+ currentPlayingIndex = downloadList.indexOf(currentPlaying);
}
checkDownloads();
}