diff --git a/app/src/main/java/io/legado/app/ui/main/myconfig/MyConfigFragment.kt b/app/src/main/java/io/legado/app/ui/main/myconfig/MyConfigFragment.kt index 042107d62..b7d27e01c 100644 --- a/app/src/main/java/io/legado/app/ui/main/myconfig/MyConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/myconfig/MyConfigFragment.kt @@ -23,11 +23,11 @@ class MyConfigFragment : Fragment(R.layout.fragment_my_config), Toolbar.OnMenuIt toolbar.inflateMenu(R.menu.my_config) toolbar.menu.setIconColor(App.INSTANCE) toolbar.setOnMenuItemClickListener(this) - tv_theme_config.setOnClickListener(View.OnClickListener { + tv_theme_config.setOnClickListener { val intent = Intent(context, ConfigActivity::class.java) intent.putExtra("configType", ConfigViewModel.TYPE_THEME_CONFIG) startActivity(intent) - }) + } } override fun onMenuItemClick(item: MenuItem?): Boolean {