Skip to content

Conversation

vbh
Copy link
Contributor

@vbh vbh commented Mar 21, 2022

While searching for contacts in the search bar, characters keep getting repeated.

rec.mp4

@sonalder-darlene
Copy link

I hope this will soon being review and merged, this bug makes the app almost unusable

@vbh vbh force-pushed the fix-repetitive-text branch from 3f7d6fc to 103f5e9 Compare March 25, 2022 10:57
Copy link
Collaborator

@roeiedri roeiedri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The input filter you changed always return either null or an empty string (" ")
If thats not a mistake pls explain :)

@vbh
Copy link
Contributor Author

vbh commented Mar 26, 2022

Every time a character is inserted InputFilter is called and if the character is not acceptable then that it can be replaced, which in our case is empty string because if the character is anything apart from letters or digits then it should be skipped or else keep the original text by returning null

From documentation.

Return the CharSequence that you would like to have placed there instead, including an empty string if appropriate, or null to accept the original replacement.

@roeiedri
Copy link
Collaborator

Ohhhhhh ok so i was wrong with the way i was using the Input Filter.
Thanks!

@roeiedri roeiedri merged commit 5c28de0 into Chooloo:master Apr 6, 2022
@roeiedri
Copy link
Collaborator

roeiedri commented Apr 6, 2022

Thanks!

@vbh vbh deleted the fix-repetitive-text branch April 7, 2022 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants