-
Notifications
You must be signed in to change notification settings - Fork 70
✨ Append the Recent Searches history #789
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
base: master
Are you sure you want to change the base?
Conversation
|
That's cool:) |
| private var _binding: FragmentSearchBinding? = null | ||
| private val binding get() = _binding!! | ||
| private val viewModel: SearchPagerViewModel by viewModels() | ||
| private var recentSearchesFragment: RecentSearchesFragment? = null |
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 think it would be nicer to have a recyclerview adapter on each search fragment that contains the recent search items so that you could just swap the adapter to show recent searches instead of having to deal with this fragment here
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.
on each search fragment
I don't understand what you mean there. Are you referring to StreamSearchFragment, VideoSearchFragment, etc.?
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
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.
But the RecentSearches would only need to be related to the SearchPager. I don’t see what connection it would have with the fragments of the results.
I think we are thinking about different implementations.
Screen_recording_20251107_064804.mp4
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.
the recyclerview could show the recent searches instead of the search results when the search text box is empty
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 think I understand what you're saying: it's about placing the recent search items in the same RecyclerView and not creating a new fragment, right?
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 leave the request in case we want to discuss whether to add the option or not.