mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
get a list of contacts belonging to the clicked group
This commit is contained in:
parent
20f9e7ea4d
commit
45c0edc177
@ -38,8 +38,10 @@ class GroupsFragment(context: Context, attributeSet: AttributeSet) : Coordinator
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun primaryColorChanged(color: Int) {
|
override fun primaryColorChanged(color: Int) {
|
||||||
groups_fastscroller.updatePrimaryColor()
|
groups_fastscroller.apply {
|
||||||
groups_fastscroller.updateBubblePrimaryColor()
|
updatePrimaryColor()
|
||||||
|
updateBubblePrimaryColor()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun refreshContacts(contacts: ArrayList<Contact>) {
|
override fun refreshContacts(contacts: ArrayList<Contact>) {
|
||||||
@ -61,7 +63,8 @@ class GroupsFragment(context: Context, attributeSet: AttributeSet) : Coordinator
|
|||||||
val currAdapter = groups_list.adapter
|
val currAdapter = groups_list.adapter
|
||||||
if (currAdapter == null) {
|
if (currAdapter == null) {
|
||||||
GroupsAdapter(activity as SimpleActivity, storedGroups, groups_list, groups_fastscroller) {
|
GroupsAdapter(activity as SimpleActivity, storedGroups, groups_list, groups_fastscroller) {
|
||||||
|
val group = it as Group
|
||||||
|
val groupContacts = contacts.filter { it.groups.map { it.id }.contains(group.id) }
|
||||||
}.apply {
|
}.apply {
|
||||||
setupDragListener(true)
|
setupDragListener(true)
|
||||||
addVerticalDividers(true)
|
addVerticalDividers(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user