mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-26 16:18:25 +01:00
fix #28, make the contacts beginning with the search string appear first
This commit is contained in:
parent
2b636f7240
commit
a1a2573047
@ -163,6 +163,11 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
||||
it.phoneNumbers.any { it.value.contains(text, true) } ||
|
||||
it.emails.any { it.value.contains(text, true) }
|
||||
} as ArrayList
|
||||
|
||||
Contact.sorting = config.sorting
|
||||
filtered.sort()
|
||||
filtered.sortBy { !it.getFullName(startNameWithSurname).startsWith(text, true) }
|
||||
|
||||
updateItems(filtered)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user