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

fix: Fix for inset of SENSOR_INFO_ACTIVE_ARRAY_SIZE for Android < 11 #2306

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

dgruseck
Copy link
Contributor

What

On my Nokia 7.1 the SENSOR_INFO_ACTIVE_ARRAY_SIZE rect has an offset of 8px (Rect(8, 8 - 4040, 3032)).
This leads to a camera disconnect if the codeScanner is used.

Changes

This PR just subtracts the left and top offset so that the new rect starts at 0,0.

Tested on

Nokia 7.1, Android 10

Related issues

Possible fix for: #2257

Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2023 3:17pm

@mrousavy
Copy link
Owner

lol, interesting! nice catch man, thanks for your PR!

@mrousavy mrousavy merged commit 7905f2c into mrousavy:main Dec 22, 2023
4 checks passed
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.

None yet

2 participants