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: clear orientation listener on close #3139

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Conversation

ldalzottomp
Copy link
Contributor

@ldalzottomp ldalzottomp commented Aug 14, 2024

What

This PR cleans android orientation listener on camera session close.
If this is not done, the events are still fired and they accumulate until you kill the app.

Changes

Added a clearListeners functions in the OrientationManager which is then called when CameraSession.close() is called.

Tested on

Samsung Galaxy tab active4 pro. Android 14.

Related issues

Copy link

vercel bot commented Aug 14, 2024

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 Aug 20, 2024 9:36pm

Copy link
Owner

@mrousavy mrousavy left a comment

Choose a reason for hiding this comment

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

Hey - thanks for your PR! This is good, just a few code style nitpicks.

@mrousavy mrousavy merged commit 54dbf5f into mrousavy:main Aug 20, 2024
4 checks passed
@ldalzottomp
Copy link
Contributor Author

Thanks for handling the requested changes

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.

3 participants