67 lines
2.7 KiB
Java
67 lines
2.7 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ArrayAdapter;
|
|
import android.widget.TextView;
|
|
|
|
/* renamed from: o.eug, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12251eug extends ArrayAdapter<C0714Mx> {
|
|
@Override // android.widget.BaseAdapter, android.widget.ListAdapter
|
|
public final boolean isEnabled(int i) {
|
|
return i != 0;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public C12251eug(Context context) {
|
|
super(context, com.scb.phone.R.layout.2131559352);
|
|
C14957gcv.e(context, "");
|
|
}
|
|
|
|
@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, "");
|
|
a(view2);
|
|
TextView textView = view2 instanceof TextView ? (TextView) view2 : null;
|
|
if (textView != null) {
|
|
C0714Mx item = getItem(i);
|
|
textView.setText(item != null ? item.i : null);
|
|
}
|
|
int i2 = i == 0 ? com.scb.phone.R.color.f3412131099849 : com.scb.phone.R.color.f2272131099733;
|
|
if (textView != null) {
|
|
textView.setTextColor(nMh.getColor(getContext(), i2));
|
|
}
|
|
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);
|
|
if (dropDownView != null) {
|
|
a(dropDownView);
|
|
}
|
|
TextView textView = dropDownView instanceof TextView ? (TextView) dropDownView : null;
|
|
if (textView != null) {
|
|
C0714Mx item = getItem(i);
|
|
textView.setText(item != null ? item.i : null);
|
|
}
|
|
int i2 = i == 0 ? com.scb.phone.R.color.f3412131099849 : com.scb.phone.R.color.2131100905;
|
|
if (textView != null) {
|
|
textView.setTextColor(nMh.getColor(getContext(), i2));
|
|
}
|
|
C14957gcv.c(dropDownView, "");
|
|
return dropDownView;
|
|
}
|
|
|
|
private final void a(View view) {
|
|
Context context = getContext();
|
|
int dimensionPixelOffset = context.getResources().getDimensionPixelOffset(com.scb.phone.R.dimen.f16902131165456);
|
|
view.setPadding(view.getPaddingLeft(), dimensionPixelOffset, context.getResources().getDimensionPixelOffset(com.scb.phone.R.dimen.f16852131165451), dimensionPixelOffset);
|
|
}
|
|
}
|