Merge string resources

This commit is contained in:
topjohnwu
2020-01-23 01:40:36 +08:00
parent 345c3ef15e
commit 2291be5d26
50 changed files with 246 additions and 279 deletions
@@ -49,7 +49,7 @@ class ModuleFragment : CompatFragment<ModuleViewModel, FragmentModuleMd2Binding>
override fun onStart() {
super.onStart()
setHasOptionsMenu(true)
activity.title = resources.getString(R.string.section_modules)
activity.title = resources.getString(R.string.modules)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
@@ -71,7 +71,7 @@ class ModuleViewModel(
it.bindExtra(BR.viewModel, this)
}
private val itemNoneInstalled = TextItem(R.string.module_install_none)
private val itemNoneInstalled = TextItem(R.string.no_modules_found)
private val itemNoneUpdatable = TextItem(R.string.module_update_none)
private val itemsInstalledHelpers = ObservableArrayList<TextItem>().also {
@@ -116,7 +116,7 @@ class ModuleViewModel(
).also { it.hasButton = false }
private val sectionActive = SectionTitle(
R.string.module_section_installed,
R.string.installed,
R.string.reboot,
R.drawable.ic_restart
).also { it.hasButton = false }