package com.tencent.mm.plugin.wallet_core.ui;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.lt;
import com.tencent.mm.plugin.wallet_core.model.ECardInfo;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.wallet_core.ui.e;
import java.lang.ref.WeakReference;

class m$9 implements OnClickListener {
    final /* synthetic */ Dialog qHc;
    final /* synthetic */ ECardInfo tHP;
    final /* synthetic */ Context val$context;

    m$9(ECardInfo eCardInfo, Context context, Dialog dialog) {
        this.tHP = eCardInfo;
        this.val$context = context;
        this.qHc = dialog;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(47400);
        ab.i("MicroMsg.WalletIdCardTip", "go to: %s", new Object[]{Integer.valueOf(this.tHP.tyo)});
        if (this.tHP.tyo == 1) {
            e.n(this.val$context, this.tHP.cRf, false);
        } else {
            lt ltVar = new lt();
            ltVar.cHB.aIq = new WeakReference(this.val$context);
            a.xxA.m(ltVar);
        }
        if (this.qHc != null && this.qHc.isShowing()) {
            this.qHc.dismiss();
        }
        AppMethodBeat.o(47400);
    }
}
