package androidx.preference;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.AttributeSet;
import ar.tvplayer.tv.R;
import defpackage.AbstractC0651;
import defpackage.AbstractC2823;
import defpackage.AbstractC4785;
import defpackage.AbstractC5234;
import defpackage.AbstractComponentCallbacksC3393;
import defpackage.C0586;
import defpackage.C1440;
import defpackage.C1611;
import defpackage.C3226;
import defpackage.C3503;
import defpackage.DialogInterfaceOnCancelListenerC0244;

/* JADX INFO: loaded from: classes3.dex */
public abstract class DialogPreference extends Preference {

    /* JADX INFO: renamed from: ˆʤᵳ, reason: contains not printable characters */
    public final String f723;

    /* JADX INFO: renamed from: ˏʜᵪ, reason: contains not printable characters */
    public final String f724;

    /* JADX INFO: renamed from: ᵘᵝ, reason: contains not printable characters */
    public final Drawable f725;

    /* JADX INFO: renamed from: ᵬᵦˋ, reason: contains not printable characters */
    public CharSequence f726;

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

    /* JADX INFO: renamed from: ᵹʾᵢᵯ, reason: contains not printable characters */
    public final String f728;

    public DialogPreference(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, ᵫﾞˌ.ˊᵫᵗ(context, R.attr.h, android.R.attr.dialogPreferenceStyle));
    }

    public DialogPreference(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i, 0);
        TypedArray typedArrayObtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC5234.f19724, i, 0);
        String string = typedArrayObtainStyledAttributes.getString(9);
        string = string == null ? typedArrayObtainStyledAttributes.getString(0) : string;
        this.f726 = string;
        if (string == null) {
            this.f726 = this.f781;
        }
        String string2 = typedArrayObtainStyledAttributes.getString(8);
        this.f724 = string2 == null ? typedArrayObtainStyledAttributes.getString(1) : string2;
        Drawable drawable = typedArrayObtainStyledAttributes.getDrawable(6);
        this.f725 = drawable == null ? typedArrayObtainStyledAttributes.getDrawable(2) : drawable;
        String string3 = typedArrayObtainStyledAttributes.getString(11);
        this.f723 = string3 == null ? typedArrayObtainStyledAttributes.getString(3) : string3;
        String string4 = typedArrayObtainStyledAttributes.getString(10);
        this.f728 = string4 == null ? typedArrayObtainStyledAttributes.getString(4) : string4;
        this.f727 = typedArrayObtainStyledAttributes.getResourceId(7, typedArrayObtainStyledAttributes.getResourceId(5, 0));
        typedArrayObtainStyledAttributes.recycle();
    }

    @Override // androidx.preference.Preference
    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public void mo427() {
        DialogInterfaceOnCancelListenerC0244 c1611;
        AbstractC4785 abstractC4785 = this.f769.f6508;
        if (abstractC4785 != null) {
            boolean zM6811 = abstractC4785.mo2404() instanceof AbstractC2823 ? ((AbstractC2823) abstractC4785.mo2404()).m6811(abstractC4785, this) : false;
            for (AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = abstractC4785; !zM6811 && abstractComponentCallbacksC3393 != null; abstractComponentCallbacksC3393 = abstractComponentCallbacksC3393.f13069) {
                if (abstractComponentCallbacksC3393 instanceof AbstractC2823) {
                    zM6811 = ((AbstractC2823) abstractComponentCallbacksC3393).m6811(abstractC4785, this);
                }
            }
            if (!zM6811) {
                abstractC4785.mo2403();
            }
            if (!zM6811) {
                abstractC4785.m7767();
            }
            if (!zM6811 && abstractC4785.m7758().m2368("androidx.preference.PreferenceFragment.DIALOG") == null) {
                if (this instanceof EditTextPreference) {
                    String str = this.f752;
                    c1611 = new C3503();
                    Bundle bundle = new Bundle(1);
                    bundle.putString("key", str);
                    c1611.m7764(bundle);
                } else if (this instanceof ListPreference) {
                    String str2 = this.f752;
                    c1611 = new C1440();
                    Bundle bundle2 = new Bundle(1);
                    bundle2.putString("key", str2);
                    c1611.m7764(bundle2);
                } else {
                    if (!(this instanceof MultiSelectListPreference)) {
                        C3226.m7372("Cannot display dialog for an unknown Preference type: ", getClass().getSimpleName(), ". Make sure to implement onPreferenceDisplayDialog() to handle displaying a custom dialog for this Preference.");
                        return;
                    }
                    String str3 = this.f752;
                    c1611 = new C1611();
                    Bundle bundle3 = new Bundle(1);
                    bundle3.putString("key", str3);
                    c1611.m7764(bundle3);
                }
                c1611.m7770(abstractC4785);
                AbstractC0651 abstractC0651M7758 = abstractC4785.m7758();
                c1611.f1808 = false;
                c1611.f1806 = true;
                C0586 c0586 = new C0586(abstractC0651M7758);
                c0586.f2873 = true;
                c0586.m2211(0, c1611, "androidx.preference.PreferenceFragment.DIALOG", 1);
                c0586.m2214();
            }
        }
    }
}
