mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
56 lines
1.7 KiB
Java
56 lines
1.7 KiB
Java
package androidx.emoji2.text;
|
|
|
|
import android.os.Build;
|
|
import java.util.Collections;
|
|
import java.util.Iterator;
|
|
import java.util.Set;
|
|
|
|
/* loaded from: classes.dex */
|
|
class EmojiExclusions {
|
|
private EmojiExclusions() {
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static Set<int[]> getEmojiExclusions() {
|
|
if (Build.VERSION.SDK_INT >= 34) {
|
|
return EmojiExclusions_Api34.getExclusions();
|
|
}
|
|
return EmojiExclusions_Reflections.getExclusions();
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
private static class EmojiExclusions_Api34 {
|
|
private EmojiExclusions_Api34() {
|
|
}
|
|
|
|
static Set<int[]> getExclusions() {
|
|
return EmojiExclusions_Reflections.getExclusions();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
/* loaded from: classes.dex */
|
|
public static class EmojiExclusions_Reflections {
|
|
private EmojiExclusions_Reflections() {
|
|
}
|
|
|
|
static Set<int[]> getExclusions() {
|
|
try {
|
|
Object invoke = Class.forName("android.text.EmojiConsistency").getMethod("getEmojiConsistencySet", new Class[0]).invoke(null, new Object[0]);
|
|
if (invoke == null) {
|
|
return Collections.emptySet();
|
|
}
|
|
Set<int[]> set = (Set) invoke;
|
|
Iterator<int[]> it = set.iterator();
|
|
while (it.hasNext()) {
|
|
if (!(it.next() instanceof int[])) {
|
|
return Collections.emptySet();
|
|
}
|
|
}
|
|
return set;
|
|
} catch (Throwable unused) {
|
|
return Collections.emptySet();
|
|
}
|
|
}
|
|
}
|
|
}
|