package com.tencent.mm.plugin.scanner.util;

import android.content.Intent;
import android.widget.Toast;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.pr;
import com.tencent.mm.plugin.scanner.c;
import com.tencent.mm.pluginsdk.wallet.h;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class e$6 implements Runnable {
    final /* synthetic */ int cgg;
    final /* synthetic */ int fwD;
    final /* synthetic */ pr kCL;
    final /* synthetic */ e qhD;
    final /* synthetic */ String qhF;

    e$6(e eVar, pr prVar, int i, String str, int i2) {
        this.qhD = eVar;
        this.kCL = prVar;
        this.cgg = i;
        this.qhF = str;
        this.fwD = i2;
    }

    public final void run() {
        AppMethodBeat.i(81398);
        if (!bo.isNullOrNil(this.kCL.cLT.aIm)) {
            Toast.makeText(this.qhD.getContext(), this.kCL.cLT.aIm, 1).show();
        } else if (bo.isNullOrNil(this.kCL.cLT.cLV)) {
            ab.w("MicroMsg.QBarStringHandler", "resp url is null!");
        } else if (this.kCL.cLT.actionType == 1) {
            h.a(this.qhD.getContext(), this.kCL.cLT.cLV, this.cgg, this.qhF, this.fwD);
        } else {
            Intent intent = new Intent();
            intent.putExtra("rawUrl", this.kCL.cLT.cLV);
            c.gkE.i(intent, this.qhD.getContext());
        }
        if (this.qhD.qhA != null) {
            this.qhD.qhA.o(3, null);
        }
        AppMethodBeat.o(81398);
    }
}
