Skip to content
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

Wait for the preview to post before starting the camera #5730

Merged
merged 2 commits into from
Oct 21, 2022

Conversation

awush-stripe
Copy link
Collaborator

Summary

Prevent a crash in cardscan OCR by waiting for the preview frame to initialize before starting the camera.

Motivation

#5486

Testing

  • Added tests
  • Modified tests
  • Manually verified

ccen-stripe
ccen-stripe previously approved these changes Oct 20, 2022
@@ -18,7 +18,7 @@
android:layout_height="0dp"
android:layout_marginTop="64dp"
android:visibility="gone"
app:layout_constraintDimensionRatio="200:160"
app:layout_constraintDimensionRatio="1:1"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this change intended?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes. The demo squishes the fragment without this change.

@awush-stripe awush-stripe merged commit 6398472 into master Oct 21, 2022
@awush-stripe awush-stripe deleted the awush/prevent_crash_in_cardscan branch October 21, 2022 20:30
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.

2 participants