From bd73e48ed7f30e4791956a1de859835a9bf8d1cb Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 23 Jun 2019 17:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=A6=E6=BA=90=E8=A7=84=E5=88=99id=E4=B8=8D?= =?UTF-8?q?=E5=9C=A8=E5=8F=AA=E8=83=BD=E8=8E=B7=E5=8F=96=E4=B8=80=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/kunfei/bookshelf/help/ChangeSourceHelp.java | 2 ++ 1 file changed, 2 insertions(+) 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(); });