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

Feat: Instant Search feature in search fragment #1524

Closed
wants to merge 1 commit into from

Conversation

iamsh4shank
Copy link
Member

@iamsh4shank iamsh4shank commented Jun 23, 2020

Fixes #1335

Please Add Screenshots If there are any UI changes.

ezgif com-resize (1)

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the MifosStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@Grandolf49
Copy link
Collaborator

Hi @robustTechie ! This feature is addressed in this PR #1338 . Please review!

@iamsh4shank
Copy link
Member Author

iamsh4shank commented Jun 23, 2020

Hi @robustTechie ! This feature is addressed in this PR #1338 . Please review!

Oh yeah I didn't saw it. I just sent the PR to add this feature. I think the PR #1338 had a few conflicts. And also, if no result is found then it will not show anything and the progress bar will just show loading.

@Grandolf49
Copy link
Collaborator

Yeah it has a conflict. Anyway I'll close that PR.

@iamsh4shank
Copy link
Member Author

Ok

String query = charSequence.toString();
if (!query.equals("")) {
showInstantSearchedProgressBar(true);
searchPresenter.searchInstantResources(query, resources, false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

After discussion with @therajanmaurya , he mentioned that we should not perform API calls in the onTextChanged method since it burdens the server with unnecessary API Calls.

You might want to check debounce to achieve this.

@iamsh4shank iamsh4shank added this to To do in Release v1.1 Jun 1, 2021
@Grandolf49 Grandolf49 removed this from To do in Release v1.1 Jul 6, 2021
@Aditya-gupta99
Copy link
Collaborator

We are closing this PR as it causes a branch conflict since the Java file has now been migrated to kotlin

@avivijay19 avivijay19 closed this Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: Search should be initiated as soon as user starts typing
5 participants