mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show the appropriate bubble text at fastscrolling Recents
This commit is contained in:
@ -30,7 +30,10 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
|
|||||||
fragment_list.adapter = this
|
fragment_list.adapter = this
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment_fastscroller.setViews(fragment_list) {}
|
fragment_fastscroller.setViews(fragment_list) {
|
||||||
|
val item = (fragment_list.adapter as RecentCallsAdapter).recentCalls.getOrNull(it)
|
||||||
|
fragment_fastscroller.updateBubbleText(item?.name ?: item?.number ?: "")
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
(currAdapter as RecentCallsAdapter).updateItems(recentCalls)
|
(currAdapter as RecentCallsAdapter).updateItems(recentCalls)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user