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.AbstractC0042;
import defpackage.AbstractC1477;
import defpackage.AbstractC4608;
import defpackage.AbstractC4731;
import defpackage.AbstractComponentCallbacksC3693;
import defpackage.C1956;
import defpackage.C4069;
import defpackage.C4640;
import defpackage.C4877;
import defpackage.C4923;
import defpackage.DialogInterfaceOnCancelListenerC4853;

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

    /* renamed from: ʽᵢˊ, reason: contains not printable characters */
    public final String f723;

    /* renamed from: ᵠᵪˀᵻ, reason: contains not printable characters */
    public final int f724;

    /* renamed from: ᵣᵟᵔ, reason: contains not printable characters */
    public CharSequence f725;

    /* renamed from: ᵥʩᵩˑ, reason: contains not printable characters */
    public final String f726;

    /* renamed from: ᵨٴ, reason: contains not printable characters */
    public final String f727;

    /* renamed from: ᵲᵟ, reason: contains not printable characters */
    public final Drawable f728;

    public DialogPreference(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, ˋˌ.ᵶᵷᵕ(context, R.attr._11_res_0x7f0401f7, android.R.attr.dialogPreferenceStyle));
    }

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

    @Override // androidx.preference.Preference
    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public void mo427() {
        DialogInterfaceOnCancelListenerC4853 c4640;
        AbstractC0042 abstractC0042 = this.f765.f18593;
        if (abstractC0042 != null) {
            boolean zM4387 = abstractC0042.mo1070() instanceof AbstractC1477 ? ((AbstractC1477) abstractC0042.mo1070()).m4387(abstractC0042, this) : false;
            for (AbstractComponentCallbacksC3693 abstractComponentCallbacksC3693 = abstractC0042; !zM4387 && abstractComponentCallbacksC3693 != null; abstractComponentCallbacksC3693 = abstractComponentCallbacksC3693.f13750) {
                if (abstractComponentCallbacksC3693 instanceof AbstractC1477) {
                    zM4387 = ((AbstractC1477) abstractComponentCallbacksC3693).m4387(abstractC0042, this);
                }
            }
            if (!zM4387) {
                abstractC0042.mo4691();
            }
            if (!zM4387) {
                abstractC0042.m8294();
            }
            if (!zM4387 && abstractC0042.m8326().m9965("androidx.preference.PreferenceFragment.DIALOG") == null) {
                if (this instanceof EditTextPreference) {
                    String str = this.f775;
                    c4640 = new C4923();
                    Bundle bundle = new Bundle(1);
                    bundle.putString("key", str);
                    c4640.m8306(bundle);
                } else if (this instanceof ListPreference) {
                    String str2 = this.f775;
                    c4640 = new C1956();
                    Bundle bundle2 = new Bundle(1);
                    bundle2.putString("key", str2);
                    c4640.m8306(bundle2);
                } else {
                    if (!(this instanceof MultiSelectListPreference)) {
                        C4069.m8934("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.f775;
                    c4640 = new C4640();
                    Bundle bundle3 = new Bundle(1);
                    bundle3.putString("key", str3);
                    c4640.m8306(bundle3);
                }
                c4640.m8319(abstractC0042);
                AbstractC4731 abstractC4731M8326 = abstractC0042.m8326();
                c4640.f18013 = false;
                c4640.f18018 = true;
                C4877 c4877 = new C4877(abstractC4731M8326);
                c4877.f18146 = true;
                c4877.m10299(0, c4640, "androidx.preference.PreferenceFragment.DIALOG", 1);
                c4877.m10300();
            }
        }
    }
}
