mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-02-17 04:00:35 +01:00
show a Loading Messages placeholder text at first launch
This commit is contained in:
parent
e7d8f703da
commit
1a8e8f9cf4
@ -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…
x
Reference in New Issue
Block a user