package l;

import android.graphics.Typeface;
import android.os.Build;
import android.widget.TextView;
import java.lang.ref.WeakReference;

/* JADX INFO: loaded from: classes.dex */
public final class v0 extends i0.p {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f29856a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ int f29857b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ WeakReference f29858c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ a1 f29859d;

    public v0(a1 a1Var, int i10, int i11, WeakReference weakReference) {
        this.f29859d = a1Var;
        this.f29856a = i10;
        this.f29857b = i11;
        this.f29858c = weakReference;
    }

    @Override // i0.p
    public final void a(int i10) {
    }

    @Override // i0.p
    public final void b(Typeface typeface) {
        int i10;
        if (Build.VERSION.SDK_INT >= 28 && (i10 = this.f29856a) != -1) {
            typeface = z0.a(typeface, i10, (this.f29857b & 2) != 0);
        }
        a1 a1Var = this.f29859d;
        if (a1Var.f29616m) {
            a1Var.f29615l = typeface;
            TextView textView = (TextView) this.f29858c.get();
            if (textView != null) {
                if (textView.isAttachedToWindow()) {
                    textView.post(new w0(a1Var, textView, typeface, a1Var.f29613j));
                } else {
                    textView.setTypeface(typeface, a1Var.f29613j);
                }
            }
        }
    }
}
