adding some spaces
This commit is contained in:
parent
0f12365fc5
commit
cc06bfa7f3
1 changed files with 2 additions and 2 deletions
|
|
@ -228,8 +228,8 @@ class MainActivity : SimpleActivity() {
|
||||||
private fun setupConversations(conversations: ArrayList<Conversation>) {
|
private fun setupConversations(conversations: ArrayList<Conversation>) {
|
||||||
val hasConversations = conversations.isNotEmpty()
|
val hasConversations = conversations.isNotEmpty()
|
||||||
val sortedConversations = conversations.sortedWith(
|
val sortedConversations = conversations.sortedWith(
|
||||||
compareByDescending<Conversation>{ config.pinnedConversations.contains(it.threadId.toString()) }
|
compareByDescending<Conversation> { config.pinnedConversations.contains(it.threadId.toString()) }
|
||||||
.thenByDescending{ it.date }
|
.thenByDescending { it.date }
|
||||||
).toMutableList() as ArrayList<Conversation>
|
).toMutableList() as ArrayList<Conversation>
|
||||||
conversations_list.beVisibleIf(hasConversations)
|
conversations_list.beVisibleIf(hasConversations)
|
||||||
no_conversations_placeholder.beVisibleIf(!hasConversations)
|
no_conversations_placeholder.beVisibleIf(!hasConversations)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue