|
|
@ -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 { |
|
|
|