|
|
@ -88,6 +88,8 @@ class ChangeSourceDialog : BaseDialogFragment(), |
|
|
|
tool_bar.setOnMenuItemClickListener(this) |
|
|
|
tool_bar.setOnMenuItemClickListener(this) |
|
|
|
tool_bar.menu.findItem(R.id.menu_load_toc)?.isChecked = |
|
|
|
tool_bar.menu.findItem(R.id.menu_load_toc)?.isChecked = |
|
|
|
getPrefBoolean(PreferKey.changeSourceLoadToc) |
|
|
|
getPrefBoolean(PreferKey.changeSourceLoadToc) |
|
|
|
|
|
|
|
tool_bar.menu.findItem(R.id.menu_load_info)?.isChecked = |
|
|
|
|
|
|
|
getPrefBoolean(PreferKey.changeSourceLoadInfo) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun initRecyclerView() { |
|
|
|
private fun initRecyclerView() { |
|
|
@ -159,6 +161,10 @@ class ChangeSourceDialog : BaseDialogFragment(), |
|
|
|
putPrefBoolean(PreferKey.changeSourceLoadToc, !item.isChecked) |
|
|
|
putPrefBoolean(PreferKey.changeSourceLoadToc, !item.isChecked) |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
item.isChecked = !item.isChecked |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
R.id.menu_load_info -> { |
|
|
|
|
|
|
|
putPrefBoolean(PreferKey.changeSourceLoadInfo, !item.isChecked) |
|
|
|
|
|
|
|
item.isChecked = !item.isChecked |
|
|
|
|
|
|
|
} |
|
|
|
R.id.menu_stop -> viewModel.stopSearch() |
|
|
|
R.id.menu_stop -> viewModel.stopSearch() |
|
|
|
} |
|
|
|
} |
|
|
|
return false |
|
|
|
return false |
|
|
|