- Removed unnecessary string conversions.
This commit is contained in:
@@ -14,8 +14,7 @@ class AboutActivity : AppCompatActivity() {
|
|||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_about)
|
setContentView(R.layout.activity_about)
|
||||||
val aboutText = findViewById(R.id.aboutText) as TextView
|
val aboutText = findViewById(R.id.aboutText) as TextView
|
||||||
aboutText.text = String.format(getText(R.string.about_text).toString(),
|
aboutText.text = String.format(getString(R.string.about_text), BuildConfig.VERSION_NAME)
|
||||||
BuildConfig.VERSION_NAME)
|
|
||||||
aboutText.setTextColor(Color.BLACK)
|
aboutText.setTextColor(Color.BLACK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -430,7 +430,7 @@ class AccountActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
findViewById(R.id.DefaultTitle) as TextView -> {
|
findViewById(R.id.DefaultTitle) as TextView -> {
|
||||||
Utils.alertView(this, getString(R.string.default_account),
|
Utils.alertView(this, getString(R.string.default_account),
|
||||||
getText(R.string.default_account_help).toString())
|
getString(R.string.default_account_help))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class ChatActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
val builder = AlertDialog.Builder(this@ChatActivity, R.style.Theme_AppCompat)
|
val builder = AlertDialog.Builder(this@ChatActivity, R.style.Theme_AppCompat)
|
||||||
if (ContactsActivity.contactName(peerUri) == peerUri)
|
if (ContactsActivity.contactName(peerUri) == peerUri)
|
||||||
builder.setMessage(String.format(getText(R.string.long_message_question).toString(),
|
builder.setMessage(String.format(getString(R.string.long_message_question),
|
||||||
chatPeer))
|
chatPeer))
|
||||||
.setPositiveButton(getString(R.string.cancel), dialogClickListener)
|
.setPositiveButton(getString(R.string.cancel), dialogClickListener)
|
||||||
.setNegativeButton(getString(R.string.delete_message), dialogClickListener)
|
.setNegativeButton(getString(R.string.delete_message), dialogClickListener)
|
||||||
|
|||||||
@@ -602,8 +602,8 @@ class MainActivity : AppCompatActivity() {
|
|||||||
"registering failed" -> {
|
"registering failed" -> {
|
||||||
uaAdapter.notifyDataSetChanged()
|
uaAdapter.notifyDataSetChanged()
|
||||||
Toast.makeText(applicationContext,
|
Toast.makeText(applicationContext,
|
||||||
String.format(getText(R.string.registering_failed).toString(),
|
String.format(getString(R.string.registering_failed), aor) +
|
||||||
aor) + ": ${ev[1]}",
|
": ${ev[1]}",
|
||||||
Toast.LENGTH_LONG).show()
|
Toast.LENGTH_LONG).show()
|
||||||
}
|
}
|
||||||
"call ringing" -> {
|
"call ringing" -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user