-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Android - Profile - Gallery only opens after tapping Choose from gallery twice #61951
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
Comments
Triggered auto assignment to @slafortune ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @robertjchen ( |
💬 A slack conversation has been started in #expensify-open-source |
ProposalPlease re-state the problem that we are trying to solve in this issue.Android - Profile - Gallery only opens after tapping Choose from gallery twice What is the root cause of that problem?Regression from #61165 where we migrated to using a new modal for the
Why is that? We passed the ref function directly like this:
Since onModalHide.current is a reference to a function, it undefined during the first execution.
In App/src/components/Modal/BottomDockedModal/index.tsx Lines 153 to 155 in d814c8f
What changes do you think we should make in order to solve the problem?To ensure a stable function reference that always reflects the current value, we should wrap the call like this: onModalHide={()=> onModalHide.current?.()} What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@robertjchen Happy to raise a PR if this is urgent and my solution works |
Job added to Upwork: https://www.upwork.com/jobs/~021922536195053093945 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Hey, I'm the author of #61165. @linhvovan29546 s solution LGTM. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@robertjchen did you remove this as a deploy blocker on purpose? It's still unchecked on the deploy checklist. @linhvovan29546 does your proposal fix this issue and this one: #61927? |
@trjExpensify Yes, I've tested and resolved that as well |
📣 @linhvovan29546 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@linhvovan29546 can you please raise the pr |
Sure! |
the PR is ready ^ |
@trjExpensify Apologies for the confusion there- will make sure to check that moving forward 👀 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.1.45-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Samsung Galaxy Z Fold 4 / Android 14
App Component: Other
Action Performed:
Expected Result:
In Step 5, device gallery will open.
Actual Result:
In Step 5, device gallery does not open.
In Step 7, after repeating the steps, device gallery opens.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6830132_1747165301795.Screen_Recording_20250514_034017_Photos___videos.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allroundexpertsThe text was updated successfully, but these errors were encountered: