mancj / mancj/MaterialSearchBar
Using in Fragment does not open second time the search field
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2k
- Forks
- 324
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
first of all thanks for the great work.
I trying to you use your library in a fragment and after i clicked the search icon once and disabledSearch by clicking on back arrow a second click on the search icon is not opening the search field. So i debugged this and found that when search bar is disabling after first time the search icon has the id of mt_clear button and the click listener jumps right away into the case for mt_clear button.
I really would appreciate if you can fix this. If i am doing anything wrong please let me know.
Best wishes
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported Fragment flow: open the search field, disable it with the back arrow, then tap the search icon again. Inspect the search bar's click handling around the mt_clear button id and verify that the second search-icon click opens the field instead of entering the clear-button case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100