File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/cz/muni/fi/rpg/ui/joinParty Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import android.graphics.ImageFormat
55import androidx.camera.core.ImageAnalysis
66import androidx.camera.core.ImageProxy
77import com.google.zxing.BinaryBitmap
8- import com.google.zxing.NotFoundException
98import com.google.zxing.PlanarYUVLuminanceSource
9+ import com.google.zxing.ReaderException
1010import com.google.zxing.common.HybridBinarizer
1111import com.google.zxing.qrcode.QRCodeReader
1212import timber.log.Timber
@@ -60,7 +60,7 @@ class QrCodeScannerAnalyser(
6060
6161 val result = reader.decode(binaryBitmap)
6262 onQrCodesDetected(result.text)
63- } catch (e: NotFoundException ) {
63+ } catch (e: ReaderException ) {
6464 Timber .d(e)
6565 } finally {
6666 imageProxy.close()
You can’t perform that action at this time.
0 commit comments