If a local manga title is blank, searching for it will add the title back

This commit is contained in:
Jay 2020-02-01 12:46:43 -08:00
parent 94b82ee40e
commit fee957c367

View File

@ -218,6 +218,10 @@ open class BrowseCataloguePresenter(
newManga.id = result.insertedId() newManga.id = result.insertedId()
localManga = newManga localManga = newManga
} }
else if (localManga.title.isBlank()) {
localManga.title = sManga.title
db.insertManga(localManga).executeAsBlocking()
}
return localManga return localManga
} }