package com.ifpdos.factorytest;

import android.content.Context;
import android.content.DialogInterface;
import com.seewo.vcommons.utils.ShellCommandUtils;

/* JADX INFO: loaded from: classes.dex */
public class BarcodeScanAskDialog extends AskDialog {
    private static final String TAG = "BarcodeScanAskDialog";
    private boolean mIgnoreCase;
    private String mStrMsg;
    private String mStrScan;

    public BarcodeScanAskDialog(Context context, String str, String str2, OnAskDialogResultListener onAskDialogResultListener, boolean z) {
        this(context, true, null, true, null, str, str2, onAskDialogResultListener, z);
    }

    public BarcodeScanAskDialog(Context context, boolean z, String str, boolean z2, String str2, String str3, String str4, OnAskDialogResultListener onAskDialogResultListener, boolean z3) {
        super(context, z, str, z2, str2, str3, str4, onAskDialogResultListener);
        this.mIgnoreCase = false;
        this.mStrMsg = "";
        this.mStrScan = "";
        if (context == null || this.mDialog == null) {
            return;
        }
        String string = context.getResources().getString(R.string.msg_pls_scan);
        this.mIgnoreCase = z3;
        this.mStrMsg = str4;
        this.mDialog.setMessage(str4 + ShellCommandUtils.COMMAND_LINE_END + string + str3 + ":");
        this.mDialog.setOnKeyListener(new DialogInterface.OnKeyListener() { // from class: com.ifpdos.factorytest.BarcodeScanAskDialog.1
            /* JADX WARN: Code restructure failed: missing block: B:31:0x0095, code lost:
            
                r2 = true;
             */
            /* JADX WARN: Removed duplicated region for block: B:34:0x00a3  */
            @Override // android.content.DialogInterface.OnKeyListener
            /*
                Code decompiled incorrectly, please refer to instructions dump.
                To view partially-correct add '--show-bad-code' argument
            */
            public boolean onKey(android.content.DialogInterface r4, int r5, android.view.KeyEvent r6) {
                /*
                    Method dump skipped, instruction units count: 227
                    To view this dump add '--comments-level debug' option
                */
                throw new UnsupportedOperationException("Method not decompiled: com.ifpdos.factorytest.BarcodeScanAskDialog.AnonymousClass1.onKey(android.content.DialogInterface, int, android.view.KeyEvent):boolean");
            }
        });
    }
}
