Use onClick listeners for all activity titles
This commit is contained in:
@@ -161,6 +161,11 @@ class ContactActivity : AppCompatActivity() {
|
||||
|
||||
}
|
||||
|
||||
binding.AndroidTitle.setOnClickListener {
|
||||
Utils.alertView(this, getString(R.string.android),
|
||||
getString(R.string.android_contact_help))
|
||||
}
|
||||
|
||||
Utils.addActivity("contact,$newContact,$uOrI")
|
||||
|
||||
}
|
||||
@@ -319,13 +324,6 @@ class ContactActivity : AppCompatActivity() {
|
||||
|
||||
}
|
||||
|
||||
fun onClick(v: View) {
|
||||
when (v) {
|
||||
binding.AndroidTitle ->
|
||||
Utils.alertView(this, getString(R.string.android), getString(R.string.android_contact_help))
|
||||
}
|
||||
}
|
||||
|
||||
private fun showTextAvatar(name: String, color: Int) {
|
||||
textAvatarView.visibility = View.VISIBLE
|
||||
cardAvatarView.visibility = View.GONE
|
||||
|
||||
Reference in New Issue
Block a user