67 lines
2.4 KiB
Java
67 lines
2.4 KiB
Java
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.ets, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12210ets extends ArrayAdapter<C0606Kl> {
|
|
private final int b;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public C12210ets(Context context, List<C0606Kl> list) {
|
|
super(context, com.scb.phone.R.layout.2131559357, list);
|
|
C14957gcv.e(context, "");
|
|
C14957gcv.e(list, "");
|
|
}
|
|
|
|
@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, "");
|
|
boolean z = view2 instanceof TextView;
|
|
TextView textView = z ? (TextView) view2 : null;
|
|
if (textView != null) {
|
|
C0606Kl item = getItem(i);
|
|
textView.setText(item != null ? item.d : null);
|
|
}
|
|
if (i == this.b) {
|
|
TextView textView2 = z ? (TextView) view2 : null;
|
|
if (textView2 != null) {
|
|
textView2.setTextColor(nMh.getColor(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, "");
|
|
View dropDownView = super.getDropDownView(i, view, viewGroup);
|
|
C0606Kl item = getItem(i);
|
|
boolean z = dropDownView instanceof TextView;
|
|
TextView textView = z ? (TextView) dropDownView : null;
|
|
if (textView != null) {
|
|
textView.setText(item != null ? item.d : null);
|
|
}
|
|
if (i == this.b) {
|
|
TextView textView2 = z ? (TextView) dropDownView : null;
|
|
if (textView2 != null) {
|
|
textView2.setTextColor(nMh.getColor(getContext(), com.scb.phone.R.color.f3412131099849));
|
|
}
|
|
}
|
|
C14957gcv.c(dropDownView, "");
|
|
return dropDownView;
|
|
}
|
|
|
|
@Override // android.widget.BaseAdapter, android.widget.ListAdapter
|
|
public final boolean isEnabled(int i) {
|
|
return i != this.b;
|
|
}
|
|
}
|