package m;

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: m.A, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0832A extends F.b {

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

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

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

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

    public C0832A(C0837F c0837f, int i, int i5, WeakReference weakReference) {
        this.f8997h = c0837f;
        this.f8994e = i;
        this.f8995f = i5;
        this.f8996g = weakReference;
    }

    @Override // F.b
    public final void f(Typeface typeface) {
        int i;
        if (Build.VERSION.SDK_INT >= 28 && (i = this.f8994e) != -1) {
            typeface = AbstractC0836E.a(typeface, i, (this.f8995f & 2) != 0);
        }
        C0837F c0837f = this.f8997h;
        if (c0837f.f9011m) {
            c0837f.f9010l = typeface;
            TextView textView = (TextView) this.f8996g.get();
            if (textView != null) {
                Field field = P.Q.f2392a;
                if (textView.isAttachedToWindow()) {
                    textView.post(new V1.a(textView, typeface, c0837f.f9008j));
                } else {
                    textView.setTypeface(typeface, c0837f.f9008j);
                }
            }
        }
    }

    @Override // F.b
    public final void e(int i) {
    }
}
