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

Introduce search history feature #187

Merged
merged 6 commits into from
May 17, 2024
Merged

Conversation

uragiristereo
Copy link
Contributor

image

Summary

  • Using the Room library to store the search history locally into the device.
  • Every time the search query is being performed, it will also save the keyword and the time into the database. If the keyword is already saved inside the database, it will simply update the time.
  • Maximum of 10 recently searched keywords would be shown into the list.
  • Clicking the item would perform a search query of that item, and long pressing it will delete the item.

Things that need to improve in future versions

  • Deleting the item with a swipe gesture or a confirmation to delete.
  • Also query the database for items that contains the current keyword when user is typing (autocomplete-like feature).
  • Maybe instead of the queries that are saved, how about save the anime or manga that has been recently clicked when searching.

Result

2024_05_16_15_27_59.mp4

@axiel7
Copy link
Owner

axiel7 commented May 17, 2024

LGTM

@axiel7 axiel7 merged commit eceaf7f into axiel7:master May 17, 2024
@uragiristereo uragiristereo deleted the search-history branch May 18, 2024 04:58
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.

None yet

2 participants