Files
rr3-apk/decompiled-community/sources/com/fyber/inneractive/sdk/config/f.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

53 lines
2.0 KiB
Java

package com.fyber.inneractive.sdk.config;
import android.content.Context;
import android.os.LocaleList;
import android.text.TextUtils;
import android.view.inputmethod.InputMethodInfo;
import android.view.inputmethod.InputMethodManager;
import android.view.inputmethod.InputMethodSubtype;
import com.fyber.inneractive.sdk.util.IAlog;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes2.dex */
public final class f {
public static ArrayList a(Context context) {
List<InputMethodInfo> list;
HashSet hashSet = new HashSet();
InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService("input_method");
try {
list = inputMethodManager.getEnabledInputMethodList();
} catch (Throwable unused) {
list = null;
}
if (list != null) {
Iterator<InputMethodInfo> it = list.iterator();
int i = 0;
while (it.hasNext()) {
for (InputMethodSubtype inputMethodSubtype : inputMethodManager.getEnabledInputMethodSubtypeList(it.next(), true)) {
if (inputMethodSubtype.getMode().equals("keyboard") && i < 10) {
String locale = inputMethodSubtype.getLocale();
if (!TextUtils.isEmpty(locale)) {
try {
String replace = locale.replace("_", "-");
hashSet.add(replace);
IAlog.a("Available input language: %s", replace);
i++;
} catch (Exception unused2) {
}
}
}
}
}
}
if (hashSet.isEmpty()) {
hashSet.addAll(Arrays.asList(LocaleList.getDefault().toLanguageTags().split(",")));
}
return new ArrayList(hashSet);
}
}