Fix QR code image picker
This commit is contained in:
parent
4220fd146c
commit
93ed718ca0
@ -83,6 +83,8 @@ public class MainActivity extends BaseActivity {
|
||||
});
|
||||
|
||||
pickQRCodeImage = registerForActivityResult(new ActivityResultContracts.PickVisualMedia(), img -> {
|
||||
if(img == null) return;
|
||||
|
||||
try {
|
||||
InputImage image = InputImage.fromFilePath(this, img);
|
||||
qrScanner.scan(image, code -> {
|
||||
|
Loading…
Reference in New Issue
Block a user