-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #139 ignore white space character for search with dialpad numbers #214
base: master
Are you sure you want to change the base?
Conversation
It works, but I'm thinking it would be better to just ignore whitespaces while searching with numbers. Google Phone works this way, so I assume people are used to it. @naveensingh What do you think? |
I think using 1 as a substitute for whitespace is quite arbitrary and no one would expect it (even with the "␣").
Agreed. The search itself should be more 'intelligent' and display any relevant results. |
Got your point. |
@@ -368,7 +369,7 @@ class ContactsAdapter( | |||
if (name.contains(textToHighlight, true)) { | |||
name.highlightTextPart(textToHighlight, properPrimaryColor) | |||
} else { | |||
name.highlightTextFromNumbers(textToHighlight, properPrimaryColor) | |||
name.highlightTextFromNumbers(textToHighlight.replace('1', ' '), properPrimaryColor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this change is no longer needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I just messed up the commits.
What is it?
Description of the changes in your PR
When searching contacts using the dialpad, 1 is handled as space character.
Also the white space symbol |_| is displayed below the 1 on the dialpad.
Fixes the following issue(s)
Acknowledgement