package n;

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

/* JADX INFO: renamed from: n.y, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1245y extends E.b {

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

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

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final /* synthetic */ C1187E f14960h;

    public C1245y(C1187E c1187e, int i, int i5, WeakReference weakReference) {
        this.f14960h = c1187e;
        this.f14957e = i;
        this.f14958f = i5;
        this.f14959g = weakReference;
    }

    @Override // E.b
    public final void i(Typeface typeface) {
        int i;
        if (Build.VERSION.SDK_INT >= 28 && (i = this.f14957e) != -1) {
            typeface = AbstractC1186D.a(typeface, i, (this.f14958f & 2) != 0);
        }
        C1187E c1187e = this.f14960h;
        if (c1187e.f14702m) {
            c1187e.f14701l = typeface;
            TextView textView = (TextView) this.f14959g.get();
            if (textView != null) {
                Field field = M.J.f4065a;
                if (textView.isAttachedToWindow()) {
                    textView.post(new d.f(textView, typeface, c1187e.f14699j));
                } else {
                    textView.setTypeface(typeface, c1187e.f14699j);
                }
            }
        }
    }

    @Override // E.b
    public final void h(int i) {
    }
}
