mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 12:00:39 +01:00
finish the action mode at changing the input at dialpad
This commit is contained in:
parent
dac59dabcf
commit
8ae60448f4
@ -96,6 +96,7 @@ class DialpadActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun dialpadValueChanged(text: String) {
|
||||
(dialpad_list.adapter as? ContactsAdapter)?.finishActMode()
|
||||
val numericOnly = text.replace(PHONE_NUMBER_PATTERN.toRegex(), "")
|
||||
val filtered = contacts.filter {
|
||||
it.phoneNumbers.any { (text.isNotEmpty() && it.value.contains(text)) || (numericOnly.isNotEmpty() && it.value.contains(numericOnly)) } ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user