Fix recent chapters menu button not showing on high dpi screens

This commit is contained in:
len
2016-05-05 20:58:19 +02:00
parent 0de214c3b5
commit 9de3da33aa
3 changed files with 6 additions and 13 deletions

View File

@@ -57,15 +57,12 @@ class DownloadManager(private val context: Context, private val sourceManager: S
.lift(DynamicConcurrentMergeOperator<Download, Download>({ downloadChapter(it) }, threadsSubject))
.onBackpressureBuffer()
.observeOn(AndroidSchedulers.mainThread())
.doOnNext {
.subscribe({
// Delete successful downloads from queue
if (it.status == Download.DOWNLOADED) {
queue.del(it)
}
}
.map { download -> areAllDownloadsFinished() }
.subscribe({ finished ->
if (finished!!) {
if (areAllDownloadsFinished()) {
DownloadService.stop(context)
}
}, { e ->