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 -> {
|
pickQRCodeImage = registerForActivityResult(new ActivityResultContracts.PickVisualMedia(), img -> {
|
||||||
|
if(img == null) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
InputImage image = InputImage.fromFilePath(this, img);
|
InputImage image = InputImage.fromFilePath(this, img);
|
||||||
qrScanner.scan(image, code -> {
|
qrScanner.scan(image, code -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user