pull/32/head
GKF 6 years ago
parent d64a7cafb8
commit 8ec1a848c8
  1. 4
      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.inflateMenu(R.menu.my_config)
toolbar.menu.setIconColor(App.INSTANCE) toolbar.menu.setIconColor(App.INSTANCE)
toolbar.setOnMenuItemClickListener(this) toolbar.setOnMenuItemClickListener(this)
tv_theme_config.setOnClickListener(View.OnClickListener { tv_theme_config.setOnClickListener {
val intent = Intent(context, ConfigActivity::class.java) val intent = Intent(context, ConfigActivity::class.java)
intent.putExtra("configType", ConfigViewModel.TYPE_THEME_CONFIG) intent.putExtra("configType", ConfigViewModel.TYPE_THEME_CONFIG)
startActivity(intent) startActivity(intent)
}) }
} }
override fun onMenuItemClick(item: MenuItem?): Boolean { override fun onMenuItemClick(item: MenuItem?): Boolean {

Loading…
Cancel
Save