|
|
@ -83,6 +83,7 @@ class TocActivity : VMBaseActivity<ActivityChapterListBinding, TocViewModel>() { |
|
|
|
override fun onCompatOptionsItemSelected(item: MenuItem): Boolean { |
|
|
|
override fun onCompatOptionsItemSelected(item: MenuItem): Boolean { |
|
|
|
when (item.itemId) { |
|
|
|
when (item.itemId) { |
|
|
|
R.id.menu_reverse_toc -> viewModel.reverseToc { |
|
|
|
R.id.menu_reverse_toc -> viewModel.reverseToc { |
|
|
|
|
|
|
|
viewModel.chapterListCallBack?.clearDisplayTitle() |
|
|
|
viewModel.chapterListCallBack?.upChapterList(searchView?.query?.toString()) |
|
|
|
viewModel.chapterListCallBack?.upChapterList(searchView?.query?.toString()) |
|
|
|
setResult(RESULT_OK, Intent().apply { |
|
|
|
setResult(RESULT_OK, Intent().apply { |
|
|
|
putExtra("index", it.durChapterIndex) |
|
|
|
putExtra("index", it.durChapterIndex) |
|
|
|