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

@@ -56,7 +56,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:3bbf37c7f9'
implementation 'com.github.SimpleMobileTools:Simple-Commons:df457fe86a'
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.klinkerapps:android-smsmms:5.2.6'
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'

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)