Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adc83831 authored by Frank Preel's avatar Frank Preel Committed by Mohammed Althaf T
Browse files

Analyze only QRCode

parent 53f3257f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ import android.widget.FrameLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.google.zxing.BarcodeFormat;
import com.google.zxing.BinaryBitmap;
import com.google.zxing.LuminanceSource;
import com.google.zxing.MultiFormatReader;
@@ -1181,7 +1182,9 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu
                    MainActivity mActivity = (MainActivity) this.getContext();
                    if (MyDebug.LOG)
                        Log.d(TAG, "Find QRCode qrcodeContent="+qrcodeContent );
                    if (result.getBarcodeFormat() == BarcodeFormat.QR_CODE) {
                        mActivity.qrImageAnalyzer.showQrDialog(result);
                    }
                } catch (Exception e) {
                    // K1ZFP TODO Error 2
                }