package com.tencent.mm.plugin.wallet_core.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.plugin.wallet_core.model.p;
import com.tencent.mm.plugin.wallet_core.model.p$a;
import com.tencent.mm.plugin.wallet_core.model.p.1;
import com.tencent.mm.plugin.wallet_core.model.p.b;
import com.tencent.mm.plugin.wallet_core.ui.l.a;

class l$2 implements OnItemClickListener {
    final /* synthetic */ l tHF;

    l$2(l lVar) {
        this.tHF = lVar;
    }

    public final void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(47378);
        a b = l.b(this.tHF);
        p pVar = b.tHJ;
        if (i < pVar.tzD.size()) {
            p$a p_a = ((b) pVar.tzD.get(i)).tzL;
            p$a p_a2 = p$a.CHECKED;
            for (int i2 = 0; i2 < pVar.tzD.size(); i2++) {
                pVar.a(i2, p$a.UNCHECKED);
            }
            switch (1.tzF[p_a.ordinal()]) {
                case 1:
                    pVar.a(i, p$a.CHECKED);
                    break;
                case 2:
                    pVar.a(i, p$a.UNCHECKED);
                    break;
            }
        }
        b.notifyDataSetChanged();
        AppMethodBeat.o(47378);
    }
}
