yuriy-budiyev / code-scanner

Code scanner library for Android, based on ZXing
MIT License
1.09k stars 266 forks source link

(Java) QR Scanner does not scan qr codes using front camera #134

Open thisiszammy opened 2 years ago

thisiszammy commented 2 years ago
// this code works fine and scans properly
mCodeScanner = new CodeScanner(getActivity().getApplicationContext(), scannerView);

The following implementation causes the scanner to be unable to scan

mCodeScanner = new CodeScanner(getActivity().getApplicationContext(), scannerView, -2);

Not only limited to this, if I attempt to change any other properties through the setter methods the scanner would also stop working... Additionally the buttons on the scanner view also stop functioning and seem to be unresponsive. To be clear the camera works fine but it's not scanning QR Codes as intended.

yuriy-budiyev commented 2 years ago

I don't have time and devices to properly test my library. Will be good if you debug it.