package androidx.appcompat.widget;

import X6FRs_4.KQgRr5e_0.KQgRr5e_0;
import X6FRs_4.KQgRr5e_0.LGe8pk_15.Xgtqvk_8;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RatingBar;
/* loaded from: classes.dex */
public class AppCompatRatingBar extends RatingBar {
    public final Xgtqvk_8 KQgRr5e_0;

    public AppCompatRatingBar(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, KQgRr5e_0.ratingBarStyle);
    }

    @Override // android.widget.RatingBar, android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
    public synchronized void onMeasure(int i, int i2) {
        super.onMeasure(i, i2);
        Bitmap KQgRr5e_0 = this.KQgRr5e_0.KQgRr5e_0();
        if (KQgRr5e_0 != null) {
            setMeasuredDimension(View.resolveSizeAndState(KQgRr5e_0.getWidth() * getNumStars(), i, 0), getMeasuredHeight());
        }
    }

    public AppCompatRatingBar(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        Xgtqvk_8 xgtqvk_8 = new Xgtqvk_8(this);
        this.KQgRr5e_0 = xgtqvk_8;
        xgtqvk_8.KQgRr5e_0(attributeSet, i);
    }
}
