what-the-bank/sources/o/C12511ezb.java

88 lines
3.2 KiB
Java

package o;
import android.content.Context;
import android.view.View;
import com.scb.phone.view.adapter.sme.gifting.GiftingBaseListAdapter;
import java.util.List;
/* renamed from: o.ezb, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12511ezb extends GiftingBaseListAdapter {
private HBt e;
/* renamed from: o.ezb$HBt */
/* loaded from: classes5.dex */
public interface HBt extends GiftingBaseListAdapter.IeS {
void d(WI wi);
}
@Override // com.scb.phone.view.adapter.sme.gifting.GiftingBaseListAdapter, androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(GiftingBaseListAdapter.GiftViewHolder giftViewHolder, int i) {
GiftingBaseListAdapter.GiftViewHolder giftViewHolder2 = giftViewHolder;
super.onBindViewHolder(giftViewHolder2, i);
b(giftViewHolder2, this.c.get(i));
}
public C12511ezb(Context context, List<WI> list, HBt hBt) {
super(context, list, hBt);
this.e = hBt;
}
@Override // com.scb.phone.view.adapter.sme.gifting.GiftingBaseListAdapter
/* renamed from: b */
public final void onBindViewHolder(GiftingBaseListAdapter.GiftViewHolder giftViewHolder, int i) {
super.onBindViewHolder(giftViewHolder, i);
b(giftViewHolder, this.c.get(i));
}
@Override // com.scb.phone.view.adapter.sme.gifting.GiftingBaseListAdapter
public final CharSequence e() {
return this.d.getResources().getString(com.scb.phone.R.string.gift_sender);
}
@Override // com.scb.phone.view.adapter.sme.gifting.GiftingBaseListAdapter
public final CharSequence d() {
return this.d.getResources().getString(com.scb.phone.R.string.gift_datetime_received_on);
}
private void b(GiftingBaseListAdapter.GiftViewHolder giftViewHolder, final WI wi) {
WU wu = wi.t;
if (wu.e.equals("OPEN NOW")) {
giftViewHolder.giftStatus.setTextColor(nMh.getColor(this.d, com.scb.phone.R.color.f13682131100876));
giftViewHolder.giftArea.setOnClickListener(new View.OnClickListener(this, wi) { // from class: o.ezc
private WI a;
private C12511ezb e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.e.e.e(this.a);
}
{
this.e = this;
this.a = wi;
}
});
} else {
giftViewHolder.giftStatus.setTextColor(nMh.getColor(this.d, com.scb.phone.R.color.f3092131099816));
giftViewHolder.giftArea.setOnClickListener(new View.OnClickListener(this, wi) { // from class: o.eyY
private WI a;
private C12511ezb d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.d.e.d(this.a);
}
{
this.d = this;
this.a = wi;
}
});
}
giftViewHolder.giftStatus.setText(wu.a);
giftViewHolder.giftAmount.setVisibility(8);
giftViewHolder.giftStatus.setVisibility(0);
}
}