package androidx.emoji2.text;

import android.text.Spannable;
import android.text.SpannableString;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes.dex */
public final class z implements a0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final s f2288a;

    @Nullable
    public u0 spannable;

    public z(@Nullable u0 u0Var, s sVar) {
        this.spannable = u0Var;
        this.f2288a = sVar;
    }

    @Override // androidx.emoji2.text.a0
    public final Object b() {
        return this.spannable;
    }

    @Override // androidx.emoji2.text.a0
    public final boolean c(CharSequence charSequence, int i10, int i11, r0 r0Var) {
        if ((r0Var.f2265c & 4) > 0) {
            return true;
        }
        if (this.spannable == null) {
            this.spannable = new u0(charSequence instanceof Spannable ? (Spannable) charSequence : new SpannableString(charSequence));
        }
        ((m) this.f2288a).getClass();
        this.spannable.setSpan(new s0(r0Var), i10, i11, 33);
        return true;
    }
}
