Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

feat: implement debounced search in getting search suggestions

Description

Add a delay of 500ms to get search suggestions on search query change.

It reduces extra network calls to https://android.clients.google.com/fdfe/searchSuggest?q=<query>.

Screenshots

A search for snapchat in the search screen would make 9 API calls to Google before. It's been reduced to only one API call now.

Before After
Screenshot_from_2024-07-15_17-51-00 Screenshot from 2024-07-15 17-58-55.png

Technical details

Tests

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/2235?work_item_iid=2361

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Edited by Fahim Masud Choudhury

Merge request reports

Loading