feat: Activate Torch Mode on Android (#1932)

This commit is contained in:
Erwan LE PRADO 2023-10-06 14:28:57 +02:00 committed by GitHub
parent 4cbe8324d5
commit 9d71990570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -575,8 +575,9 @@ class CameraSession(
val videoStabilizationMode = videoStabilizationMode val videoStabilizationMode = videoStabilizationMode
val lowLightBoost = lowLightBoost val lowLightBoost = lowLightBoost
val hdr = hdr val hdr = hdr
val enableTorch = enableTorch
val repeatingRequest = getPreviewCaptureRequest(fps, videoStabilizationMode, lowLightBoost, hdr) val repeatingRequest = getPreviewCaptureRequest(fps, videoStabilizationMode, lowLightBoost, hdr, enableTorch)
Log.d(TAG, "Setting Repeating Request..") Log.d(TAG, "Setting Repeating Request..")
session.setRepeatingRequest(repeatingRequest, null, null) session.setRepeatingRequest(repeatingRequest, null, null)
} }