Skip to content

Commit

Permalink
书源规则id不在只能获取一个
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Jun 23, 2019
1 parent 968a1c7 commit bd73e48
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -127,6 +128,7 @@ private static Observable<TwoDataBean<BookShelfBean, List<BookChapterBean>>> sav
newBook.setGroup(oldBook.getGroup());
BookshelfHelp.removeFromBookShelf(oldBook);
BookshelfHelp.saveBookToShelf(newBook);
DbHelper.getDaoSession().getBookChapterBeanDao().insertOrReplaceInTx(chapterBeanList);
e.onNext(new TwoDataBean<>(newBook, chapterBeanList));
e.onComplete();
});
Expand Down

0 comments on commit bd73e48

Please sign in to comment.