finish the action mode at changing the input at dialpad
This commit is contained in:
parent
dac59dabcf
commit
8ae60448f4
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ class DialpadActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun dialpadValueChanged(text: String) {
|
private fun dialpadValueChanged(text: String) {
|
||||||
|
(dialpad_list.adapter as? ContactsAdapter)?.finishActMode()
|
||||||
val numericOnly = text.replace(PHONE_NUMBER_PATTERN.toRegex(), "")
|
val numericOnly = text.replace(PHONE_NUMBER_PATTERN.toRegex(), "")
|
||||||
val filtered = contacts.filter {
|
val filtered = contacts.filter {
|
||||||
it.phoneNumbers.any { (text.isNotEmpty() && it.value.contains(text)) || (numericOnly.isNotEmpty() && it.value.contains(numericOnly)) } ||
|
it.phoneNumbers.any { (text.isNotEmpty() && it.value.contains(text)) || (numericOnly.isNotEmpty() && it.value.contains(numericOnly)) } ||
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue