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

bugfix: getSupportedFlashModes returns array empty in Android 14 SDK 34 #345 #360

Conversation

ryaa
Copy link
Member

@ryaa ryaa commented Dec 18, 2024

Implemented the fix to flip/switch between the main front and back cameras and avoid switching to additional cameras.
Before the flip was switching through all the available cameras, so if flip was invoked twice and there were more then 2 cameras available (for example, on my Samsung A53 there are 4 cameras total), the second flip did not return to the initial camera.

#345

Changes:
- implemented the fix to flip/switch between the main front and back cameras and avoid switching to additional cameras
@ryaa ryaa linked an issue Dec 18, 2024 that may be closed by this pull request
@ryaa ryaa requested a review from pbowyer December 18, 2024 07:08
@ryaa ryaa merged commit d01497e into master Feb 3, 2025
@ryaa ryaa deleted the bugfix/345-getsupportedflashmodes-returns-array-empty-in-android-14-sdk-34 branch February 3, 2025 05: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.

getSupportedFlashModes returns array empty in Android 14 SDK 34
1 participant