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

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.se;
import com.tencent.mm.plugin.card.d.b;
import com.tencent.mm.plugin.card.sharecard.ui.ShareCardListUI;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.protocal.protobuf.oa;
import com.tencent.mm.sdk.b.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.ytcommon.BuildConfig;

class CardHomePageUI$8 implements OnClickListener {
    final /* synthetic */ CardHomePageUI klP;
    final /* synthetic */ oa klQ;

    CardHomePageUI$8(CardHomePageUI cardHomePageUI, oa oaVar) {
        this.klP = cardHomePageUI;
        this.klQ = oaVar;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(88490);
        if (this.klQ.vTw == 1) {
            b.a(this.klP, this.klQ.vTx, 0);
            AppMethodBeat.o(88490);
            return;
        }
        if (this.klQ.vTw == 2) {
            if (this.klQ.vTy != null) {
                se seVar = new se();
                seVar.cOf.userName = this.klQ.vTy.tzW;
                seVar.cOf.cOh = bo.bc(this.klQ.vTy.ttg, BuildConfig.FLAVOR);
                seVar.cOf.scene = 1028;
                a.xxA.m(seVar);
                AppMethodBeat.o(88490);
                return;
            }
        } else if (this.klQ.vTw != 3) {
            ab.w("MicroMsg.CardHomePageUI", "unknown op action: %s", new Object[]{Integer.valueOf(this.klQ.vTw)});
        } else if ("weixin://wccard/sharecarddetail".equals(this.klQ.vTz)) {
            ab.d("MicroMsg.CardHomePageUI", "go to share card ui");
            Intent intent = new Intent(this.klP, ShareCardListUI.class);
            intent.putExtra("key_layout_buff", CardHomePageUI.e(this.klP));
            CardHomePageUI.f(this.klP);
            this.klP.startActivity(intent);
            h.pYm.e(11324, new Object[]{"ClickShareCard", Integer.valueOf(0), BuildConfig.FLAVOR, BuildConfig.FLAVOR, Integer.valueOf(0), Integer.valueOf(0), BuildConfig.FLAVOR, Integer.valueOf(0), Integer.valueOf(0)});
            AppMethodBeat.o(88490);
            return;
        }
        AppMethodBeat.o(88490);
    }
}
