package androidx.appcompat.widget;

import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RatingBar;
import androidx.appcompat.R$attr;
import ῲ.ῲ.㴹.C2024;
import ῲ.ῲ.㴹.C2056;

public class AppCompatRatingBar extends RatingBar {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final C2024 f499;

    public AppCompatRatingBar(Context context) {
        this(context, null);
    }

    public synchronized void onMeasure(int i, int i2) {
        super.onMeasure(i, i2);
        Bitmap bitmap = this.f499.f6856;
        if (bitmap != null) {
            setMeasuredDimension(View.resolveSizeAndState(bitmap.getWidth() * getNumStars(), i, 0), getMeasuredHeight());
        }
    }

    public AppCompatRatingBar(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, R$attr.ratingBarStyle);
    }

    public AppCompatRatingBar(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        C2056.m5362(this, getContext());
        this.f499 = new C2024(this);
        this.f499.m5247(attributeSet, i);
    }
}
