added account title to chat(s) and calls pages

This commit is contained in:
Juha Heinanen
2018-11-19 05:56:27 +02:00
parent 2a1cb59568
commit bfc0b2445f
6 changed files with 43 additions and 7 deletions
@@ -57,9 +57,12 @@ class ChatActivity : AppCompatActivity() {
}
setTitle("Chat with $chatPeer")
chatMessages = uaPeerMessages(aor, peerUri)
val headerView = findViewById(R.id.account) as TextView
val headerText = "Account ${aor.substringAfter(":")}"
headerView.text = headerText
val listView = findViewById(R.id.messages) as ListView
chatMessages = uaPeerMessages(aor, peerUri)
mlAdapter = MessageListAdapter(this, chatMessages)
listView.adapter = mlAdapter
listView.isLongClickable = true