add better handling for the main screens scrollbar
This commit is contained in:
parent
e116c5baa8
commit
2e8d96b941
|
@ -86,6 +86,8 @@ class MainActivity : SimpleActivity() {
|
||||||
updateTextColors(main_coordinator)
|
updateTextColors(main_coordinator)
|
||||||
no_conversations_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
no_conversations_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
||||||
no_conversations_placeholder_2.underlineText()
|
no_conversations_placeholder_2.underlineText()
|
||||||
|
conversations_fastscroller.updatePrimaryColor()
|
||||||
|
conversations_fastscroller.updateBubbleColors()
|
||||||
checkShortcut()
|
checkShortcut()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,6 +233,11 @@ class MainActivity : SimpleActivity() {
|
||||||
}.apply {
|
}.apply {
|
||||||
conversations_list.adapter = this
|
conversations_list.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
conversations_fastscroller.setViews(conversations_list) {
|
||||||
|
val listItem = (conversations_list.adapter as? ConversationsAdapter)?.conversations?.getOrNull(it)
|
||||||
|
conversations_fastscroller.updateBubbleText(listItem?.title ?: "")
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
(currAdapter as ConversationsAdapter).updateConversations(conversations)
|
(currAdapter as ConversationsAdapter).updateConversations(conversations)
|
||||||
|
|
Loading…
Reference in New Issue