show a Loading Messages placeholder text at first launch

This commit is contained in:
tibbi 2020-12-30 16:06:45 +01:00
parent e7d8f703da
commit 1a8e8f9cf4
1 changed files with 5 additions and 0 deletions

View File

@ -222,6 +222,11 @@ class MainActivity : SimpleActivity() {
no_conversations_placeholder.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
if (currAdapter == null) {
ConversationsAdapter(this, conversations, conversations_list, conversations_fastscroller) {