package p044o0;

import android.text.Editable;
import androidx.emoji2.text.C0257q;

/* renamed from: o0.b */
/* loaded from: classes.dex */
public final class C1515b extends Editable.Factory {

    /* renamed from: a */
    public static final Object f3366a = new Object();

    /* renamed from: b */
    public static volatile Editable.Factory f3367b;

    /* renamed from: c */
    public static Class<?> f3368c;

    public C1515b() {
        try {
            f3368c = Class.forName("android.text.DynamicLayout$ChangeWatcher", false, C1515b.class.getClassLoader());
        } catch (Throwable unused) {
        }
    }

    public static Editable.Factory getInstance() {
        if (f3367b == null) {
            synchronized (f3366a) {
                if (f3367b == null) {
                    f3367b = new C1515b();
                }
            }
        }
        return f3367b;
    }

    @Override // android.text.Editable.Factory
    public Editable newEditable(CharSequence charSequence) {
        Class<?> cls = f3368c;
        return cls != null ? C0257q.m4309c(cls, charSequence) : super.newEditable(charSequence);
    }
}