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: camera session is bound and idle on unmount [Android] #1686

Closed
wants to merge 1 commit into from

Conversation

Skizu
Copy link

@Skizu Skizu commented Aug 9, 2023

What

This PR fixes camera device and session resource cleanup when unmounted for Android devices.

Changes

Adds camera provider unbinding in onDetachedFromWindow.

Tested on

Samsung S10-S22, Samsung XCover Pro V3-6, Pixel 3a-6

Related issues

Resolves #1685

@vercel
Copy link

vercel bot commented Aug 9, 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 Aug 9, 2023 3:36pm

@mrousavy
Copy link
Owner

Hey sorry for long radio silence here but thanks for your PR! We no longer have this code so this is obsolete I think.. sorry!

@mrousavy mrousavy closed this Sep 30, 2023
@Skizu Skizu deleted the main branch October 9, 2023 13:19
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.

[Android] camera session is bound and idle on unmount 🐛
3 participants