update the Conversations title only if not empty

This commit is contained in:
tibbi 2020-04-13 23:33:16 +02:00
parent e828381c9a
commit b231f2c644
1 changed files with 5 additions and 1 deletions

View File

@ -110,7 +110,11 @@ class ThreadActivity : SimpleActivity() {
setupAdapter()
runOnUiThread {
supportActionBar?.title = participants.getThreadTitle()
val threadTitle = participants.getThreadTitle()
if (threadTitle.isNotEmpty()) {
supportActionBar?.title = participants.getThreadTitle()
}
if (messages.isEmpty()) {
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
thread_type_message.requestFocus()