show a Loading Messages placeholder text at first launch
This commit is contained in:
parent
e7d8f703da
commit
1a8e8f9cf4
1 changed files with 5 additions and 0 deletions
|
|
@ -222,6 +222,11 @@ class MainActivity : SimpleActivity() {
|
||||||
no_conversations_placeholder.beVisibleIf(!hasConversations)
|
no_conversations_placeholder.beVisibleIf(!hasConversations)
|
||||||
no_conversations_placeholder_2.beVisibleIf(!hasConversations)
|
no_conversations_placeholder_2.beVisibleIf(!hasConversations)
|
||||||
|
|
||||||
|
if (!hasConversations && config.appRunCount == 1) {
|
||||||
|
no_conversations_placeholder.text = getString(R.string.loading_messages)
|
||||||
|
no_conversations_placeholder_2.beGone()
|
||||||
|
}
|
||||||
|
|
||||||
val currAdapter = conversations_list.adapter
|
val currAdapter = conversations_list.adapter
|
||||||
if (currAdapter == null) {
|
if (currAdapter == null) {
|
||||||
ConversationsAdapter(this, conversations, conversations_list, conversations_fastscroller) {
|
ConversationsAdapter(this, conversations, conversations_list, conversations_fastscroller) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue