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

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.wallet_core.ui.view.BankCardSelectSortView.a;
import com.tencent.mm.plugin.wallet_core.ui.view.BankCardSelectSortView.b;
import com.tencent.mm.pluginsdk.ui.applet.CdnImageView;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.ui.base.sortview.c$a;
import com.tencent.mm.ui.base.sortview.d;

class BankCardSelectSortView$1 implements c$a {
    final /* synthetic */ BankCardSelectSortView tNh;

    BankCardSelectSortView$1(BankCardSelectSortView bankCardSelectSortView) {
        this.tNh = bankCardSelectSortView;
    }

    public final View a(d dVar, View view, int i, boolean z, boolean z2) {
        AppMethodBeat.i(47866);
        Context context = this.tNh.getContext();
        if (view == null) {
            view = LayoutInflater.from(context).inflate(2130968829, null);
            b bVar = new b((byte) 0);
            bVar.pOw = (TextView) view.findViewById(2131821694);
            bVar.pMc = (TextView) view.findViewById(2131821697);
            bVar.pMa = (CdnImageView) view.findViewById(2131821696);
            view.setTag(bVar);
        }
        b bVar2 = (b) view.getTag();
        if (this.tNh.yDy && z) {
            bVar2.pOw.setText(dVar.yDG);
            bVar2.pOw.setVisibility(0);
        } else {
            bVar2.pOw.setVisibility(8);
        }
        a aVar = (a) dVar.data;
        bVar2.pMc.setText(aVar.pcj);
        if (bo.isNullOrNil(aVar.cIY)) {
            bVar2.pMa.setImageBitmap(null);
        } else {
            bVar2.pMa.setUseSdcardCache(true);
            bVar2.pMa.hI(aVar.cIY, aVar.tNi);
        }
        AppMethodBeat.o(47866);
        return view;
    }
}
