Skip to content

Conversation

@burikoni
Copy link

@burikoni burikoni commented Nov 4, 2025

I leave the request in case we want to discuss whether to add the option or not.

Screenshot_20251103_210040 Screenshot_20251103_210050

@HiFIi
Copy link

HiFIi commented Nov 5, 2025

That's cool:)

private var _binding: FragmentSearchBinding? = null
private val binding get() = _binding!!
private val viewModel: SearchPagerViewModel by viewModels()
private var recentSearchesFragment: RecentSearchesFragment? = null
Copy link
Owner

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

Copy link
Author

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.?

Copy link
Owner

Choose a reason for hiding this comment

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

yes

Copy link
Author

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

Copy link
Owner

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

Copy link
Author

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?

Copy link
Owner

Choose a reason for hiding this comment

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

yes

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