From f708657ce5187e04293a4ffa6f623df09c935831 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 12 Feb 2020 19:47:57 +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 --- .../java/io/legado/app/ui/chapterlist/ChapterListFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/chapterlist/ChapterListFragment.kt b/app/src/main/java/io/legado/app/ui/chapterlist/ChapterListFragment.kt index 5dda2fd94..964862e0b 100644 --- a/app/src/main/java/io/legado/app/ui/chapterlist/ChapterListFragment.kt +++ b/app/src/main/java/io/legado/app/ui/chapterlist/ChapterListFragment.kt @@ -74,7 +74,7 @@ class ChapterListFragment : VMBaseFragment(R.layout.fragme durChapterIndex = it.durChapterIndex tv_current_chapter_info.text = it.durChapterTitle mLayoutManager.scrollToPositionWithOffset(durChapterIndex, 0) - initCatchFileNames(it) + initCacheFileNames(it) } } } @@ -88,7 +88,7 @@ class ChapterListFragment : VMBaseFragment(R.layout.fragme }) } - private fun initCatchFileNames(book: Book) { + private fun initCacheFileNames(book: Book) { launch(IO) { adapter.cacheFileNames.addAll(BookHelp.getChapterFiles(book)) withContext(Main) {