Fix QR code image picker

This commit is contained in:
MrLetsplay 2023-09-19 22:47:00 +02:00
parent 4220fd146c
commit 93ed718ca0
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -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 -> {