You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Android – Attachment – App flickering when uploading a long image to a conversation #34998
Version Number: 1.4.30-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Open New Expensify app
Log in with the account
Open any chat
On a conversation, click on the + button in the compose box
Upload long image to a conversation
Expected Result:
Preview of the image is displayed before uploading to the conversation
Actual Result:
App flickering when uploading a long image to a conversation in preview. Flashes on first boot
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Android – Attachment – App flickering when uploading a long image to a conversation[/-][+][$500] Android – Attachment – App flickering when uploading a long image to a conversation[/+]on Jan 23, 2024
Please re-state the problem that we are trying to solve in this issue.
Android – Attachment – App flickering when uploading a long image to a conversation
What is the root cause of that problem?
The main problem with the issue is that when we load a long photo we call onLoad a few times ( But according to the documentation, onLoad should only call once, which means the image is completely loaded )
@ZhenjaHorbach Thanks for the proposal! The RCA feels a bit underdeveloped; I'm curious why onLoad is being called multiple times if it's only supposed to be called once. I also wonder if this is device specific?
@lanitochka17 Could you update/add which platforms this affects?
Thanks for the extra detail! Happy to go with @ZhenjaHorbach's proposal here. The RCA seems correct that we're simply calling onLoad multiple times on Android (for some reason with different sizes), and the solution makes sense for that.
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer linkUpwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
Activity
melvin-bot commentedon Jan 23, 2024
Job added to Upwork: https://www.upwork.com/jobs/~011d877180b69b96f5
[-]Android – Attachment – App flickering when uploading a long image to a conversation[/-][+][$500] Android – Attachment – App flickering when uploading a long image to a conversation[/+]melvin-bot commentedon Jan 23, 2024
Triggered auto assignment to @greg-schroeder (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jan 23, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (
External)ZhenjaHorbach commentedon Jan 24, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Android – Attachment – App flickering when uploading a long image to a conversation
What is the root cause of that problem?
The main problem with the issue is that when we load a long photo we call onLoad a few times ( But according to the documentation, onLoad should only call once, which means the image is completely loaded )
App/src/components/Lightbox.js
Lines 185 to 189 in 6cfdd6f
What changes do you think we should make in order to solve the problem?
To fix this issue we can update the code and add new condition which will prevent unnecessary onLoad calls. For this we can use
isLightboxLoadedWhat alternative solutions did you explore? (Optional)
NA
jjcoffee commentedon Jan 25, 2024
Reviewing tomorrow!
jjcoffee commentedon Jan 29, 2024
@ZhenjaHorbach Thanks for the proposal! The RCA feels a bit underdeveloped; I'm curious why
onLoadis being called multiple times if it's only supposed to be called once. I also wonder if this is device specific?@lanitochka17 Could you update/add which platforms this affects?
1 remaining item
lanitochka17 commentedon Jan 30, 2024
The issue is only reproducible on Android
melvin-bot commentedon Jan 30, 2024
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
jjcoffee commentedon Jan 31, 2024
Thanks for the extra detail! Happy to go with @ZhenjaHorbach's proposal here. The RCA seems correct that we're simply calling
onLoadmultiple times on Android (for some reason with different sizes), and the solution makes sense for that.🎀👀🎀 C+ reviewed
melvin-bot commentedon Jan 31, 2024
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
melvin-bot commentedon Jan 31, 2024
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
melvin-bot commentedon Jan 31, 2024
📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
ZhenjaHorbach commentedon Jan 31, 2024
PR will be ready today or tomorrow
ZhenjaHorbach commentedon Jan 31, 2024
@jjcoffee
App/src/components/Lightbox/index.tsx
Lines 82 to 91 in a058e3b
It seems this problem is no longer relevant after refactoring the code into this PR
#33756
In fact, the fix is already used here
jjcoffee commentedon Feb 1, 2024
@ZhenjaHorbach Thanks for flagging! Did you verify that the issue is fixed?
ZhenjaHorbach commentedon Feb 1, 2024
I couldn't reproduce it on the last main )
greg-schroeder commentedon Feb 2, 2024
Great! Closing this then.