Skip to content

Fix categories searching error when uploading photos #5878

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

Closed

Conversation

zihanpan
Copy link
Contributor

Description (required)

Fixes #5872

  1. Adjustments to error handling logic:
    Added the isInitialLoad status variable to track whether it was an initial load. This variable is set to true when the page starts loading and false for the first call to searchForCategories to ensure that no error messages are displayed during the initial loading.

  2. Null input processing:
    In the searchForCategories method, a check for whether the input is empty has been added. If the input is empty and the initial load is not categories_found, the call view.showError(r.sched.no_categories_found) shows an error.

  3. EditText handling:
    Ensure that edittext continues to receive input after ErrorShow is triggered, and that categories cannot be retrieved due to conflicts

Tests performed (required)

Tested Debug on Medium Phone with API level 34.

@zihanpan zihanpan closed this Oct 20, 2024
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.

[Bug]: Error shown in category search (upload photo) when no input is provided
1 participant