package o;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.SeekBar;
import com.google.android.gms.common.R;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.h8, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1362h8 extends SeekBar {
    public final C1458i8 l;

    public C1362h8(Context context, AttributeSet attributeSet) {
        super(context, attributeSet, R.attr.seekBarStyle);
        AbstractC1498if0.a(this, getContext());
        C1458i8 c1458i8 = new C1458i8(this);
        this.l = c1458i8;
        c1458i8.g(attributeSet, R.attr.seekBarStyle);
    }

    @Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
    public final void drawableStateChanged() {
        super.drawableStateChanged();
        C1458i8 c1458i8 = this.l;
        C1362h8 c1362h8 = c1458i8.p;
        Drawable drawable = c1458i8.q;
        if (drawable != null && drawable.isStateful() && drawable.setState(c1362h8.getDrawableState())) {
            c1362h8.invalidateDrawable(drawable);
        }
    }

    @Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
    public final void jumpDrawablesToCurrentState() {
        super.jumpDrawablesToCurrentState();
        Drawable drawable = this.l.q;
        if (drawable != null) {
            drawable.jumpToCurrentState();
        }
    }

    @Override // android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
    public final synchronized void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        this.l.m(canvas);
    }
}
