feat: 优化代码

pull/172/head
kunfei 5 years ago
parent 5947dd7f70
commit b4bb14538c
  1. 2
      app/src/main/java/io/legado/app/ui/book/chapterlist/ChapterListFragment.kt

@ -103,7 +103,7 @@ class ChapterListFragment : VMBaseFragment<ChapterListViewModel>(R.layout.fragme
book?.bookUrl?.let { bookUrl -> book?.bookUrl?.let { bookUrl ->
if (chapter.bookUrl == bookUrl) { if (chapter.bookUrl == bookUrl) {
adapter.cacheFileNames.add(BookHelp.formatChapterName(chapter)) adapter.cacheFileNames.add(BookHelp.formatChapterName(chapter))
adapter.notifyItemRangeChanged(0, adapter.getActualItemCount(), true) adapter.notifyItemChanged(chapter.index, true)
} }
} }
} }

Loading…
Cancel
Save