Small brackets change, though I dont think logic will(though knowing my luck this might have been the reason)

This commit is contained in:
Jobobby04 2020-05-05 00:54:47 -04:00
parent 29a07429df
commit 730c316e89

View File

@ -303,14 +303,13 @@ class BackupManager(val context: Context, version: Int = CURRENT_VERSION) {
} else {
source.fetchChapterList(manga)
}
.map { syncChaptersWithSource(databaseHelper, it, manga, source) }
.doOnNext { pair ->
if (pair.first.isNotEmpty()) {
chapters.forEach { it.manga_id = manga.id }
insertChapters(chapters)
}
).map { syncChaptersWithSource(databaseHelper, it, manga, source) }
.doOnNext { pair ->
if (pair.first.isNotEmpty()) {
chapters.forEach { it.manga_id = manga.id }
insertChapters(chapters)
}
)
}
}
/**