Remove chapters on a background thread.

This commit is contained in:
inorichi
2015-12-07 18:01:44 +01:00
parent 8f7443a686
commit 8a3bb2b7ee
5 changed files with 56 additions and 14 deletions

View File

@@ -395,7 +395,7 @@ public class DownloadManager {
for (Download download : queue.get()) {
if (download.getStatus() != Download.DOWNLOADED) {
download.setStatus(Download.QUEUE);
if (download.getStatus() != Download.QUEUE) download.setStatus(Download.QUEUE);
if (!hasPendingDownloads) hasPendingDownloads = true;
downloadsQueueSubject.onNext(download);
}