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

Commit 4015c286 authored by frankpreel's avatar frankpreel Committed by Nishith Khanna
Browse files

Analyze only QRCode

parent 7d7ab9bd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -101,6 +101,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;
@@ -1148,7 +1149,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
                }