open the keyboard at new conversation, if it is empty
This commit is contained in:
parent
ff05ec1623
commit
078e8c4f14
2 changed files with 9 additions and 7 deletions
|
|
@ -136,9 +136,10 @@ class MainActivity : SimpleActivity() {
|
|||
ensureBackgroundThread {
|
||||
val conversations = getConversations()
|
||||
runOnUiThread {
|
||||
conversations_list.beVisibleIf(conversations.isNotEmpty())
|
||||
no_conversations_placeholder.beVisibleIf(conversations.isEmpty())
|
||||
no_conversations_placeholder_2.beVisibleIf(conversations.isEmpty())
|
||||
val hasConversations = conversations.isNotEmpty()
|
||||
conversations_list.beVisibleIf(hasConversations)
|
||||
no_conversations_placeholder.beVisibleIf(!hasConversations)
|
||||
no_conversations_placeholder_2.beVisibleIf(!hasConversations)
|
||||
|
||||
ConversationsAdapter(this, conversations, conversations_list, conversations_fastscroller) {
|
||||
Intent(this, ThreadActivity::class.java).apply {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue