package o0;

import android.os.LocaleList;
import android.view.inputmethod.EditorInfo;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Locale;

/* loaded from: classes.dex */
public final class s1 {

    /* renamed from: a, reason: collision with root package name */
    public static final s1 f30512a = new s1();

    private s1() {
    }

    public final void a(EditorInfo editorInfo, x2.e eVar) {
        int v10;
        if (kotlin.jvm.internal.t.b(eVar, x2.e.f50449r.b())) {
            editorInfo.hintLocales = null;
            return;
        }
        v10 = sm.v.v(eVar, 10);
        ArrayList arrayList = new ArrayList(v10);
        Iterator<E> it = eVar.iterator();
        while (it.hasNext()) {
            arrayList.add(((x2.d) it.next()).a());
        }
        Locale[] localeArr = (Locale[]) arrayList.toArray(new Locale[0]);
        editorInfo.hintLocales = new LocaleList((Locale[]) Arrays.copyOf(localeArr, localeArr.length));
    }
}
