62 lines
2.3 KiB
Java
62 lines
2.3 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.evg, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12304evg extends ArrayAdapter<C0844Pu> {
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public C12304evg(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) {
|
|
C0844Pu item = getItem(i);
|
|
textView.setText(item != null ? item.d : null);
|
|
}
|
|
return view2;
|
|
}
|
|
|
|
@Override // android.widget.ArrayAdapter, android.widget.BaseAdapter, android.widget.SpinnerAdapter
|
|
public final View getDropDownView(int i, View view, ViewGroup viewGroup) {
|
|
String str;
|
|
C14957gcv.e(viewGroup, "");
|
|
View dropDownView = super.getDropDownView(i, view, viewGroup);
|
|
C0844Pu item = getItem(i);
|
|
if (dropDownView != null) {
|
|
a(dropDownView);
|
|
}
|
|
String str2 = null;
|
|
TextView textView = dropDownView instanceof TextView ? (TextView) dropDownView : null;
|
|
if (textView != null) {
|
|
if (item != null && (str = item.b) != null) {
|
|
str2 = str;
|
|
} else if (item != null) {
|
|
str2 = item.d;
|
|
}
|
|
textView.setText(str2);
|
|
}
|
|
C14957gcv.c(dropDownView, "");
|
|
return dropDownView;
|
|
}
|
|
|
|
private final void a(View view) {
|
|
Context context = getContext();
|
|
C14957gcv.c(context, "");
|
|
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);
|
|
}
|
|
}
|