package p000.p001.p002.p016.p017;

import android.graphics.Rect;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentContainerView;
import androidx.leanback.widget.VerticalGridView;
import androidx.lifecycle.LiveData;
import androidx.recyclerview.widget.RecyclerView;
import ar.tvplayer.core.data.db.entities.ނ;
import ar.tvplayer.core.data.db.entities.ފ;
import ar.tvplayer.core.data.db.entities.ޟ;
import ar.tvplayer.core.data.prefs.ރ;
import ar.tvplayer.core.domain.ލ;
import ar.tvplayer.core.domain.ޏ;
import ar.tvplayer.core.domain.ޑ;
import ar.tvplayer.core.ui.view.CustomConstraintLayout;
import ar.tvplayer.core.ui.view.LogoImageView;
import ar.tvplayer.core.util.CommonUtilsKt;
import ar.tvplayer.tv.base.ui.view.CircleButton;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CancellationException;
import java.util.concurrent.TimeUnit;
import kotlin.TypeCastException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import p000.p001.p002.p008.p009.AbstractActivityC0773;
import p000.p001.p002.p008.p009.AbstractC0871;
import p000.p001.p002.p008.p009.C0743;
import p000.p001.p002.p008.p009.C0846;
import p000.p001.p002.p008.p009.C0851;
import p000.p001.p002.p008.p009.C0883;
import p000.p001.p002.p008.p009.C0884;
import p000.p001.p002.p008.p009.EnumC0824;
import p000.p001.p002.p008.p009.SharedPreferencesOnSharedPreferenceChangeListenerC0830;
import p000.p001.p002.p016.C1154;
import p000.p001.p002.p016.C1155;
import p000.p001.p002.p016.C1156;
import p000.p001.p002.p016.p017.C1158;
import p000.p001.p021.C1255;
import p000.p001.p021.p022.C1219;
import p025.p026.InterfaceC1327;
import p025.p026.InterfaceC1363;
import p037.p041.p042.LayoutInflaterFactory2C1494;
import p037.p089.p090.AbstractC2014;
import p037.p089.p090.ActivityC1999;
import p037.p089.p090.C1988;
import p037.p099.AbstractC2245;
import p037.p099.AbstractC2248;
import p037.p099.C2250;
import p037.p099.C2251;
import p037.p099.InterfaceC2219;
import p037.p099.InterfaceC2230;
import p037.p107.p108.AbstractC2358;
import p037.p107.p108.C2339;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6541;
import p402.C6549;
import p402.InterfaceC6538;
import p402.InterfaceC6540;
import p402.p403.C6560;
import p402.p403.C6563;
import p402.p405.InterfaceC6575;
import p402.p405.p406.EnumC6586;
import p402.p405.p407.p408.AbstractC6597;
import p402.p405.p407.p408.InterfaceC6593;
import p402.p411.p412.InterfaceC6603;
import p402.p411.p412.InterfaceC6618;
import p402.p411.p413.AbstractC6636;
import p402.p411.p413.C6635;
import p463.p484.p485.AbstractC7191;
import p463.p484.p485.C7177;
import p463.p484.p485.C7178;
import p463.p484.p485.C7179;

/* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public final class C1172 extends AbstractC0871 implements C0743.InterfaceC0748 {

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public final InterfaceC6538 f4257;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public final InterfaceC6538 f4258;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public final InterfaceC6538 f4259;

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public InterfaceC1363 f4260;

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public HashMap f4261;

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$֏, reason: contains not printable characters */
    @InterfaceC6540
    public static final class C1173 implements Parcelable {
        public static final Parcelable.Creator CREATOR = new C1174();

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final boolean f4262;

        /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$֏$֏, reason: contains not printable characters */
        public static class C1174 implements Parcelable.Creator {
            @Override // android.os.Parcelable.Creator
            public final Object createFromParcel(Parcel parcel) {
                if (parcel != null) {
                    return new C1173(parcel.readInt() != 0);
                }
                C6635.m9824("in");
                throw null;
            }

            @Override // android.os.Parcelable.Creator
            public final Object[] newArray(int i) {
                return new C1173[i];
            }
        }

        public C1173(boolean z) {
            this.f4262 = z;
        }

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        public boolean equals(Object obj) {
            if (this != obj) {
                return (obj instanceof C1173) && this.f4262 == ((C1173) obj).f4262;
            }
            return true;
        }

        public int hashCode() {
            boolean z = this.f4262;
            if (z) {
                return 1;
            }
            return z ? 1 : 0;
        }

        public String toString() {
            return C2803.m4885(C2803.m4889("Args(isOpenedFromNavigation="), this.f4262, ")");
        }

        @Override // android.os.Parcelable
        public void writeToParcel(Parcel parcel, int i) {
            if (parcel != null) {
                parcel.writeInt(this.f4262 ? 1 : 0);
            } else {
                C6635.m9824("parcel");
                throw null;
            }
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ؠ, reason: contains not printable characters */
    @InterfaceC6540
    public static abstract class AbstractC1175 {

        /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ؠ$֏, reason: contains not printable characters */
        public static final class C1176 extends AbstractC1175 {

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final C7178 f4263;

            /* JADX WARN: Illegal instructions before constructor call */
            public C1176(C7178 c7178) {
                DefaultConstructorMarker defaultConstructorMarker = null;
                if (c7178 == null) {
                    C6635.m9824("date");
                    throw null;
                }
                super(defaultConstructorMarker);
                this.f4263 = c7178;
            }

            public boolean equals(Object obj) {
                if (this != obj) {
                    return (obj instanceof C1176) && C6635.m9825(this.f4263, ((C1176) obj).f4263);
                }
                return true;
            }

            public int hashCode() {
                C7178 c7178 = this.f4263;
                if (c7178 != null) {
                    return c7178.hashCode();
                }
                return 0;
            }

            public String toString() {
                StringBuilder sbM4889 = C2803.m4889("HeaderItem(date=");
                sbM4889.append(this.f4263);
                sbM4889.append(")");
                return sbM4889.toString();
            }

            @Override // p000.p001.p002.p016.p017.C1172.AbstractC1175
            /* JADX INFO: renamed from: ֏ */
            public boolean mo2455(AbstractC1175 abstractC1175) {
                if (abstractC1175 != null) {
                    return true;
                }
                C6635.m9824("otherItem");
                throw null;
            }

            @Override // p000.p001.p002.p016.p017.C1172.AbstractC1175
            /* JADX INFO: renamed from: ؠ */
            public boolean mo2456(AbstractC1175 abstractC1175) {
                if (abstractC1175 != null) {
                    return (abstractC1175 instanceof C1176) && C6635.m9825(this, abstractC1175);
                }
                C6635.m9824("otherItem");
                throw null;
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ؠ$ؠ, reason: contains not printable characters */
        public static final class C1177 extends AbstractC1175 {

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final ޟ f4264;

            /* JADX WARN: Illegal instructions before constructor call */
            public C1177(ޟ r2) {
                DefaultConstructorMarker defaultConstructorMarker = null;
                if (r2 == null) {
                    C6635.m9824("reminder");
                    throw null;
                }
                super(defaultConstructorMarker);
                this.f4264 = r2;
            }

            public boolean equals(Object obj) {
                if (this != obj) {
                    return (obj instanceof C1177) && C6635.m9825(this.f4264, ((C1177) obj).f4264);
                }
                return true;
            }

            public int hashCode() {
                ޟ r0 = this.f4264;
                if (r0 != null) {
                    return r0.hashCode();
                }
                return 0;
            }

            public String toString() {
                StringBuilder sbM4889 = C2803.m4889("ReminderItem(reminder=");
                sbM4889.append(this.f4264);
                sbM4889.append(")");
                return sbM4889.toString();
            }

            @Override // p000.p001.p002.p016.p017.C1172.AbstractC1175
            /* JADX INFO: renamed from: ֏ */
            public boolean mo2455(AbstractC1175 abstractC1175) {
                if (abstractC1175 != null) {
                    return C6635.m9825(this, abstractC1175);
                }
                C6635.m9824("otherItem");
                throw null;
            }

            @Override // p000.p001.p002.p016.p017.C1172.AbstractC1175
            /* JADX INFO: renamed from: ؠ */
            public boolean mo2456(AbstractC1175 abstractC1175) {
                if (abstractC1175 != null) {
                    return (abstractC1175 instanceof C1177) && this.f4264.ހ == ((C1177) abstractC1175).f4264.ހ;
                }
                C6635.m9824("otherItem");
                throw null;
            }
        }

        public AbstractC1175() {
        }

        public /* synthetic */ AbstractC1175(DefaultConstructorMarker defaultConstructorMarker) {
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public abstract boolean mo2455(AbstractC1175 abstractC1175);

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public abstract boolean mo2456(AbstractC1175 abstractC1175);
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ހ, reason: contains not printable characters */
    public static final class C1178 extends C2339.AbstractC2343<AbstractC1175> {
        @Override // p037.p107.p108.C2339.AbstractC2343
        /* JADX INFO: renamed from: ֏ */
        public boolean mo1574(AbstractC1175 abstractC1175, AbstractC1175 abstractC11752) {
            AbstractC1175 abstractC11753 = abstractC1175;
            AbstractC1175 abstractC11754 = abstractC11752;
            if (abstractC11753 == null) {
                C6635.m9824("oldItem");
                throw null;
            }
            if (abstractC11754 != null) {
                return abstractC11753.mo2455(abstractC11754);
            }
            C6635.m9824("newItem");
            throw null;
        }

        @Override // p037.p107.p108.C2339.AbstractC2343
        /* JADX INFO: renamed from: ؠ */
        public boolean mo1575(AbstractC1175 abstractC1175, AbstractC1175 abstractC11752) {
            AbstractC1175 abstractC11753 = abstractC1175;
            AbstractC1175 abstractC11754 = abstractC11752;
            if (abstractC11753 == null) {
                C6635.m9824("oldItem");
                throw null;
            }
            if (abstractC11754 != null) {
                return abstractC11753.mo2456(abstractC11754);
            }
            C6635.m9824("newItem");
            throw null;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ށ, reason: contains not printable characters */
    public enum EnumC1179 {
        UPDATE_SELECTION
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ, reason: contains not printable characters */
    @InterfaceC6540
    public final class C1180 extends AbstractC2358<AbstractC1175, AbstractC1181> {

        /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ$֏, reason: contains not printable characters */
        public abstract class AbstractC1181 extends RecyclerView.AbstractC0224 {
            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public AbstractC1181(C1180 c1180, View view) {
                super(view);
                if (view != null) {
                } else {
                    C6635.m9824("containerView");
                    throw null;
                }
            }

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public void mo2458(AbstractC1175 abstractC1175, int i, EnumC1179 enumC1179) {
                if (abstractC1175 != null) {
                    return;
                }
                C6635.m9824("item");
                throw null;
            }

            /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
            public void mo2459() {
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ$ؠ, reason: contains not printable characters */
        public final class C1182 extends AbstractC1181 {

            /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
            public final View f4268;

            /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
            public final /* synthetic */ C1180 f4269;

            /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
            public HashMap f4270;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C1182(C1180 c1180, View view) {
                super(c1180, view);
                if (view == null) {
                    C6635.m9824("containerView");
                    throw null;
                }
                this.f4269 = c1180;
                this.f4268 = view;
            }

            @Override // p000.p001.p002.p016.p017.C1172.C1180.AbstractC1181
            /* JADX INFO: renamed from: ֏ */
            public void mo2458(AbstractC1175 abstractC1175, int i, EnumC1179 enumC1179) {
                if (abstractC1175 == null) {
                    C6635.m9824("item");
                    throw null;
                }
                TextView textView = (TextView) m2460(C1155.tvHeader);
                C6635.m9823((Object) textView, "tvHeader");
                textView.setText(C1172.this.m2147(((AbstractC1175.C1176) abstractC1175).f4263, false));
                TextView textView2 = (TextView) m2460(C1155.tvHeader);
                C6635.m9823((Object) textView2, "tvHeader");
                textView2.setTextSize(C0884.f3553.f3536);
            }

            /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
            public View m2460(int i) {
                if (this.f4270 == null) {
                    this.f4270 = new HashMap();
                }
                View view = (View) this.f4270.get(Integer.valueOf(i));
                if (view != null) {
                    return view;
                }
                View view2 = this.f4268;
                if (view2 == null) {
                    return null;
                }
                View viewFindViewById = view2.findViewById(i);
                this.f4270.put(Integer.valueOf(i), viewFindViewById);
                return viewFindViewById;
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ$ހ, reason: contains not printable characters */
        @InterfaceC6540
        public final class C1183 extends AbstractC1181 {

            /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
            public C0883 f4271;

            /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
            public InterfaceC1363 f4272;

            /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
            public final View f4273;

            /* JADX INFO: renamed from: ޙ, reason: contains not printable characters */
            public final /* synthetic */ C1180 f4274;

            /* JADX INFO: renamed from: ޚ, reason: contains not printable characters */
            public HashMap f4275;

            /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ$ހ$֏, reason: contains not printable characters */
            public static final class C1184 extends AbstractC6636 implements InterfaceC6618<Integer, Rect, Boolean> {
                public C1184() {
                    super(2);
                }

                @Override // p402.p411.p412.InterfaceC6618
                /* JADX INFO: renamed from: ؠ */
                public Boolean mo838(Integer num, Rect rect) {
                    num.intValue();
                    C1183.this.m2461(C1155.focusableBackground).requestFocus();
                    return true;
                }
            }

            /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ$ހ$ؠ, reason: contains not printable characters */
            @InterfaceC6540
            public static final class ViewOnFocusChangeListenerC1185 implements View.OnFocusChangeListener {

                /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ$ހ$ؠ$֏, reason: contains not printable characters */
                @InterfaceC6593(c = "ar.tvplayer.tv.reminders.ui.RemindersFragment$RemindersAdapter$ReminderViewHolder$2$1", f = "RemindersFragment.kt", l = {429}, m = "invokeSuspend")
                public static final class C1186 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

                    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
                    public InterfaceC1327 f4278;

                    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
                    public Object f4279;

                    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
                    public int f4280;

                    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
                    public final /* synthetic */ boolean f4282;

                    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
                    public C1186(boolean z, InterfaceC6575 interfaceC6575) {
                        super(2, interfaceC6575);
                        this.f4282 = z;
                    }

                    @Override // p402.p405.p407.p408.AbstractC6589
                    /* JADX INFO: renamed from: ֏ */
                    public final InterfaceC6575<C6549> mo837(Object obj, InterfaceC6575<?> interfaceC6575) {
                        if (interfaceC6575 == null) {
                            C6635.m9824("completion");
                            throw null;
                        }
                        C1186 c1186 = ViewOnFocusChangeListenerC1185.this.new C1186(this.f4282, interfaceC6575);
                        c1186.f4278 = (InterfaceC1327) obj;
                        return c1186;
                    }

                    @Override // p402.p411.p412.InterfaceC6618
                    /* JADX INFO: renamed from: ؠ */
                    public final Object mo838(InterfaceC1327 interfaceC1327, InterfaceC6575<? super C6549> interfaceC6575) {
                        return ((C1186) mo837(interfaceC1327, interfaceC6575)).mo839(C6549.f19328);
                    }

                    @Override // p402.p405.p407.p408.AbstractC6589
                    /* JADX INFO: renamed from: ށ */
                    public final Object mo839(Object obj) {
                        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
                        int i = this.f4280;
                        if (i == 0) {
                            C4303.m7198(obj);
                            InterfaceC1327 interfaceC1327 = this.f4278;
                            if (this.f4282) {
                                this.f4279 = interfaceC1327;
                                this.f4280 = 1;
                                if (C4303.m7005(500L, this) == enumC6586) {
                                    return enumC6586;
                                }
                            }
                        } else {
                            if (i != 1) {
                                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                            }
                            C4303.m7198(obj);
                        }
                        TextView textView = (TextView) C1183.this.m2461(C1155.tvProgramTitle);
                        C6635.m9823((Object) textView, "tvProgramTitle");
                        textView.setSelected(this.f4282);
                        return C6549.f19328;
                    }
                }

                public ViewOnFocusChangeListenerC1185() {
                }

                @Override // android.view.View.OnFocusChangeListener
                public final void onFocusChange(View view, boolean z) {
                    C1183.this.m2462();
                    InterfaceC1363 interfaceC1363 = C1183.this.f4272;
                    if (interfaceC1363 != null) {
                        C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
                    }
                    C1183 c1183 = C1183.this;
                    c1183.f4272 = CommonUtilsKt.ؠ(C1172.this, new C1186(z, null));
                }
            }

            /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ނ$ހ$ހ, reason: contains not printable characters */
            public static final class ViewOnClickListenerC1187 implements View.OnClickListener {
                public ViewOnClickListenerC1187() {
                }

                @Override // android.view.View.OnClickListener
                public final void onClick(View view) {
                    C1172.m2445(C1172.this);
                }
            }

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C1183(C1180 c1180, View view) {
                super(c1180, view);
                if (view == null) {
                    C6635.m9824("containerView");
                    throw null;
                }
                this.f4274 = c1180;
                this.f4273 = view;
                C1172 c1172 = C1172.this;
                View view2 = this.f1326;
                C6635.m9823((Object) view2, "itemView");
                C1172.m2446(c1172, view2);
                CustomConstraintLayout customConstraintLayout = this.f1326;
                if (customConstraintLayout == null) {
                    throw new TypeCastException("null cannot be cast to non-null type ar.tvplayer.core.ui.view.CustomConstraintLayout");
                }
                customConstraintLayout.setOnRequestFocusInDescendantsListener(new C1184());
                m2461(C1155.focusableBackground).setOnFocusChangeListener(new ViewOnFocusChangeListenerC1185());
                m2461(C1155.focusableBackground).setOnClickListener(new ViewOnClickListenerC1187());
            }

            @Override // p000.p001.p002.p016.p017.C1172.C1180.AbstractC1181
            /* JADX INFO: renamed from: ֏ */
            public void mo2458(AbstractC1175 abstractC1175, int i, EnumC1179 enumC1179) {
                if (abstractC1175 == null) {
                    C6635.m9824("item");
                    throw null;
                }
                ޟ r11 = ((AbstractC1175.C1177) abstractC1175).f4264;
                if (enumC1179 != null && enumC1179.ordinal() == 0) {
                    m2462();
                    return;
                }
                C0883 c0883 = this.f4271;
                if (c0883 == null || c0883 != C0884.f3553) {
                    this.f4271 = C0884.f3553;
                    TextView textView = (TextView) m2461(C1155.tvProgramTitle);
                    C6635.m9823((Object) textView, "tvProgramTitle");
                    C0883 c08832 = this.f4271;
                    if (c08832 == null) {
                        C6635.m9826("tvGuideAppearance");
                        throw null;
                    }
                    textView.setTextSize(c08832.f3544);
                    TextView textView2 = (TextView) m2461(C1155.tvProgramTime);
                    C6635.m9823((Object) textView2, "tvProgramTime");
                    C0883 c08833 = this.f4271;
                    if (c08833 == null) {
                        C6635.m9826("tvGuideAppearance");
                        throw null;
                    }
                    textView2.setTextSize(c08833.f3545);
                    LogoImageView logoImageViewM2461 = m2461(C1155.ivLogo);
                    C6635.m9823((Object) logoImageViewM2461, "ivLogo");
                    ViewGroup.LayoutParams layoutParams = logoImageViewM2461.getLayoutParams();
                    if (layoutParams == null) {
                        throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                    }
                    ConstraintLayout.C0075 c0075 = (ConstraintLayout.C0075) layoutParams;
                    C0883 c08834 = this.f4271;
                    if (c08834 == null) {
                        C6635.m9826("tvGuideAppearance");
                        throw null;
                    }
                    ((ViewGroup.MarginLayoutParams) c0075).width = C4303.m6974(((double) c08834.f3550) * 1.1d);
                    C0883 c08835 = this.f4271;
                    if (c08835 == null) {
                        C6635.m9826("tvGuideAppearance");
                        throw null;
                    }
                    ((ViewGroup.MarginLayoutParams) c0075).height = C4303.m6974(((double) c08835.f3551) * 1.1d);
                    logoImageViewM2461.setLayoutParams(c0075);
                    TextView textView3 = (TextView) m2461(C1155.tvChannel);
                    C6635.m9823((Object) textView3, "tvChannel");
                    C0883 c08836 = this.f4271;
                    if (c08836 == null) {
                        C6635.m9826("tvGuideAppearance");
                        throw null;
                    }
                    textView3.setTextSize(c08836.f3543);
                }
                TextView textView4 = (TextView) m2461(C1155.tvProgramTitle);
                C6635.m9823((Object) textView4, "tvProgramTitle");
                textView4.setText(r11.މ);
                TextView textView5 = (TextView) m2461(C1155.tvProgramTime);
                C6635.m9823((Object) textView5, "tvProgramTime");
                textView5.setText(ލ.ؠ(r11.އ, false, 2) + " — " + ލ.ؠ(r11.ވ, false, 2));
                C1172 c1172 = C1172.this;
                ފ r4 = (ފ) r11.ؠ.getValue();
                LogoImageView logoImageViewM24612 = m2461(C1155.ivLogo);
                C6635.m9823((Object) logoImageViewM24612, "ivLogo");
                C1219.m2490((Fragment) c1172, r4, (ImageView) logoImageViewM24612, C0884.m2160(), 0, 8);
                TextView textView6 = (TextView) m2461(C1155.tvChannel);
                C6635.m9823((Object) textView6, "tvChannel");
                textView6.setText((String) r11.֏.getValue());
                m2462();
            }

            /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
            public View m2461(int i) {
                if (this.f4275 == null) {
                    this.f4275 = new HashMap();
                }
                View view = (View) this.f4275.get(Integer.valueOf(i));
                if (view != null) {
                    return view;
                }
                View view2 = this.f4273;
                if (view2 == null) {
                    return null;
                }
                View viewFindViewById = view2.findViewById(i);
                this.f4275.put(Integer.valueOf(i), viewFindViewById);
                return viewFindViewById;
            }

            @Override // p000.p001.p002.p016.p017.C1172.C1180.AbstractC1181
            /* JADX INFO: renamed from: ޏ */
            public void mo2459() {
                InterfaceC1363 interfaceC1363 = this.f4272;
                if (interfaceC1363 != null) {
                    C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
                }
            }

            /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
            public final void m2462() {
                int iM741 = m741();
                if (iM741 == -1) {
                    return;
                }
                View viewM2461 = m2461(C1155.divider);
                C6635.m9823((Object) viewM2461, "divider");
                List<T> list = this.f4274.f7504.f7333;
                C6635.m9823((Object) list, "currentList");
                viewM2461.setVisibility(C6560.m9773(list, iM741 + 1) instanceof AbstractC1175.C1177 ? 0 : 8);
            }
        }

        public C1180() {
            super(new C1178());
        }

        @Override // androidx.recyclerview.widget.RecyclerView.AbstractC0191
        /* JADX INFO: renamed from: ֏ */
        public RecyclerView.AbstractC0224 mo328(ViewGroup viewGroup, int i) {
            if (viewGroup == null) {
                C6635.m9824("parent");
                throw null;
            }
            View viewM2472 = C1219.m2472(viewGroup, i, false, 2);
            if (i == C1156.item_reminder_header) {
                return new C1182(this, viewM2472);
            }
            if (i == C1156.item_reminder) {
                return new C1183(this, viewM2472);
            }
            throw new IllegalArgumentException(C2803.m4871("Unhandled viewType: ", i));
        }

        @Override // androidx.recyclerview.widget.RecyclerView.AbstractC0191
        /* JADX INFO: renamed from: ֏ */
        public void mo330(RecyclerView.AbstractC0224 abstractC0224, int i) {
            AbstractC1181 abstractC1181 = (AbstractC1181) abstractC0224;
            if (abstractC1181 != null) {
                m2457(abstractC1181, i, (List<? extends Object>) C6563.f19343);
            } else {
                C6635.m9824("holder");
                throw null;
            }
        }

        @Override // androidx.recyclerview.widget.RecyclerView.AbstractC0191
        /* JADX INFO: renamed from: ֏ */
        public /* bridge */ /* synthetic */ void mo595(RecyclerView.AbstractC0224 abstractC0224, int i, List list) {
            m2457((AbstractC1181) abstractC0224, i, (List<? extends Object>) list);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public void m2457(AbstractC1181 abstractC1181, int i, List<? extends Object> list) {
            if (abstractC1181 == null) {
                C6635.m9824("holder");
                throw null;
            }
            if (list == null) {
                C6635.m9824("payloads");
                throw null;
            }
            AbstractC1175 abstractC1175 = (AbstractC1175) this.f7504.f7333.get(i);
            Object objM9796 = C6560.m9796(list);
            Object obj = objM9796 instanceof EnumC1179 ? objM9796 : null;
            C6635.m9823((Object) abstractC1175, "item");
            abstractC1181.mo2458(abstractC1175, i, (EnumC1179) obj);
        }

        @Override // androidx.recyclerview.widget.RecyclerView.AbstractC0191
        /* JADX INFO: renamed from: ؠ */
        public int mo597(int i) {
            return this.f7504.f7333.get(i) instanceof AbstractC1175.C1176 ? C1156.item_reminder_header : C1156.item_reminder;
        }

        @Override // androidx.recyclerview.widget.RecyclerView.AbstractC0191
        /* JADX INFO: renamed from: ހ */
        public void mo599(RecyclerView.AbstractC0224 abstractC0224) {
            AbstractC1181 abstractC1181 = (AbstractC1181) abstractC0224;
            if (abstractC1181 != null) {
                abstractC1181.mo2459();
            } else {
                C6635.m9824("holder");
                throw null;
            }
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ރ, reason: contains not printable characters */
    public static final class C1188 extends AbstractC6636 implements InterfaceC6603<C1173> {
        public C1188() {
            super(0);
        }

        @Override // p402.p411.p412.InterfaceC6603
        /* JADX INFO: renamed from: ނ */
        public C1173 mo1543() {
            return (C1173) CommonUtilsKt.֏(C1172.this);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ބ, reason: contains not printable characters */
    @InterfaceC6593(c = "ar.tvplayer.tv.reminders.ui.RemindersFragment$closeScreenByTimeout$1", f = "RemindersFragment.kt", l = {128}, m = "invokeSuspend")
    public static final class C1189 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public InterfaceC1327 f4285;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public Object f4286;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public int f4287;

        public C1189(InterfaceC6575 interfaceC6575) {
            super(2, interfaceC6575);
        }

        @Override // p402.p405.p407.p408.AbstractC6589
        /* JADX INFO: renamed from: ֏ */
        public final InterfaceC6575<C6549> mo837(Object obj, InterfaceC6575<?> interfaceC6575) {
            if (interfaceC6575 == null) {
                C6635.m9824("completion");
                throw null;
            }
            C1189 c1189 = C1172.this.new C1189(interfaceC6575);
            c1189.f4285 = (InterfaceC1327) obj;
            return c1189;
        }

        @Override // p402.p411.p412.InterfaceC6618
        /* JADX INFO: renamed from: ؠ */
        public final Object mo838(InterfaceC1327 interfaceC1327, InterfaceC6575<? super C6549> interfaceC6575) {
            return ((C1189) mo837(interfaceC1327, interfaceC6575)).mo839(C6549.f19328);
        }

        @Override // p402.p405.p407.p408.AbstractC6589
        /* JADX INFO: renamed from: ށ */
        public final Object mo839(Object obj) {
            ActivityC1999 activity;
            AbstractC2014 supportFragmentManager;
            EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
            int i = this.f4287;
            if (i == 0) {
                C4303.m7198(obj);
                this.f4286 = this.f4285;
                this.f4287 = 1;
                if (C4303.m7005(120000L, this) == enumC6586) {
                    return enumC6586;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                C4303.m7198(obj);
            }
            if (ލ.ؠ(C1172.this, false, 1) && (activity = C1172.this.getActivity()) != null && (supportFragmentManager = activity.getSupportFragmentManager()) != null) {
                CommonUtilsKt.֏(supportFragmentManager);
            }
            return C6549.f19328;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ޅ, reason: contains not printable characters */
    public static final class C1190<T> implements InterfaceC2230<T> {
        public C1190() {
        }

        @Override // p037.p099.InterfaceC2230
        /* JADX INFO: renamed from: ֏ */
        public final void mo1576(T t) {
            C1172.m2447(C1172.this, (List) t);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ކ, reason: contains not printable characters */
    public static final class C1191 extends AbstractC6636 implements InterfaceC6618<View, Integer, View> {
        public C1191() {
            super(2);
        }

        @Override // p402.p411.p412.InterfaceC6618
        /* JADX INFO: renamed from: ؠ */
        public View mo838(View view, Integer num) {
            View view2 = view;
            int iIntValue = num.intValue();
            if (view2 != null) {
                return C1172.this.m2451(view2, iIntValue).f19317;
            }
            C6635.m9824("focused");
            throw null;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$އ, reason: contains not printable characters */
    public static final class C1192 extends AbstractC6636 implements InterfaceC6618<Integer, Rect, Boolean> {
        public C1192() {
            super(2);
        }

        @Override // p402.p411.p412.InterfaceC6618
        /* JADX INFO: renamed from: ؠ */
        public Boolean mo838(Integer num, Rect rect) {
            VerticalGridView verticalGridView;
            Rect rect2 = rect;
            if (num.intValue() == 130 && rect2 == null && (verticalGridView = (VerticalGridView) C1172.this.m2450(C1155.vgvReminders)) != null) {
                verticalGridView.requestFocus();
            }
            return true;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ވ, reason: contains not printable characters */
    public static final class ViewOnClickListenerC1193 implements View.OnClickListener {
        public ViewOnClickListenerC1193() {
        }

        @Override // android.view.View.OnClickListener
        public final void onClick(View view) {
            if (!ލ.֏(EnumC0824.SETTINGS) || !ލ.֏(false, 1)) {
                ލ.މ(C1172.this);
                return;
            }
            AbstractC2014 childFragmentManager = C1172.this.getChildFragmentManager();
            C6635.m9823((Object) childFragmentManager, "childFragmentManager");
            ލ.֏(childFragmentManager, true, 0, false, false, (String) null, 28);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$މ, reason: contains not printable characters */
    @InterfaceC6593(c = "ar.tvplayer.tv.reminders.ui.RemindersFragment$onViewCreated$5", f = "RemindersFragment.kt", l = {}, m = "invokeSuspend")
    public static final class C1194 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public InterfaceC1327 f4293;

        public C1194(InterfaceC6575 interfaceC6575) {
            super(2, interfaceC6575);
        }

        @Override // p402.p405.p407.p408.AbstractC6589
        /* JADX INFO: renamed from: ֏ */
        public final InterfaceC6575<C6549> mo837(Object obj, InterfaceC6575<?> interfaceC6575) {
            if (interfaceC6575 == null) {
                C6635.m9824("completion");
                throw null;
            }
            C1194 c1194 = C1172.this.new C1194(interfaceC6575);
            c1194.f4293 = (InterfaceC1327) obj;
            return c1194;
        }

        @Override // p402.p411.p412.InterfaceC6618
        /* JADX INFO: renamed from: ؠ */
        public final Object mo838(InterfaceC1327 interfaceC1327, InterfaceC6575<? super C6549> interfaceC6575) {
            return ((C1194) mo837(interfaceC1327, interfaceC6575)).mo839(C6549.f19328);
        }

        @Override // p402.p405.p407.p408.AbstractC6589
        /* JADX INFO: renamed from: ށ */
        public final Object mo839(Object obj) {
            EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
            C4303.m7198(obj);
            C1172.m2449(C1172.this);
            ((VerticalGridView) C1172.this.m2450(C1155.vgvReminders)).requestFocus();
            return C6549.f19328;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ފ, reason: contains not printable characters */
    public static final class C1195 extends AbstractC6636 implements InterfaceC6603<SharedPreferencesOnSharedPreferenceChangeListenerC0830> {
        public C1195() {
            super(0);
        }

        @Override // p402.p411.p412.InterfaceC6603
        /* JADX INFO: renamed from: ނ */
        public SharedPreferencesOnSharedPreferenceChangeListenerC0830 mo1543() {
            Fragment fragmentM3924 = C1172.this.getChildFragmentManager().m3924(C1155.containerProgramInfo);
            if (fragmentM3924 != null) {
                return (SharedPreferencesOnSharedPreferenceChangeListenerC0830) fragmentM3924;
            }
            throw new TypeCastException("null cannot be cast to non-null type ar.tvplayer.tv.base.ui.ProgramInfoFragment");
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ބ.ނ.ނ$ދ, reason: contains not printable characters */
    public static final class C1196 extends AbstractC6636 implements InterfaceC6603<C1201> {
        public C1196() {
            super(0);
        }

        /* JADX WARN: Multi-variable type inference failed */
        @Override // p402.p411.p412.InterfaceC6603
        /* JADX INFO: renamed from: ނ */
        public C1201 mo1543() {
            C1172 c1172 = C1172.this;
            C1200 c1200 = new C1200();
            C2251 viewModelStore = c1172.getViewModelStore();
            String canonicalName = C1201.class.getCanonicalName();
            if (canonicalName == null) {
                throw new IllegalArgumentException("Local and anonymous classes can not be ViewModels");
            }
            String strM4879 = C2803.m4879("androidx.lifecycle.ViewModelProvider.DefaultKey:", canonicalName);
            AbstractC2245 abstractC2245Mo4300 = viewModelStore.f7211.get(strM4879);
            if (!C1201.class.isInstance(abstractC2245Mo4300)) {
                abstractC2245Mo4300 = c1200 instanceof AbstractC2248 ? ((AbstractC2248) c1200).mo4300(strM4879, C1201.class) : c1200.mo1666(C1201.class);
                AbstractC2245 abstractC2245Put = viewModelStore.f7211.put(strM4879, abstractC2245Mo4300);
                if (abstractC2245Put != null) {
                    abstractC2245Put.mo2103();
                }
            } else if (c1200 instanceof C2250) {
                ((C2250) c1200).mo4301(abstractC2245Mo4300);
            }
            C6635.m9823((Object) abstractC2245Mo4300, "ViewModelProvider(this, …ctory).get(T::class.java)");
            return (C1201) abstractC2245Mo4300;
        }
    }

    public C1172() {
        super(C1156.fragment_reminders);
        this.f4257 = C4303.m7065((InterfaceC6603) new C1188());
        this.f4258 = C4303.m7065((InterfaceC6603) new C1196());
        this.f4259 = C4303.m7065((InterfaceC6603) new C1195());
    }

    /* JADX WARN: Removed duplicated region for block: B:24:0x0046  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final /* synthetic */ void m2445(C1172 c1172) {
        AbstractC1175 abstractC1175;
        ޟ r0;
        List<T> list;
        if (c1172 == null) {
            throw null;
        }
        boolean z = false;
        if (!(ޏ.ވ.ހ().length() > 0)) {
            if (CommonUtilsKt.ރ()) {
                ޏ r1 = ޏ.ވ;
                if (r1 == null) {
                    throw null;
                }
                boolean z2 = ((Number) ޏ.ބ.m9835(r1, ޏ.ށ[2])).intValue() == 2;
                boolean z3 = ޑ.֏;
                boolean z4 = C1255.f4369;
                boolean z5 = ލ.ؠ;
                if (z2 && z3 && (!z4 || z5)) {
                    z = true;
                }
            }
        }
        if (!z) {
            ލ.ތ(c1172);
            return;
        }
        VerticalGridView verticalGridView = (VerticalGridView) c1172.m2450(C1155.vgvReminders);
        C6635.m9823((Object) verticalGridView, "vgvReminders");
        RecyclerView.AbstractC0191 adapter = verticalGridView.getAdapter();
        if (!(adapter instanceof C1180)) {
            adapter = null;
        }
        C1180 c1180 = (C1180) adapter;
        if (c1180 == null || (list = c1180.f7504.f7333) == 0) {
            abstractC1175 = null;
        } else {
            VerticalGridView verticalGridView2 = (VerticalGridView) c1172.m2450(C1155.vgvReminders);
            C6635.m9823((Object) verticalGridView2, "vgvReminders");
            abstractC1175 = (AbstractC1175) C6560.m9773(list, verticalGridView2.getSelectedPosition());
        }
        AbstractC1175.C1177 c1177 = (AbstractC1175.C1177) (abstractC1175 instanceof AbstractC1175.C1177 ? abstractC1175 : null);
        if (c1177 == null || (r0 = c1177.f4264) == null) {
            return;
        }
        AbstractC2014 childFragmentManager = c1172.getChildFragmentManager();
        C6635.m9823((Object) childFragmentManager, "childFragmentManager");
        CommonUtilsKt.֏(childFragmentManager, C1158.class, new C1158.C1159(r0.ހ));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final /* synthetic */ void m2446(C1172 c1172, View view) {
        if (c1172 == null) {
            throw null;
        }
        C1219.m2480(view, ލ.ؠ(c1172, false, 1) ? ރ.ߠ.ʷ() : 0, 0.0f, 2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final /* synthetic */ void m2447(C1172 c1172, List list) {
        if (c1172 == null) {
            throw null;
        }
        if (list == null) {
            C6635.m9824("reminders");
            throw null;
        }
        ArrayList arrayList = new ArrayList();
        AbstractC7191 abstractC7191M10735 = AbstractC7191.m10735();
        long seconds = TimeUnit.DAYS.toSeconds(1L);
        Iterator it = list.iterator();
        long jM10772 = 0;
        while (it.hasNext()) {
            ޟ r7 = (ޟ) it.next();
            long j = r7.އ;
            if (j - jM10772 >= seconds) {
                C7178 c7178 = C7179.m10658(C7177.m10609(j), abstractC7191M10735).f20809;
                C6635.m9823((Object) c7178, "date");
                arrayList.add(new AbstractC1175.C1176(c7178));
                jM10772 = c7178.m10633(abstractC7191M10735).m10772();
            }
            arrayList.add(new AbstractC1175.C1177(r7));
        }
        VerticalGridView verticalGridView = (VerticalGridView) c1172.m2450(C1155.vgvReminders);
        C6635.m9823((Object) verticalGridView, "vgvReminders");
        RecyclerView.AbstractC0191 adapter = verticalGridView.getAdapter();
        C1180 c1180 = (C1180) (adapter instanceof C1180 ? adapter : null);
        if (c1180 == null) {
            c1180 = c1172.new C1180();
            VerticalGridView verticalGridView2 = (VerticalGridView) c1172.m2450(C1155.vgvReminders);
            C6635.m9823((Object) verticalGridView2, "this");
            verticalGridView2.setAdapter(c1180);
            verticalGridView2.setHasFixedSize(true);
            RecyclerView.AbstractC0202 layoutManager = verticalGridView2.getLayoutManager();
            if (layoutManager != null) {
                layoutManager.m645(true);
            }
            verticalGridView2.setWindowAlignment(0);
            verticalGridView2.setOnChildSelectedListener(new C1197(c1172, c1180));
        }
        c1180.m4405(arrayList);
        TextView textView = (TextView) c1172.m2450(C1155.tvNoReminders);
        C6635.m9823((Object) textView, "tvNoReminders");
        textView.setVisibility(arrayList.isEmpty() ? 0 : 8);
        TextView textView2 = (TextView) c1172.m2450(C1155.tvPlaylistAndGroupName);
        C6635.m9823((Object) textView2, "tvPlaylistAndGroupName");
        textView2.setVisibility(arrayList.isEmpty() ? 8 : 0);
        FragmentContainerView fragmentContainerView = (FragmentContainerView) c1172.m2450(C1155.containerProgramInfo);
        C6635.m9823((Object) fragmentContainerView, "containerProgramInfo");
        fragmentContainerView.setVisibility(arrayList.isEmpty() ? 8 : 0);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final /* synthetic */ void m2448(C1172 c1172) {
        VerticalGridView verticalGridView = (VerticalGridView) c1172.m2450(C1155.vgvReminders);
        RecyclerView.AbstractC0191 adapter = verticalGridView != null ? verticalGridView.getAdapter() : null;
        if (!(adapter instanceof C1180)) {
            adapter = null;
        }
        C1180 c1180 = (C1180) adapter;
        if (c1180 != null) {
            VerticalGridView verticalGridView2 = (VerticalGridView) c1172.m2450(C1155.vgvReminders);
            int selectedPosition = verticalGridView2 != null ? verticalGridView2.getSelectedPosition() : -1;
            if (c1180.mo327() == 0 || selectedPosition == -1) {
                return;
            }
            List<T> list = c1180.f7504.f7333;
            C6635.m9823((Object) list, "adapter.currentList");
            Object objM9773 = C6560.m9773((List<? extends Object>) list, selectedPosition);
            if (!(objM9773 instanceof AbstractC1175.C1177)) {
                objM9773 = null;
            }
            AbstractC1175.C1177 c1177 = (AbstractC1175.C1177) objM9773;
            if (c1177 != null) {
                SharedPreferencesOnSharedPreferenceChangeListenerC0830 sharedPreferencesOnSharedPreferenceChangeListenerC0830M2454 = c1172.m2454();
                long j = c1177.f4264.ހ;
                C0846 c0846M2125 = sharedPreferencesOnSharedPreferenceChangeListenerC0830M2454.m2125();
                InterfaceC1363 interfaceC1363 = c0846M2125.f3433;
                if (interfaceC1363 != null) {
                    C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
                }
                c0846M2125.f3433 = CommonUtilsKt.ؠ(LayoutInflaterFactory2C1494.C1505.m2925((AbstractC2245) c0846M2125), new C0851(c0846M2125, j, null));
                ޟ r0 = c1177.f4264;
                Integer numM339 = ((C1201) c1172.f4258.getValue()).f4307.m339();
                if (numM339 != null) {
                    C6635.m9823((Object) numM339, "viewModel.playlistCountLiveData.value ?: return");
                    CommonUtilsKt.ؠ(c1172, new C1199(c1172, r0, numM339.intValue(), null));
                }
            }
        }
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final /* synthetic */ void m2449(C1172 c1172) {
        if (c1172 == null) {
            throw null;
        }
        if (ލ.ؠ(c1172, false, 1)) {
            View view = c1172.mView;
            if (view != null) {
                view.setBackgroundColor(1711276032);
            }
        } else {
            View view2 = c1172.mView;
            if (view2 != null) {
                view2.setBackgroundResource(C1154.content_background_dark);
            }
        }
        c1172.m2454().m2128();
    }

    @Override // androidx.fragment.app.Fragment
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (bundle == null) {
            AbstractC2014 childFragmentManager = getChildFragmentManager();
            C6635.m9823((Object) childFragmentManager, "childFragmentManager");
            C1988 c1988 = new C1988(childFragmentManager);
            C6635.m9823((Object) c1988, "beginTransaction()");
            c1988.m4004(C1155.containerProgramInfo, ލ.֏(SharedPreferencesOnSharedPreferenceChangeListenerC0830.EnumC0834.REMINDERS, (Long) null, (ނ) null, 6));
            c1988.mo3874();
        }
    }

    @Override // p000.p001.p002.p008.p009.AbstractC0871, p000.p001.p021.p024.AbstractC1272, androidx.fragment.app.Fragment
    public /* synthetic */ void onDestroyView() {
        super.onDestroyView();
        mo1519();
    }

    @Override // androidx.fragment.app.Fragment
    public void onPause() {
        this.mCalled = true;
        InterfaceC1363 interfaceC1363 = this.f4260;
        if (interfaceC1363 != null) {
            C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
        }
    }

    @Override // androidx.fragment.app.Fragment
    public void onResume() {
        this.mCalled = true;
        m2452();
    }

    @Override // p000.p001.p021.p024.AbstractC1272, androidx.fragment.app.Fragment
    public void onViewCreated(View view, Bundle bundle) {
        if (view == null) {
            C6635.m9824("view");
            throw null;
        }
        super.onViewCreated(view, bundle);
        m2450(C1155.layoutRemindersContent).setOnFocusSearchListener(new C1191());
        m2450(C1155.layoutRemindersContent).setOnRequestFocusInDescendantsListener(new C1192());
        m2450(C1155.btnSettings).setOnClickListener(new ViewOnClickListenerC1193());
        LiveData<List<ޟ>> liveData = ((C1201) this.f4258.getValue()).f4306;
        InterfaceC2219 viewLifecycleOwner = getViewLifecycleOwner();
        C6635.m9823((Object) viewLifecycleOwner, "viewLifecycleOwner");
        liveData.mo342(viewLifecycleOwner, new C1190());
        C4303.m7160(this, null, null, new C1194(null), 3, null);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public View m2450(int i) {
        if (this.f4261 == null) {
            this.f4261 = new HashMap();
        }
        View view = (View) this.f4261.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View view2 = this.mView;
        if (view2 == null) {
            return null;
        }
        View viewFindViewById = view2.findViewById(i);
        this.f4261.put(Integer.valueOf(i), viewFindViewById);
        return viewFindViewById;
    }

    /* JADX WARN: Removed duplicated region for block: B:19:0x0037  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final C6541<Boolean, View> m2451(View view, int i) {
        if (view == null) {
            C6635.m9824("focused");
            throw null;
        }
        boolean z = false;
        boolean z2 = view.getLayoutDirection() == 1;
        int i2 = z2 ? 66 : 17;
        int i3 = z2 ? 17 : 66;
        if (C6635.m9825(view, (VerticalGridView) m2450(C1155.vgvReminders))) {
            if (i == i2) {
                if (m2453().f4262) {
                    view = null;
                    z = true;
                }
            } else if (i == i3 || i == 33) {
                view = (CircleButton) m2450(C1155.btnSettings);
            }
        } else if (C6635.m9825(view, ((VerticalGridView) m2450(C1155.vgvReminders)).findFocus())) {
            if (i == i2) {
                if (m2453().f4262) {
                }
            } else if (i == i3) {
                m2454().m2121(true, true);
                view = m2454().m2126();
            }
        } else if (!C6635.m9825(view, m2450(C1155.btnSettings))) {
            View view2 = m2454().mView;
            if (C6635.m9825(view, view2 != null ? view2.findFocus() : null)) {
                C6541<Boolean, View> c6541M2120 = m2454().m2120(view, i);
                boolean zBooleanValue = c6541M2120.f19316.booleanValue();
                View view3 = c6541M2120.f19317;
                if (!zBooleanValue) {
                    view = view3;
                } else if (i == i2) {
                    m2454().m2121(false, false);
                    view = (VerticalGridView) m2450(C1155.vgvReminders);
                } else if (i == 33) {
                    m2454().m2121(false, false);
                    view = (CircleButton) m2450(C1155.btnSettings);
                }
            }
        } else if (i == i2) {
            view = (VerticalGridView) m2450(C1155.vgvReminders);
        } else if (i == 130) {
            FragmentContainerView fragmentContainerView = (FragmentContainerView) m2450(C1155.containerProgramInfo);
            C6635.m9823((Object) fragmentContainerView, "containerProgramInfo");
            if (fragmentContainerView.getVisibility() == 0) {
                m2454().m2121(true, true);
                view = m2454().m2126();
            } else {
                view = (VerticalGridView) m2450(C1155.vgvReminders);
            }
        }
        return new C6541<>(Boolean.valueOf(z), view);
    }

    @Override // p000.p001.p002.p008.p009.AbstractC0871, p000.p001.p002.p008.p009.C0743.InterfaceC0748
    /* JADX INFO: renamed from: ֏ */
    public void mo1747(int i, boolean z, String str) {
        if (str == null) {
            C6635.m9824("data");
            throw null;
        }
        super.mo1747(i, z, str);
        if (i == 0) {
            ލ.މ(this);
        }
    }

    @Override // p000.p001.p021.p024.AbstractC1272
    /* JADX INFO: renamed from: ވ */
    public void mo1519() {
        HashMap map = this.f4261;
        if (map != null) {
            map.clear();
        }
    }

    @Override // p000.p001.p021.p024.AbstractC1272
    /* JADX INFO: renamed from: މ */
    public boolean mo1520() {
        View view;
        if (super.mo1520()) {
            return true;
        }
        if (!m2453().f4262 || (view = this.mView) == null || !view.hasFocus()) {
            return false;
        }
        ActivityC1999 activity = getActivity();
        if (!(activity instanceof AbstractActivityC0773)) {
            activity = null;
        }
        AbstractActivityC0773 abstractActivityC0773 = (AbstractActivityC0773) activity;
        if (abstractActivityC0773 == null) {
            return true;
        }
        abstractActivityC0773.m2081();
        return true;
    }

    @Override // p000.p001.p021.p024.AbstractC1272
    /* JADX INFO: renamed from: ފ */
    public void mo1521() {
        super.mo1521();
        m2452();
    }

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public final void m2452() {
        InterfaceC1363 interfaceC1363 = this.f4260;
        if (interfaceC1363 != null) {
            C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
        }
        this.f4260 = CommonUtilsKt.ؠ(this, new C1189(null));
    }

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public final C1173 m2453() {
        return (C1173) this.f4257.getValue();
    }

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public final SharedPreferencesOnSharedPreferenceChangeListenerC0830 m2454() {
        return (SharedPreferencesOnSharedPreferenceChangeListenerC0830) this.f4259.getValue();
    }
}
