Skip to content
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

Empty search text is added in recent searches problem fix. #1223

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

Jaehwa-Noh
Copy link
Contributor

@Jaehwa-Noh Jaehwa-Noh commented Feb 21, 2024

What I have done and why
Empty search is added in recent searches. It was unpredictable behavior. I fixed it.

• Add if statement to prevent insert empty query.
• Add blank text prevent keyboard hide and search.
• Add test code.

Fixes #1222

keyboard

Change-Id: I60083b0b9a1dcaed84d957b49c91e5163d5659d6
Change-Id: If498de05889d6d5946b1bbb1d1c10cb311bb9b52
Change-Id: I6d6e8f9fe988ca83fae484e4f2338ad6fe58b676
- Early return to do not call onSearchExplicitlyTriggered()

Change-Id: I28db284eac9059fb6f48dd718721a1fc5fdb8f7a
Copy link
Collaborator

@dturner dturner left a comment

Choose a reason for hiding this comment

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

Thanks for doing this @Jaehwa-Noh, and for reviewing @SimonMarquis. Added some suggestions for test names.

Jaehwa-Noh and others added 6 commits March 6, 2024 08:41
…droid/feature/search/SearchViewModelTest.kt


Change name to emptySearchText_isNotAddedTorecentSearches()

Co-authored-by: Don Turner <dturner@users.noreply.github.com>
Co-authored-by: Don Turner <dturner@users.noreply.github.com>
…uery()

Change-Id: I4c82b12e2c9bd4ff480e94061caf257a603e38da
Co-authored-by: Don Turner <dturner@users.noreply.github.com>
@Jaehwa-Noh Jaehwa-Noh requested a review from dturner March 6, 2024 23:33
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.

[Bug]: Empty search text is added in recent searches.
3 participants