Added titles

This commit is contained in:
Viktor De Pasquale 2019-10-17 19:26:25 +02:00
parent e0e27774ad
commit 0f4326151f
3 changed files with 18 additions and 0 deletions

View File

@ -10,4 +10,10 @@ class LogFragment : CompatFragment<LogViewModel, FragmentLogMd2Binding>() {
override val layoutRes = R.layout.fragment_log_md2
override val viewModel by viewModel<LogViewModel>()
override fun onStart() {
super.onStart()
activity.title = resources.getString(R.string.section_log)
}
}

View File

@ -10,4 +10,10 @@ class ModuleFragment : CompatFragment<ModuleViewModel, FragmentModuleMd2Binding>
override val layoutRes = R.layout.fragment_module_md2
override val viewModel by viewModel<ModuleViewModel>()
override fun onStart() {
super.onStart()
activity.title = resources.getString(R.string.section_modules)
}
}

View File

@ -10,4 +10,10 @@ class SuperuserFragment : CompatFragment<SuperuserViewModel, FragmentSuperuserMd
override val layoutRes = R.layout.fragment_superuser_md2
override val viewModel by viewModel<SuperuserViewModel>()
override fun onStart() {
super.onStart()
activity.title = resources.getString(R.string.section_superuser)
}
}