From b4bb14538c720d85536bd03bef0f7d4996f5c57c Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 11 Mar 2020 13:27:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/chapterlist/ChapterListFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/chapterlist/ChapterListFragment.kt b/app/src/main/java/io/legado/app/ui/book/chapterlist/ChapterListFragment.kt index 9e9b5c813..51c8b8096 100644 --- a/app/src/main/java/io/legado/app/ui/book/chapterlist/ChapterListFragment.kt +++ b/app/src/main/java/io/legado/app/ui/book/chapterlist/ChapterListFragment.kt @@ -103,7 +103,7 @@ class ChapterListFragment : VMBaseFragment(R.layout.fragme book?.bookUrl?.let { bookUrl -> if (chapter.bookUrl == bookUrl) { adapter.cacheFileNames.add(BookHelp.formatChapterName(chapter)) - adapter.notifyItemRangeChanged(0, adapter.getActualItemCount(), true) + adapter.notifyItemChanged(chapter.index, true) } } }