Minor code cleanup
This commit is contained in:
@@ -33,9 +33,9 @@ class DownloadPresenter : BasePresenter<DownloadController>() {
|
||||
downloadQueue.getUpdatedObservable()
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.map { ArrayList(it) }
|
||||
.subscribeLatestCache(DownloadController::onNextDownloads, { _, error ->
|
||||
.subscribeLatestCache(DownloadController::onNextDownloads) { _, error ->
|
||||
Timber.e(error)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
fun getDownloadStatusObservable(): Observable<Download> {
|
||||
@@ -62,4 +62,4 @@ class DownloadPresenter : BasePresenter<DownloadController>() {
|
||||
downloadManager.clearQueue()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user