change string concetenate with standard coding
This commit is contained in:
parent
818246d303
commit
32f37c6b00
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue