I work with camera 2 API
to carry out my custom camera according google sample but with some additions that my app requires. All was good until I added permanent support of flash light
protected final void setAutoFlash(CaptureRequest.Builder requestBuilder) {
if (isFlashSupported) {
requestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON_ALWAYS_FLASH);
}
}
I have checked it with Meizu MX5
and Samsung 5
it work properly, issue appears with Samsung 6
... After I made the first capture, flash is flashing and app going to stack... without any stacktrace...
Could anyone assume what is the reason of the stack?
Thanks in advance!