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

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.protocal.protobuf.hb;
import com.tencent.mm.sdk.platformtools.ab;

class WalletECardBindCardListUI$1 implements OnItemClickListener {
    final /* synthetic */ WalletECardBindCardListUI tQC;

    WalletECardBindCardListUI$1(WalletECardBindCardListUI walletECardBindCardListUI) {
        this.tQC = walletECardBindCardListUI;
    }

    public final void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(48115);
        ab.i("MicroMsg.WalletECardBindCardListUI", "position: %d", new Object[]{Integer.valueOf(i)});
        int itemViewType = adapterView.getAdapter().getItemViewType(i);
        WalletECardBindCardListUI.a(this.tQC).getClass();
        if (itemViewType == 1) {
            ab.d("MicroMsg.WalletECardBindCardListUI", "click add item: %s", new Object[]{Integer.valueOf(WalletECardBindCardListUI.b(this.tQC))});
            this.tQC.cST();
            AppMethodBeat.o(48115);
            return;
        }
        if (((hb) adapterView.getAdapter().getItem(i)) == null) {
            ab.w("MicroMsg.WalletECardBindCardListUI", "empty item");
            AppMethodBeat.o(48115);
            return;
        }
        this.tQC.dOE().p(new Object[]{r0});
        AppMethodBeat.o(48115);
    }
}
