package com.zhihu.matisse.internal.ui.widget;

import android.content.Context;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import androidx.appcompat.widget.AppCompatImageView;
import com.zhihu.matisse.R$color;
import com.zhihu.matisse.R$drawable;
import K.K.K.ʬ.C2369;

public class CheckRadioView extends AppCompatImageView {

    /* renamed from: ʬ  reason: contains not printable characters */
    public int f3359;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Drawable f3360;

    /* renamed from: 㸾  reason: contains not printable characters */
    public int f3361;

    public CheckRadioView(Context context) {
        super(context);
        m1925();
    }

    public void setChecked(boolean z) {
        if (z) {
            setImageResource(R$drawable.ic_preview_radio_on);
            this.f3360 = getDrawable();
            this.f3360.setColorFilter(this.f3359, PorterDuff.Mode.SRC_IN);
            return;
        }
        setImageResource(R$drawable.ic_preview_radio_off);
        this.f3360 = getDrawable();
        this.f3360.setColorFilter(this.f3361, PorterDuff.Mode.SRC_IN);
    }

    public void setColor(int i) {
        if (this.f3360 == null) {
            this.f3360 = getDrawable();
        }
        this.f3360.setColorFilter(i, PorterDuff.Mode.SRC_IN);
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public final void m1925() {
        this.f3359 = C2369.m6297(getResources(), R$color.zhihu_item_checkCircle_backgroundColor, getContext().getTheme());
        this.f3361 = C2369.m6297(getResources(), R$color.zhihu_check_original_radio_disable, getContext().getTheme());
        setChecked(false);
    }

    public CheckRadioView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        m1925();
    }
}
