diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-21 19:43:32 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-21 19:43:32 -0700 |
commit | bc4bac7a7c2e02e0f65ae804205232f2e256b97a (patch) | |
tree | 90b828d0e4a60851eff7d70ba64e11ecefca62d6 | |
parent | f7dd85cc866e750cee334269f5fc41c02e8a0721 (diff) | |
download | dsub-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.java | 2 |
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(); } |