change string concetenate with standard coding

This commit is contained in:
osodebailar 2020-12-18 09:05:41 +01:00
parent 818246d303
commit 32f37c6b00
2 changed files with 2 additions and 1 deletions

View file

@ -276,7 +276,7 @@ class MainActivity : NoSplashAppCompatActivity() {
private fun setPluginPreferenceMenuName() {
val plugin = (main_pager.adapter as TabPageAdapter).getPluginAt(main_pager.currentItem)
this.menu?.findItem(R.id.nav_plugin_preferences)?.title = plugin.name + ' ' + resourceHelper.gs(R.string.nav_preferences)
this.menu?.findItem(R.id.nav_plugin_preferences)?.title = resourceHelper.gs(R.string.nav_preferences_plugin, plugin.name)
}
override fun onCreateOptionsMenu(menu: Menu): Boolean {

View file

@ -31,6 +31,7 @@
<string name="treatmentssafety_maxbolus_title">Max allowed bolus [U]</string>
<string name="treatmentssafety_maxcarbs_title">Max allowed carbs [g]</string>
<string name="nav_preferences_plugin">%s Preferences</string>
<string name="nav_preferences">Preferences</string>
<string name="nav_refreshtreatments">Refresh treatments from NS</string>
<string name="nav_resetdb">Reset Databases</string>