mirror of
https://github.com/FossifyOrg/Messages.git
synced 2026-06-20 06:19:55 -04:00
update the Conversations title only if not empty
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user