From 187e9f94aa0ddeef6ad542b2c231b917071eead4 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Fri, 28 Oct 2022 09:34:21 +0700 Subject: [PATCH] Set source id when inserting to db (#8300) --- .../eu/kanade/domain/manga/interactor/NetworkToLocalManga.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/domain/manga/interactor/NetworkToLocalManga.kt b/app/src/main/java/eu/kanade/domain/manga/interactor/NetworkToLocalManga.kt index b8793d635..9a2b3f4dd 100644 --- a/app/src/main/java/eu/kanade/domain/manga/interactor/NetworkToLocalManga.kt +++ b/app/src/main/java/eu/kanade/domain/manga/interactor/NetworkToLocalManga.kt @@ -11,7 +11,7 @@ class NetworkToLocalManga( val localManga = getManga(manga.url, sourceId) return when { localManga == null -> { - val id = insertManga(manga) + val id = insertManga(manga.copy(source = sourceId)) manga.copy(id = id!!) } !localManga.favorite -> {