- added version name to About text

This commit is contained in:
Juha Heinanen
2018-12-17 14:42:22 +02:00
parent 250f968861
commit 8632df008a
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,8 @@ class AboutActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_about)
val aboutText = findViewById(R.id.aboutText) as TextView
aboutText.text = getText(R.string.aboutText)
aboutText.text = String.format(getText(R.string.aboutText).toString(),
BuildConfig.VERSION_NAME)
aboutText.setTextColor(Color.BLACK)
}

View File

@ -4,6 +4,7 @@
<string name="aboutText">
<b>Baresip based Android application</b>\n\n
Juha Heinanen jh@tutpro.com\n\n
Version %1$s\n\n
<b>Usage Hints</b>\n\n
- check that config default values meet your needs (click item titles for help)\n
- then create one or more accounts (again click item titles for help)\n