update the Conversations title only if not empty
This commit is contained in:
parent
e828381c9a
commit
b231f2c644
|
@ -110,7 +110,11 @@ class ThreadActivity : SimpleActivity() {
|
||||||
|
|
||||||
setupAdapter()
|
setupAdapter()
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
supportActionBar?.title = participants.getThreadTitle()
|
val threadTitle = participants.getThreadTitle()
|
||||||
|
if (threadTitle.isNotEmpty()) {
|
||||||
|
supportActionBar?.title = participants.getThreadTitle()
|
||||||
|
}
|
||||||
|
|
||||||
if (messages.isEmpty()) {
|
if (messages.isEmpty()) {
|
||||||
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
|
||||||
thread_type_message.requestFocus()
|
thread_type_message.requestFocus()
|
||||||
|
|
Loading…
Reference in New Issue