You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
package androidx.emoji2.text;
|
|
|
|
import android.os.Build;
|
|
import android.text.TextPaint;
|
|
import androidx.emoji2.text.C0229g;
|
|
import p073z.C1882i;
|
|
|
|
/* renamed from: androidx.emoji2.text.f */
|
|
/* loaded from: classes.dex */
|
|
public class C0228f implements C0229g.InterfaceC0234d {
|
|
|
|
/* renamed from: b */
|
|
public static final ThreadLocal<StringBuilder> f1064b = new ThreadLocal<>();
|
|
|
|
/* renamed from: a */
|
|
public final TextPaint f1065a;
|
|
|
|
public C0228f() {
|
|
TextPaint textPaint = new TextPaint();
|
|
this.f1065a = textPaint;
|
|
textPaint.setTextSize(10.0f);
|
|
}
|
|
|
|
/* renamed from: b */
|
|
public static StringBuilder m4405b() {
|
|
ThreadLocal<StringBuilder> threadLocal = f1064b;
|
|
if (threadLocal.get() == null) {
|
|
threadLocal.set(new StringBuilder());
|
|
}
|
|
return threadLocal.get();
|
|
}
|
|
|
|
@Override // androidx.emoji2.text.C0229g.InterfaceC0234d
|
|
/* renamed from: a */
|
|
public boolean mo4377a(CharSequence charSequence, int i, int i2, int i3) {
|
|
int i4 = Build.VERSION.SDK_INT;
|
|
if (i4 >= 23 || i3 <= i4) {
|
|
StringBuilder m4405b = m4405b();
|
|
m4405b.setLength(0);
|
|
while (i < i2) {
|
|
m4405b.append(charSequence.charAt(i));
|
|
i++;
|
|
}
|
|
return C1882i.m134a(this.f1065a, m4405b.toString());
|
|
}
|
|
return false;
|
|
}
|
|
} |