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

67 lines
2.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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.etx, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12215etx extends ArrayAdapter<C0610Kp> {
private final int e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C12215etx(Context context, List<C0610Kp> 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) {
C0610Kp item = getItem(i);
textView.setText(item != null ? item.c : null);
}
if (i == this.e) {
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);
C0610Kp item = getItem(i);
boolean z = dropDownView instanceof TextView;
TextView textView = z ? (TextView) dropDownView : null;
if (textView != null) {
textView.setText(item != null ? item.c : null);
}
if (i == this.e) {
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.e;
}
}