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

import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.ipcall.a.e.f;
import com.tencent.mm.plugin.ipcall.ui.IPCallPackageUI.a;
import com.tencent.mm.protocal.protobuf.crx;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.base.h;

class IPCallPackageUI$a$1 implements OnClickListener {
    final /* synthetic */ a nDS;

    IPCallPackageUI$a$1(a aVar) {
        this.nDS = aVar;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(22226);
        crx crx = (crx) this.nDS.getItem(((Integer) view.getTag()).intValue());
        if (crx == null || bo.isNullOrNil(crx.ProductID)) {
            ab.e("MicroMsg.IPCallPackageUI", "buyBtnClick: proToBuy is null");
            AppMethodBeat.o(22226);
            return;
        }
        IPCallPackageUI.b(a.a(this.nDS)).start();
        f b = IPCallPackageUI.b(a.a(this.nDS));
        b.nyS++;
        IPCallPackageUI.b(a.a(this.nDS)).nyW = crx.ProductID;
        h.a(a.a(this.nDS), a.a(this.nDS).getString(2131300817, new Object[]{crx.wOs, crx.Title}), a.a(this.nDS).getString(2131300818), a.a(this.nDS).getString(2131300815), a.a(this.nDS).getString(2131300816), false, new 1(this, crx), new 2(this));
        AppMethodBeat.o(22226);
    }
}
