Update MainActivity.kt

This commit is contained in:
Tibor Kaputa 2023-02-01 08:35:40 +01:00 committed by GitHub
parent b45e6990d7
commit 7429a0c9e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -357,17 +357,17 @@ class MainActivity : SimpleActivity() {
if (cached && config.appRunCount == 1) {
// there are no cached conversations on the first run so we show the loading placeholder and progress until we are done loading from telephony
showOrHideProgress(show = conversations.isEmpty())
showOrHideProgress(conversations.isEmpty())
} else {
showOrHideProgress(show = false)
showOrHidePlaceholder(show = conversations.isEmpty())
showOrHideProgress(false)
showOrHidePlaceholder(conversations.isEmpty())
}
try {
getOrCreateConversationsAdapter().apply {
updateConversations(sortedConversations) {
if (!cached) {
showOrHidePlaceholder(show = currentList.isEmpty())
showOrHidePlaceholder(currentList.isEmpty())
}
}
}