hide the proper view if no conversations are found

This commit is contained in:
tibbi 2021-11-16 15:48:18 +01:00
parent ea05105ee6
commit 4157f758f9
2 changed files with 3 additions and 2 deletions

View file

@ -251,7 +251,8 @@ class MainActivity : SimpleActivity() {
compareByDescending<Conversation> { config.pinnedConversations.contains(it.threadId.toString()) }
.thenByDescending { it.date }
).toMutableList() as ArrayList<Conversation>
conversations_list.beVisibleIf(hasConversations)
conversations_fastscroller.beVisibleIf(hasConversations)
no_conversations_placeholder.beGoneIf(hasConversations)
no_conversations_placeholder_2.beGoneIf(hasConversations)