From fee957c367fc591cee2b49f5d4cd9f646ee2bd5f Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 1 Feb 2020 12:46:43 -0800 Subject: [PATCH] If a local manga title is blank, searching for it will add the title back --- .../tachiyomi/ui/catalogue/browse/BrowseCataloguePresenter.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCataloguePresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCataloguePresenter.kt index c43e0082ac..d93c36e924 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCataloguePresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/browse/BrowseCataloguePresenter.kt @@ -218,6 +218,10 @@ open class BrowseCataloguePresenter( newManga.id = result.insertedId() localManga = newManga } + else if (localManga.title.isBlank()) { + localManga.title = sManga.title + db.insertManga(localManga).executeAsBlocking() + } return localManga }