forked from react-native-camera/react-native-camera
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(android): stop/release camera in non-UI thread (react-native-cam…
…era#2685) * stop/release camera in non-UI thread so we prevent ANRs and UI freezing. Some phones may take up to a second to release the camera and preview. * fix for surface destroy and resume events. Co-authored-by: Cristiano Coelho <cristianocca@hotmail.com>
- Loading branch information
1 parent
c683076
commit ba0e427
Showing
2 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters