package o; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import java.util.List; /* renamed from: o.etA, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12166etA extends ArrayAdapter { private final boolean c; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public C12166etA(Context context, List list, boolean z) { super(context, com.scb.phone.R.layout.2131559357, list); C14957gcv.e(context, ""); C14957gcv.e(list, ""); this.c = z; } /* renamed from: o.etA$RVV */ /* loaded from: classes5.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } @Override // android.widget.ArrayAdapter, android.widget.Adapter public final View getView(int i, View view, ViewGroup viewGroup) { C14957gcv.e(viewGroup, ""); View view2 = super.getView(i, view, viewGroup); C14957gcv.c(view2, ""); TextView textView = view2 instanceof TextView ? (TextView) view2 : null; if (textView != null) { C0609Ko item = getItem(i); textView.setText(item != null ? item.a : null); if (i == 0 && this.c) { textView.setTextColor(nMh.getColor(textView.getContext(), com.scb.phone.R.color.f3412131099849)); } } return view2; } @Override // android.widget.ArrayAdapter, android.widget.BaseAdapter, android.widget.SpinnerAdapter public final View getDropDownView(int i, View view, ViewGroup viewGroup) { C14957gcv.e(viewGroup, ""); int i2 = (i == 0 && this.c) ? com.scb.phone.R.color.f3412131099849 : com.scb.phone.R.color.f2982131099805; View dropDownView = super.getDropDownView(i, view, viewGroup); TextView textView = dropDownView instanceof TextView ? (TextView) dropDownView : null; if (textView != null) { C0609Ko item = getItem(i); textView.setText(item != null ? item.a : null); textView.setTextColor(nMh.getColor(textView.getContext(), i2)); } C14957gcv.c(dropDownView, ""); return dropDownView; } @Override // android.widget.BaseAdapter, android.widget.ListAdapter public final boolean isEnabled(int i) { return (this.c && i == 0) ? false : true; } static { new RVV((byte) 0); } }