Open yanerly opened 5 years ago
On Huawei mobile phones, the flash is on, sometimes the flash only flashes once when taking pictures, sometimes flashes twice.
previewRequestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON_ALWAYS_FLASH);
previewRequestBuilder.set(CaptureRequest.FLASH_MODE, CaptureRequest.FLASH_MODE_OFF);
On Huawei mobile phones, the flash is on, sometimes the flash only flashes once when taking pictures, sometimes flashes twice.
previewRequestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON_ALWAYS_FLASH);
previewRequestBuilder.set(CaptureRequest.FLASH_MODE, CaptureRequest.FLASH_MODE_OFF);