瀏覽代碼

Fix duplicate entries in source migration. Closes #1190

inorichi 7 年之前
父節點
當前提交
d75c6b0c36
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt

+ 2 - 2
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()
         }
     }
-}
+}