Lint fix
This commit is contained in:
parent
7f02a533fa
commit
46dccf8a2d
@ -282,9 +282,9 @@ class LibraryUpdateService(
|
|||||||
.filter { pair -> pair.first.isNotEmpty() }
|
.filter { pair -> pair.first.isNotEmpty() }
|
||||||
.doOnNext {
|
.doOnNext {
|
||||||
if (downloadNew && (
|
if (downloadNew && (
|
||||||
categoriesToDownload.isEmpty() ||
|
categoriesToDownload.isEmpty() ||
|
||||||
manga.category in categoriesToDownload
|
manga.category in categoriesToDownload
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
downloadChapters(manga, it.first)
|
downloadChapters(manga, it.first)
|
||||||
hasDownloads = true
|
hasDownloads = true
|
||||||
@ -322,7 +322,6 @@ class LibraryUpdateService(
|
|||||||
.map { manga -> manga.first }
|
.map { manga -> manga.first }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun downloadChapters(manga: Manga, chapters: List<Chapter>) {
|
private fun downloadChapters(manga: Manga, chapters: List<Chapter>) {
|
||||||
// we need to get the chapters from the db so we have chapter ids
|
// we need to get the chapters from the db so we have chapter ids
|
||||||
val mangaChapters = db.getChapters(manga).executeAsBlocking()
|
val mangaChapters = db.getChapters(manga).executeAsBlocking()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user