-
Notifications
You must be signed in to change notification settings - Fork 433
Fixed some of the problems in the code #4128
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } catch (Throwable ex) { | ||
| Log.e(ex); | ||
| } finally { | ||
| queued = false; | ||
| Util.cleanup(i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reset queued flag when background load fails
The background load in StorageImageAsync.getImageData() now clears queued only inside the serially executed UI callback, but the finally block no longer resets it. If Storage.getInstance().readObject(fileName) throws before the callback is scheduled, the code reaches this catch/finally without ever clearing queued. Subsequent calls will keep returning early because queued is still true, so the image never retries loading after a transient storage failure. Clearing queued in the error path or finally block avoids permanently disabling future loads.
Useful? React with 👍 / 👎.
|
✅ Native iOS screenshot tests passed. |
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |

No description provided.