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

import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckedTextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.wallet_core.model.r;

class WalletCardImportUI$9 extends BaseAdapter {
    final /* synthetic */ WalletCardImportUI tGt;

    WalletCardImportUI$9(WalletCardImportUI walletCardImportUI) {
        this.tGt = walletCardImportUI;
    }

    public final /* synthetic */ Object getItem(int i) {
        AppMethodBeat.i(47277);
        Integer Hu = Hu(i);
        AppMethodBeat.o(47277);
        return Hu;
    }

    public final int getCount() {
        AppMethodBeat.i(47274);
        if (WalletCardImportUI.c(this.tGt).cPs() != null) {
            int size = WalletCardImportUI.c(this.tGt).cPs().size();
            AppMethodBeat.o(47274);
            return size;
        }
        AppMethodBeat.o(47274);
        return 0;
    }

    private Integer Hu(int i) {
        AppMethodBeat.i(47275);
        Integer num = (Integer) WalletCardImportUI.c(this.tGt).cPs().get(i);
        AppMethodBeat.o(47275);
        return num;
    }

    public final long getItemId(int i) {
        return (long) i;
    }

    public final View getView(int i, View view, ViewGroup viewGroup) {
        AppMethodBeat.i(47276);
        CheckedTextView checkedTextView = (CheckedTextView) View.inflate(this.tGt, 2130971115, null);
        checkedTextView.setText(r.cPQ().Z(this.tGt, Hu(i).intValue()));
        if (WalletCardImportUI.f(this.tGt) == Hu(i).intValue()) {
            checkedTextView.setChecked(true);
        } else {
            checkedTextView.setChecked(false);
        }
        checkedTextView.setBackgroundResource(2130838396);
        AppMethodBeat.o(47276);
        return checkedTextView;
    }
}
