Skip to content

Commit

Permalink
Merge pull request #548 from tumuyan/local
Browse files Browse the repository at this point in the history
修复书签列表删除书签时UI不实时刷新的异常
  • Loading branch information
gedoor authored Oct 24, 2020
2 parents a1caef2 + 0c7b21c commit 8abc370
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,13 @@ public void saveBookmark(BookmarkBean bookmarkBean) {

@Override
public void delBookmark(BookmarkBean bookmarkBean) {
// Log.d("delBookmark","before="+bookmarkBeanList.size());
DbHelper.getDaoSession().getBookmarkBeanDao().delete(bookmarkBean);
adapter.notifyDataSetChanged();
// Log.d("delBookmark","after="+bookmarkBeanList.size());
bookmarkBeanList = BookshelfHelp.getBookmarkList(bookShelf.getBookInfoBean().getName());
// Log.d("delBookmark","fine="+bookmarkBeanList.size());
adapter.setAllBookmark(bookmarkBeanList);
// adapter.notifyDataSetChanged();
}

@Override
Expand Down

0 comments on commit 8abc370

Please sign in to comment.