diff --git a/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java b/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java index 79da1fd80bf9e436ad804e92c4c90d29b7a27422..9eaf2a066e95b4f12678ddd071f07b0ee826b82b 100644 --- a/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java +++ b/app/src/main/java/net/sourceforge/opencamera/preview/Preview.java @@ -60,6 +60,7 @@ import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.core.content.ContextCompat; +import com.google.zxing.BarcodeFormat; import com.google.zxing.BinaryBitmap; import com.google.zxing.LuminanceSource; import com.google.zxing.MultiFormatReader; @@ -1137,7 +1138,9 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu MainActivity mActivity = (MainActivity) this.getContext(); if (MyDebug.LOG) Log.d(TAG, "Find QRCode qrcodeContent="+qrcodeContent ); - mActivity.qrImageAnalyzer.showQrDialog(result); + if (result.getBarcodeFormat() == BarcodeFormat.QR_CODE) { + mActivity.qrImageAnalyzer.showQrDialog(result); + } } catch (Exception e) { // K1ZFP TODO Error 2 }