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

56 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.BaseAdapter;
import java.util.Arrays;
import java.util.List;
/* renamed from: o.eyz, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12482eyz extends BaseAdapter {
private final ArrayAdapter<String> a;
private final List<String> e;
@Override // android.widget.Adapter
public final /* bridge */ /* synthetic */ Object getItem(int i) {
String item = this.a.getItem(i);
return item == null ? "" : item;
}
public C12482eyz(Context context) {
C14957gcv.e(context, "");
String[] strArr = {context.getString(com.scb.phone.R.string.calendar_full_january), context.getString(com.scb.phone.R.string.calendar_full_february), context.getString(com.scb.phone.R.string.calendar_full_march), context.getString(com.scb.phone.R.string.calendar_full_april), context.getString(com.scb.phone.R.string.calendar_full_may), context.getString(com.scb.phone.R.string.calendar_full_june), context.getString(com.scb.phone.R.string.calendar_full_july), context.getString(com.scb.phone.R.string.calendar_full_august), context.getString(com.scb.phone.R.string.calendar_full_september), context.getString(com.scb.phone.R.string.calendar_full_october), context.getString(com.scb.phone.R.string.calendar_full_november), context.getString(com.scb.phone.R.string.calendar_full_december)};
C14957gcv.e(strArr, "");
C14957gcv.e(strArr, "");
List<String> asList = Arrays.asList(strArr);
C14957gcv.c(asList, "");
this.e = asList;
ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(context, com.scb.phone.R.layout.2131559353);
arrayAdapter.setDropDownViewResource(com.scb.phone.R.layout.2131559353);
arrayAdapter.addAll(asList);
this.a = arrayAdapter;
notifyDataSetChanged();
}
@Override // android.widget.Adapter
public final int getCount() {
return this.a.getCount();
}
@Override // android.widget.Adapter
public final long getItemId(int i) {
return this.a.getItemId(i);
}
@Override // android.widget.Adapter
public final View getView(int i, View view, ViewGroup viewGroup) {
C14957gcv.e(viewGroup, "");
View view2 = this.a.getView(i, view, viewGroup);
C14957gcv.c(view2, "");
return view2;
}
}