We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8855c15 commit c9287c8Copy full SHA for c9287c8
camerax-mlkit-pack/src/main/java/com/furkan/camerax_mlkit_pack/CameraxManager.kt
@@ -185,7 +185,7 @@ class CameraxManager(
185
186
fun setReaderFormats(@BarcodeFormat vararg moreFormats: Int) {
187
val firstBarcodeFormat = moreFormats[0]
188
- if (firstBarcodeFormat == Barcode.FORMAT_QR_CODE) {
+ if (firstBarcodeFormat == Barcode.FORMAT_QR_CODE && moreFormats.size == 1) {
189
setReadingAccuracyLevel(1)
190
}
191
moreFormats.drop(1)
0 commit comments