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

Bug fix: Torch wasn't working #1028

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bug fix: Torch wasn't working #1028

wants to merge 1 commit into from

Conversation

LeroyStaines
Copy link

@LeroyStaines LeroyStaines commented Feb 2, 2022

Null check of out parameter err should be if (err == null) rather than if (err != null).

Otherwise device.TorchMode is generally unreachable.

Amending it as per the pull request fixes viewController?.ToggleTorch() which previously wasn't working in iOS.

null check of out parameter "err" should be if(err == null) rather than != null. Otherwise device.TorchMode is generally unreachable.
@wcoder
Copy link

wcoder commented Dec 9, 2022

@Redth Could you please check this small PR ?

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.

2 participants