package o;

import android.graphics.Typeface;
import android.text.TextPaint;
import android.text.style.MetricAffectingSpan;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.tA, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2505tA extends MetricAffectingSpan {
    public final /* synthetic */ int l;
    public final Object m;

    public /* synthetic */ C2505tA(int i, Object obj) {
        this.l = i;
        this.m = obj;
    }

    @Override // android.text.style.CharacterStyle
    public final void updateDrawState(TextPaint textPaint) {
        switch (this.l) {
            case 0:
                textPaint.setFontFeatureSettings((String) this.m);
                break;
            default:
                textPaint.setTypeface((Typeface) this.m);
                break;
        }
    }

    @Override // android.text.style.MetricAffectingSpan
    public final void updateMeasureState(TextPaint textPaint) {
        switch (this.l) {
            case 0:
                textPaint.setFontFeatureSettings((String) this.m);
                break;
            default:
                textPaint.setTypeface((Typeface) this.m);
                break;
        }
    }
}
