-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Implement recent searches #670
Conversation
This CL adds an UI skeleton of the search feature including: - The search navigation icon in the NiaTopAppBar - The text field to enter the search query - Almost empty ViewModel Bug: 216019540 Change-Id: Ic2355a7634e5c5c60f72276741175d9e637db5eb
Change-Id: I70a0732f67617a96b6dd20eccbc6c02a9dafdabd
Change-Id: Id9efb259bd8ac6a83af19fb370869aa19f78831d
- Empty search screen if the search result is empty - Topics contents that reuses the TopicsTabContent for InterestsScreen - Updates contents that reuses the newsFeed for ForYouScreen TODO: Needs to add RecentSearch Change-Id: I19179336a60b5165e8b59508fb03dd8f55a16f96
Change-Id: I5b87f89d824961cb9aec039281e784d6dec0716b
Change-Id: I103c903c936137c41d7d11be0731438d9ee557d9
Change-Id: If336af8fa5c58d6401dfd7a561a1a340ff388175
Change-Id: I94aefab87ff9e05819800c516a0f2979f5f89d76
#668 should be merged first because this PR is created on top of it. |
.../search/src/main/java/com/google/samples/apps/nowinandroid/feature/search/SearchViewModel.kt
Outdated
Show resolved
Hide resolved
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.
you can use .catch in flow
Addressed. Thanks. |
Note to reviewers, |
- Add Repository and Dao for recent searches - Add recent searches body in the Search UI - Add relevant tests
8ae3745
to
63cd890
Compare
Closing this in favor of #675 since I had to resolve a lot of conflicts with this PR. |
Screenshots: