diff --git a/app/src/main/java/com/kunfei/bookshelf/help/ChangeSourceHelp.java b/app/src/main/java/com/kunfei/bookshelf/help/ChangeSourceHelp.java index 228b4f888b..872c16d0df 100644 --- a/app/src/main/java/com/kunfei/bookshelf/help/ChangeSourceHelp.java +++ b/app/src/main/java/com/kunfei/bookshelf/help/ChangeSourceHelp.java @@ -1,5 +1,6 @@ package com.kunfei.bookshelf.help; +import com.kunfei.bookshelf.DbHelper; import com.kunfei.bookshelf.base.observer.MyObserver; import com.kunfei.bookshelf.bean.BookChapterBean; import com.kunfei.bookshelf.bean.BookShelfBean; @@ -127,6 +128,7 @@ private static Observable>> sav newBook.setGroup(oldBook.getGroup()); BookshelfHelp.removeFromBookShelf(oldBook); BookshelfHelp.saveBookToShelf(newBook); + DbHelper.getDaoSession().getBookChapterBeanDao().insertOrReplaceInTx(chapterBeanList); e.onNext(new TwoDataBean<>(newBook, chapterBeanList)); e.onComplete(); });