package androidx.emoji2.text;
import android.os.Build;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;
/* JADX INFO: loaded from: classes.dex */
abstract class h {
private static class a {
static Set<int[]> a() {
return b.a();
}
}
private static class b {
static Set a() {
try {
Object objInvoke = Class.forName("android.text.EmojiConsistency").getMethod("getEmojiConsistencySet", new Class[0]).invoke(null, new Object[0]);
if (objInvoke == null) {
return Collections.emptySet();
}
Set set = (Set) objInvoke;
Iterator it = set.iterator();
while (it.hasNext()) {
if (!(it.next() instanceof int[])) {
return Collections.emptySet();
}
}
return set;
} catch (Throwable unused) {
return Collections.emptySet();
}
}
}
static Set a() {
return Build.VERSION.SDK_INT >= 34 ? a.a() : b.a();
}
}
Download file