package androidx.preference;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.view.accessibility.AccessibilityManager;
import android.widget.Checkable;
import android.widget.CompoundButton;
import ar.tvplayer.tv.R;
import defpackage.AbstractC5234;
import defpackage.C2644;
import defpackage.C3385;

/* JADX INFO: loaded from: classes3.dex */
public class CheckBoxPreference extends TwoStatePreference {

    /* JADX INFO: renamed from: ᵮᵟᵡ, reason: contains not printable characters */
    public final C2644 f722;

    /* JADX WARN: Illegal instructions before constructor call */
    public CheckBoxPreference(Context context, AttributeSet attributeSet) {
        int i = ᵫﾞˌ.ˊᵫᵗ(context, R.attr.h, android.R.attr.checkBoxPreferenceStyle);
        super(context, attributeSet, i, 0);
        this.f722 = new C2644(this, 0);
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC5234.f19722, i, 0);
        String string = typedArrayObtainStyledAttributes.getString(5);
        this.f810 = string == null ? typedArrayObtainStyledAttributes.getString(0) : string;
        if (this.f812) {
            mo428();
        }
        String string2 = typedArrayObtainStyledAttributes.getString(4);
        this.f811 = string2 == null ? typedArrayObtainStyledAttributes.getString(1) : string2;
        if (!this.f812) {
            mo428();
        }
        this.f813 = typedArrayObtainStyledAttributes.getBoolean(3, typedArrayObtainStyledAttributes.getBoolean(2, false));
        typedArrayObtainStyledAttributes.recycle();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public final void m424(View view) {
        boolean z = view instanceof CompoundButton;
        if (z) {
            ((CompoundButton) view).setOnCheckedChangeListener(null);
        }
        if (view instanceof Checkable) {
            ((Checkable) view).setChecked(this.f812);
        }
        if (z) {
            ((CompoundButton) view).setOnCheckedChangeListener(this.f722);
        }
    }

    @Override // androidx.preference.Preference
    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final void mo425(View view) {
        super.mo425(view);
        if (((AccessibilityManager) this.f758.getSystemService("accessibility")).isEnabled()) {
            m424(view.findViewById(android.R.id.checkbox));
            m471(view.findViewById(android.R.id.summary));
        }
    }

    @Override // androidx.preference.Preference
    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public final void mo426(C3385 c3385) {
        super.mo426(c3385);
        m424(c3385.m7744(android.R.id.checkbox));
        m471(c3385.m7744(android.R.id.summary));
    }
}
