package o;

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

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.v8, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2691v8 extends AbstractC0249Jp {
    public final /* synthetic */ int e;
    public final /* synthetic */ int f;
    public final /* synthetic */ WeakReference g;
    public final /* synthetic */ A8 h;

    public C2691v8(A8 a8, int i, int i2, WeakReference weakReference) {
        this.h = a8;
        this.e = i;
        this.f = i2;
        this.g = weakReference;
    }

    @Override // o.AbstractC0249Jp
    public final void V(Typeface typeface) {
        int i;
        if (Build.VERSION.SDK_INT >= 28 && (i = this.e) != -1) {
            typeface = AbstractC3071z8.a(typeface, i, (this.f & 2) != 0);
        }
        A8 a8 = this.h;
        if (a8.m) {
            a8.l = typeface;
            TextView textView = (TextView) this.g.get();
            if (textView != null) {
                if (textView.isAttachedToWindow()) {
                    textView.post(new RunnableC2786w8(a8.j, 0, textView, typeface));
                } else {
                    textView.setTypeface(typeface, a8.j);
                }
            }
        }
    }

    @Override // o.AbstractC0249Jp
    public final void U(int i) {
    }
}
