Skip to content

🐛 Mobile | Fix camera toggle freezing the app #1372

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

Merged
merged 1 commit into from
Jul 10, 2025
Merged

Conversation

zacharykeeping
Copy link
Member

@zacharykeeping zacharykeeping commented Jul 7, 2025

  1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)

Closes #1374

  1. What was changed?

There seems to be an issue with the camera library on iOS where toggling the CameraEnabled value too quickly after the value was previously changed can cause the entire app to lock up for several seconds. One way to reproduce this is by going to the scanner, tapping My Code, tapping Scan and then soon after tapping one of the tabs at the bottom of the screen.

This change updates this toggling code to prevent this value from changing too quickly by adding a delay, which appears to resolve this issue.

  1. Did you do pair or mob programming?

No

@zacharykeeping zacharykeeping requested a review from jernejk July 8, 2025 04:46
Copy link
Member

@jernejk jernejk left a comment

Choose a reason for hiding this comment

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

LGTM

@zacharykeeping zacharykeeping merged commit 7a7fac3 into main Jul 10, 2025
6 checks passed
@zacharykeeping zacharykeeping deleted the scan-fix branch July 10, 2025 01:18
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 - Mobile | App can freeze if camera toggled too quickly
2 participants