aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-02-23 18:10:35 -0800
committerScott Jackson <daneren2005@gmail.com>2016-02-23 18:10:35 -0800
commitb5a7e3080189c616a2ac952dd2ca43b7102d0a91 (patch)
tree85f8f8f9cc706568a48db53310f0fab2f1e20bd1 /app
parent1c4b9749378ef169e9d0104049432da40ee77f7c (diff)
downloaddsub-b5a7e3080189c616a2ac952dd2ca43b7102d0a91.tar.gz
dsub-b5a7e3080189c616a2ac952dd2ca43b7102d0a91.tar.bz2
dsub-b5a7e3080189c616a2ac952dd2ca43b7102d0a91.zip
Fix download queue getting messed up if clearing current playing while downloading
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java4
1 files changed, 4 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 e21e7c34..3eab2855 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -785,6 +785,8 @@ public class DownloadService extends Service {
suggestedPlaylistName = null;
suggestedPlaylistId = null;
+
+ checkDownloads();
}
public synchronized void remove(int which) {
@@ -811,6 +813,8 @@ public class DownloadService extends Service {
if(downloadFile == nextPlaying) {
setNextPlaying();
}
+
+ checkDownloads();
}
public synchronized void removeBackground(DownloadFile downloadFile) {
if (downloadFile == currentDownloading && downloadFile != currentPlaying && downloadFile != nextPlaying) {