Skip to content

Commit 973ac30

Browse files
committed
Add continuous focus to QR scanner
1 parent 1c99aca commit 973ac30

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • android/src/main/kotlin/net/touchcapture/qr/flutterqrplus

android/src/main/kotlin/net/touchcapture/qr/flutterqrplus/QRView.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ class QRView(
125125

126126
barcodeView.decoderFactory = DefaultDecoderFactory(null, null, null, 2)
127127

128+
barcodeView.cameraSettings.isContinuousFocusEnabled = true
129+
128130
if (params[PARAMS_CAMERA_FACING] as Int == 1) {
129131
barcodeView.cameraSettings?.requestedCameraId = cameraFacingFront
130132
}

0 commit comments

Comments
 (0)