72 lines
2.5 KiB
Java
72 lines
2.5 KiB
Java
package o;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.Configuration;
|
|
import android.content.res.Resources;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ArrayAdapter;
|
|
import android.widget.BaseAdapter;
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Locale;
|
|
|
|
/* renamed from: o.eyF, reason: case insensitive filesystem */
|
|
/* loaded from: classes5.dex */
|
|
public final class C12436eyF extends BaseAdapter {
|
|
private final ArrayAdapter<Integer> d;
|
|
|
|
@Override // android.widget.Adapter
|
|
public final /* synthetic */ Object getItem(int i) {
|
|
Integer item = this.d.getItem(i);
|
|
String valueOf = item != null ? String.valueOf(item) : null;
|
|
return valueOf == null ? "" : valueOf;
|
|
}
|
|
|
|
public C12436eyF(Context context, List<Integer> list) {
|
|
Configuration configuration;
|
|
C14957gcv.e(context, "");
|
|
C14957gcv.e(list, "");
|
|
ArrayAdapter<Integer> arrayAdapter = new ArrayAdapter<>(context, com.scb.phone.R.layout.2131559353);
|
|
arrayAdapter.setDropDownViewResource(com.scb.phone.R.layout.2131559353);
|
|
Resources resources = context.getResources();
|
|
if (resources != null && (configuration = resources.getConfiguration()) != null) {
|
|
C14957gcv.c(configuration, "");
|
|
Locale c = bBI.qs_(configuration).c(0);
|
|
if (C14957gcv.b((Object) "th", (Object) (c != null ? c.getLanguage() : null))) {
|
|
List<Integer> list2 = list;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
Iterator<T> it = list2.iterator();
|
|
while (it.hasNext()) {
|
|
arrayList.add(Integer.valueOf(((Number) it.next()).intValue() + 543));
|
|
}
|
|
list = arrayList;
|
|
}
|
|
}
|
|
arrayAdapter.addAll(list);
|
|
this.d = arrayAdapter;
|
|
notifyDataSetChanged();
|
|
}
|
|
|
|
@Override // android.widget.Adapter
|
|
public final int getCount() {
|
|
return this.d.getCount();
|
|
}
|
|
|
|
@Override // android.widget.Adapter
|
|
public final long getItemId(int i) {
|
|
return this.d.getItemId(i);
|
|
}
|
|
|
|
@Override // android.widget.Adapter
|
|
public final View getView(int i, View view, ViewGroup viewGroup) {
|
|
C14957gcv.e(viewGroup, "");
|
|
View view2 = this.d.getView(i, view, viewGroup);
|
|
C14957gcv.c(view2, "");
|
|
return view2;
|
|
}
|
|
}
|