From d75c6b0c3671b660b951a3e9bebfc2b686bab051 Mon Sep 17 00:00:00 2001 From: inorichi Date: Sat, 17 Feb 2018 19:06:15 +0100 Subject: [PATCH] Fix duplicate entries in source migration. Closes #1190 --- .../eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt index b8b5f71553..8a21d009d1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt @@ -37,7 +37,7 @@ class MigrationPresenter( override fun onCreate(savedState: Bundle?) { super.onCreate(savedState) - db.getLibraryMangas() + db.getFavoriteMangas() .asRxObservable() .observeOn(AndroidSchedulers.mainThread()) .doOnNext { state = state.copy(sourcesWithManga = findSourcesWithManga(it)) } @@ -148,4 +148,4 @@ class MigrationPresenter( db.updateMangaFavorite(manga).executeAsBlocking() } } -} \ No newline at end of file +}