From 0eab02249e71927c16472cfd686a871b9271d8cc Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Fri, 1 Feb 2019 15:40:34 -0800 Subject: [PATCH] Fix preview size --- .../main/java/com/adityapk/zcash/zqwandroid/QrReaderActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/adityapk/zcash/zqwandroid/QrReaderActivity.kt b/app/src/main/java/com/adityapk/zcash/zqwandroid/QrReaderActivity.kt index e201bd4..327d164 100644 --- a/app/src/main/java/com/adityapk/zcash/zqwandroid/QrReaderActivity.kt +++ b/app/src/main/java/com/adityapk/zcash/zqwandroid/QrReaderActivity.kt @@ -59,7 +59,7 @@ class QrReaderActivity : AppCompatActivity() { val barcodeDetector = BarcodeDetector.Builder(this).setBarcodeFormats(Barcode.QR_CODE).build() val cameraSource = CameraSource.Builder(this, barcodeDetector) .setAutoFocusEnabled(true) - .setRequestedPreviewSize(600, 100) + .setRequestedPreviewSize(640, 480) .build()