This commit is contained in:
kunfei
2022-02-10 21:00:37 +08:00
parent a6418eaf9f
commit 2bd06e3a23
3 changed files with 7 additions and 1 deletions

View File

@@ -121,6 +121,10 @@ class ChapterListFragment : VMBaseFragment<TocViewModel>(R.layout.fragment_chapt
}
}
override fun clearDisplayTitle() {
adapter.displayTileMap.clear()
}
override val scope: CoroutineScope
get() = this

View File

@@ -90,7 +90,7 @@ class TocActivity : VMBaseActivity<ActivityChapterListBinding, TocViewModel>() {
}
R.id.menu_use_replace -> {
AppConfig.tocUiUseReplace = !item.isChecked
viewModel.chapterCallBack?.upChapterList(null)
viewModel.chapterCallBack?.clearDisplayTitle()
}
R.id.menu_log -> showDialogFragment<AppLogDialog>()
}

View File

@@ -48,6 +48,8 @@ class TocViewModel(application: Application) : BaseViewModel(application) {
interface ChapterListCallBack {
fun upChapterList(searchKey: String?)
fun clearDisplayTitle()
}
interface BookmarkCallBack {