package p000.p001.p002.p003.p004;

import android.content.Context;
import android.os.Bundle;
import android.text.format.DateFormat;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewPropertyAnimator;
import android.view.Window;
import android.widget.TextClock;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentContainerView;
import androidx.recyclerview.widget.RecyclerView;
import ar.tvplayer.core.data.prefs.ރ;
import ar.tvplayer.core.domain.ލ;
import ar.tvplayer.core.domain2.ކ;
import ar.tvplayer.core.util.CommonUtilsKt;
import ar.tvplayer.tv.base.ui.view.FloatingMenu;
import ar.tvplayer.tv.player.ui.CustomPlayerView;
import ar.tvplayer.tv.player.ui.PlayerHostLayout;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CancellationException;
import kotlin.TypeCastException;
import p000.p001.p002.p003.C0658;
import p000.p001.p002.p003.C0659;
import p000.p001.p002.p003.C0660;
import p000.p001.p002.p003.C0661;
import p000.p001.p002.p003.C0662;
import p000.p001.p002.p003.C0663;
import p000.p001.p002.p003.p004.p005.SharedPreferencesOnSharedPreferenceChangeListenerC0411;
import p000.p001.p002.p003.p004.p005.SharedPreferencesOnSharedPreferenceChangeListenerC0438;
import p000.p001.p002.p003.p004.p005.SharedPreferencesOnSharedPreferenceChangeListenerC0459;
import p000.p001.p002.p008.p009.AbstractActivityC0773;
import p000.p001.p002.p008.p009.AbstractC0871;
import p000.p001.p002.p008.p009.C0884;
import p000.p001.p021.p022.C1219;
import p000.p001.p021.p023.C1262;
import p000.p001.p021.p023.C1267;
import p025.p026.InterfaceC1327;
import p025.p026.InterfaceC1363;
import p037.p041.p042.LayoutInflaterFactory2C1494;
import p037.p041.p043.p044.C1527;
import p037.p065.p066.AbstractC1802;
import p037.p065.p066.C1801;
import p037.p065.p066.C1829;
import p037.p065.p078.ViewTreeObserverOnPreDrawListenerC1919;
import p037.p089.p090.AbstractC2014;
import p037.p089.p090.ActivityC1999;
import p037.p089.p090.C1988;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p190.C3454;
import p138.p176.p177.p190.p192.InterfaceC3481;
import p138.p176.p177.p190.p239.C4150;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6549;
import p402.InterfaceC6538;
import p402.InterfaceC6540;
import p402.p403.C6560;
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.InterfaceC6614;
import p402.p411.p412.InterfaceC6618;
import p402.p411.p413.AbstractC6636;
import p402.p411.p413.C6634;
import p402.p411.p413.C6635;
import p402.p411.p413.C6647;
import p402.p418.InterfaceC6667;

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

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public boolean f2209;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public boolean f2210;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public final ArrayList<SharedPreferencesOnSharedPreferenceChangeListenerC0501> f2211;

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

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

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

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

    /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
    public long f2216;

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

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

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

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

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

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$֏, reason: contains not printable characters */
    /* JADX INFO: compiled from: java-style lambda group */
    public static final class RunnableC0374 implements Runnable {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final /* synthetic */ int f2222;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final /* synthetic */ Object f2223;

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

        public RunnableC0374(int i, Object obj, boolean z) {
            this.f2222 = i;
            this.f2223 = obj;
            this.f2224 = z;
        }

        @Override // java.lang.Runnable
        public final void run() {
            int i = this.f2222;
            if (i == 0) {
                if (this.f2224) {
                    return;
                }
                C0373 c0373 = (C0373) this.f2223;
                if (c0373.mView != null) {
                    TextView textView = (TextView) c0373.m1503(C0661.tvMultiViewHint);
                    C6635.m9823((Object) textView, "tvMultiViewHint");
                    textView.setVisibility(8);
                    return;
                }
                return;
            }
            if (i != 1) {
                throw null;
            }
            if (this.f2224) {
                return;
            }
            C0373 c03732 = (C0373) this.f2223;
            if (c03732.mView != null) {
                TextView textView2 = (TextView) c03732.m1503(C0661.tvMultiViewWarning);
                C6635.m9823((Object) textView2, "tvMultiViewWarning");
                textView2.setVisibility(8);
            }
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$ؠ, reason: contains not printable characters */
    /* JADX INFO: compiled from: java-style lambda group */
    public static final class RunnableC0375 implements Runnable {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final /* synthetic */ int f2225;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final /* synthetic */ Object f2226;

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

        public RunnableC0375(int i, Object obj, boolean z) {
            this.f2225 = i;
            this.f2226 = obj;
            this.f2227 = z;
        }

        @Override // java.lang.Runnable
        public final void run() {
            int i = this.f2225;
            if (i == 0) {
                if (this.f2227) {
                    return;
                }
                C0373 c0373 = (C0373) this.f2226;
                if (c0373.mView != null) {
                    FloatingMenu floatingMenuM1503 = c0373.m1503(C0661.floatingMenu);
                    C6635.m9823((Object) floatingMenuM1503, "floatingMenu");
                    floatingMenuM1503.setVisibility(8);
                    return;
                }
                return;
            }
            if (i != 1) {
                throw null;
            }
            if (this.f2227) {
                return;
            }
            C0373 c03732 = (C0373) this.f2226;
            if (c03732.mView != null) {
                View viewM1503 = c03732.m1503(C0661.menuBackground);
                C6635.m9823((Object) viewM1503, "menuBackground");
                viewM1503.setVisibility(8);
                for (FragmentContainerView fragmentContainerView : ((C0373) this.f2226).m1527()) {
                    C6635.m9823((Object) fragmentContainerView, "it");
                    fragmentContainerView.setElevation(0.0f);
                }
            }
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$ހ, reason: contains not printable characters */
    public static final class C0376 {

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

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

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

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

        public C0376(View view, View view2, View view3, View view4) {
            this.f2228 = view;
            this.f2229 = view2;
            this.f2230 = view3;
            this.f2231 = view4;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C0376)) {
                return false;
            }
            C0376 c0376 = (C0376) obj;
            return C6635.m9825(this.f2228, c0376.f2228) && C6635.m9825(this.f2229, c0376.f2229) && C6635.m9825(this.f2230, c0376.f2230) && C6635.m9825(this.f2231, c0376.f2231);
        }

        public int hashCode() {
            View view = this.f2228;
            int iHashCode = (view != null ? view.hashCode() : 0) * 31;
            View view2 = this.f2229;
            int iHashCode2 = (iHashCode + (view2 != null ? view2.hashCode() : 0)) * 31;
            View view3 = this.f2230;
            int iHashCode3 = (iHashCode2 + (view3 != null ? view3.hashCode() : 0)) * 31;
            View view4 = this.f2231;
            return iHashCode3 + (view4 != null ? view4.hashCode() : 0);
        }

        public String toString() {
            StringBuilder sbM4889 = C2803.m4889("ScreenFocusData(leftContainer=");
            sbM4889.append(this.f2228);
            sbM4889.append(", topContainer=");
            sbM4889.append(this.f2229);
            sbM4889.append(", rightContainer=");
            sbM4889.append(this.f2230);
            sbM4889.append(", bottomContainer=");
            sbM4889.append(this.f2231);
            sbM4889.append(")");
            return sbM4889.toString();
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$ށ, reason: contains not printable characters */
    public final class C0377 {

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

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

        public C0377(boolean z) {
            this.f2233 = z;
            Context contextRequireContext = C0373.this.requireContext();
            C6635.m9823((Object) contextRequireContext, "requireContext()");
            this.f2232 = C1219.m2500(contextRequireContext, 2);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final View m1535() {
            Object next;
            Iterator<T> it = C0373.this.f2211.iterator();
            while (true) {
                if (!it.hasNext()) {
                    next = null;
                    break;
                }
                next = it.next();
                if (((SharedPreferencesOnSharedPreferenceChangeListenerC0501) next).mFragmentId == C0373.this.f2213) {
                    break;
                }
            }
            SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501 = (SharedPreferencesOnSharedPreferenceChangeListenerC0501) next;
            if (sharedPreferencesOnSharedPreferenceChangeListenerC0501 == null) {
                SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC05012 = C0373.this.f2211.get(0);
                C6635.m9823((Object) sharedPreferencesOnSharedPreferenceChangeListenerC05012, "playerFragments[0]");
                sharedPreferencesOnSharedPreferenceChangeListenerC0501 = sharedPreferencesOnSharedPreferenceChangeListenerC05012;
            }
            int i = sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId;
            C0373 c0373 = C0373.this;
            if (i == c0373.f2212 && this.f2233) {
                View viewFindViewById = c0373.m1503(C0661.layoutContent).findViewById(C0661.playerPlaceholder);
                C6635.m9823((Object) viewFindViewById, "layoutContent.findViewById(R.id.playerPlaceholder)");
                return viewFindViewById;
            }
            View viewFindViewById2 = C0373.this.m1503(C0661.layoutContent).findViewById(sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId);
            C6635.m9823((Object) viewFindViewById2, "layoutContent.findViewById(playerFragment.id)");
            return viewFindViewById2;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final View m1536(int i, boolean z) {
            SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501;
            if (z) {
                ArrayList<SharedPreferencesOnSharedPreferenceChangeListenerC0501> arrayList = C0373.this.f2211;
                ArrayList arrayList2 = new ArrayList();
                for (Object obj : arrayList) {
                    if (((SharedPreferencesOnSharedPreferenceChangeListenerC0501) obj).mFragmentId != C0373.this.f2213) {
                        arrayList2.add(obj);
                    }
                }
                sharedPreferencesOnSharedPreferenceChangeListenerC0501 = (SharedPreferencesOnSharedPreferenceChangeListenerC0501) arrayList2.get(i);
            } else {
                SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC05012 = C0373.this.f2211.get(i);
                C6635.m9823((Object) sharedPreferencesOnSharedPreferenceChangeListenerC05012, "playerFragments[playerIndex]");
                sharedPreferencesOnSharedPreferenceChangeListenerC0501 = sharedPreferencesOnSharedPreferenceChangeListenerC05012;
            }
            int i2 = sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId;
            C0373 c0373 = C0373.this;
            if (i2 == c0373.f2212 && this.f2233) {
                View viewFindViewById = c0373.m1503(C0661.layoutContent).findViewById(C0661.playerPlaceholder);
                C6635.m9823((Object) viewFindViewById, "layoutContent.findViewById(R.id.playerPlaceholder)");
                return viewFindViewById;
            }
            View viewFindViewById2 = C0373.this.m1503(C0661.layoutContent).findViewById(sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId);
            C6635.m9823((Object) viewFindViewById2, "layoutContent.findViewById(playerFragment.id)");
            return viewFindViewById2;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final void m1537() {
            int width;
            View viewM1536 = m1536(0, false);
            ViewGroup.LayoutParams layoutParams = viewM1536.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;
            C0373 c0373 = C0373.this;
            if (c0373.f2209) {
                PlayerHostLayout playerHostLayoutM1503 = c0373.m1503(C0661.layoutContent);
                C6635.m9823((Object) playerHostLayoutM1503, "layoutContent");
                width = playerHostLayoutM1503.getWidth() / 2;
            } else {
                width = 0;
            }
            C0373.m1491(c0373, c0075, width);
            c0075.f528 = 0;
            c0075.f530 = 0;
            c0075.f519 = 0;
            c0075.f522 = 0;
            viewM1536.setLayoutParams(c0075);
            C2803.m4891((View) null, (View) null, (View) null, (View) null, viewM1536);
        }

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final void m1538() {
            View viewM1536 = m1536(0, false);
            View viewM15362 = m1536(1, false);
            View viewM15363 = m1536(2, false);
            View viewM15364 = m1536(3, false);
            View viewM15365 = m1536(4, false);
            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
            int iM6975 = C4303.m6975((r7.getWidth() - (this.f2232 * 4)) / 3.0f);
            ViewGroup.LayoutParams layoutParams = viewM1536.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;
            C0373.m1491(C0373.this, c0075, iM6975);
            c0075.f528 = 0;
            c0075.f519 = 0;
            c0075.f521 = viewM15364.getId();
            c0075.f544 = 2;
            ViewGroup.LayoutParams layoutParamsM4865 = C2803.m4865(c0075, this.f2232, viewM1536, c0075, viewM15362);
            if (layoutParamsM4865 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00752 = (ConstraintLayout.C0075) layoutParamsM4865;
            C0373.m1491(C0373.this, c00752, iM6975);
            c00752.f527 = viewM1536.getId();
            c00752.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48652 = C2803.m4865(c00752, this.f2232, viewM15362, c00752, viewM15363);
            if (layoutParamsM48652 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00753 = (ConstraintLayout.C0075) layoutParamsM48652;
            C0373.m1491(C0373.this, c00753, iM6975);
            c00753.f527 = viewM15362.getId();
            c00753.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48653 = C2803.m4865(c00753, this.f2232, viewM15363, c00753, viewM15364);
            if (layoutParamsM48653 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00754 = (ConstraintLayout.C0075) layoutParamsM48653;
            C0373.m1491(C0373.this, c00754, iM6975);
            c00754.f528 = 0;
            c00754.f529 = viewM15365.getId();
            c00754.f520 = viewM1536.getId();
            c00754.f522 = 0;
            ((ViewGroup.MarginLayoutParams) c00754).topMargin = this.f2232;
            c00754.f543 = 2;
            viewM15364.setLayoutParams(c00754);
            ViewGroup.LayoutParams layoutParams2 = viewM15365.getLayoutParams();
            if (layoutParams2 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00755 = (ConstraintLayout.C0075) layoutParams2;
            C0373.m1491(C0373.this, c00755, iM6975);
            c00755.f527 = viewM15364.getId();
            c00755.f530 = 0;
            c00755.f519 = viewM15364.getId();
            c00755.setMarginStart(this.f2232);
            viewM15365.setLayoutParams(c00755);
            viewM1536.setTag(new C0376(viewM15363, viewM15364, viewM15362, viewM15364));
            viewM15362.setTag(new C0376(viewM1536, viewM15364, viewM15363, viewM15364));
            viewM15363.setTag(new C0376(viewM15362, viewM15365, viewM1536, viewM15365));
            viewM15364.setTag(new C0376(viewM15365, viewM1536, viewM15365, viewM1536));
            C2803.m4891(viewM15364, viewM15362, viewM15364, viewM15362, viewM15365);
        }

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public final void m1539() {
            View viewM1536 = m1536(0, false);
            View viewM15362 = m1536(1, false);
            View viewM15363 = m1536(2, false);
            View viewM15364 = m1536(3, false);
            View viewM15365 = m1536(4, false);
            View viewM15366 = m1536(5, false);
            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
            int iM6975 = C4303.m6975((r8.getWidth() - (this.f2232 * 4)) / 3.0f);
            ViewGroup.LayoutParams layoutParams = viewM1536.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;
            C0373.m1491(C0373.this, c0075, iM6975);
            c0075.f528 = 0;
            c0075.f519 = 0;
            c0075.f521 = viewM15364.getId();
            c0075.f544 = 2;
            ViewGroup.LayoutParams layoutParamsM4865 = C2803.m4865(c0075, this.f2232, viewM1536, c0075, viewM15362);
            if (layoutParamsM4865 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00752 = (ConstraintLayout.C0075) layoutParamsM4865;
            C0373.m1491(C0373.this, c00752, iM6975);
            c00752.f527 = viewM1536.getId();
            c00752.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48652 = C2803.m4865(c00752, this.f2232, viewM15362, c00752, viewM15363);
            if (layoutParamsM48652 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00753 = (ConstraintLayout.C0075) layoutParamsM48652;
            C0373.m1491(C0373.this, c00753, iM6975);
            c00753.f527 = viewM15362.getId();
            c00753.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48653 = C2803.m4865(c00753, this.f2232, viewM15363, c00753, viewM15364);
            if (layoutParamsM48653 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00754 = (ConstraintLayout.C0075) layoutParamsM48653;
            C0373.m1491(C0373.this, c00754, iM6975);
            c00754.f528 = 0;
            c00754.f520 = viewM1536.getId();
            c00754.f522 = 0;
            int i = this.f2232;
            ((ViewGroup.MarginLayoutParams) c00754).topMargin = i;
            ViewGroup.LayoutParams layoutParamsM48654 = C2803.m4865(c00754, i, viewM15364, c00754, viewM15365);
            if (layoutParamsM48654 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00755 = (ConstraintLayout.C0075) layoutParamsM48654;
            C0373.m1491(C0373.this, c00755, iM6975);
            c00755.f527 = viewM15364.getId();
            c00755.f519 = viewM15364.getId();
            ViewGroup.LayoutParams layoutParamsM48655 = C2803.m4865(c00755, this.f2232, viewM15365, c00755, viewM15366);
            if (layoutParamsM48655 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00756 = (ConstraintLayout.C0075) layoutParamsM48655;
            C0373.m1491(C0373.this, c00756, iM6975);
            c00756.f527 = viewM15365.getId();
            c00756.f519 = viewM15364.getId();
            c00756.setMarginStart(this.f2232);
            viewM15366.setLayoutParams(c00756);
            viewM1536.setTag(new C0376(viewM15363, viewM15364, viewM15362, viewM15364));
            viewM15362.setTag(new C0376(viewM1536, viewM15365, viewM15363, viewM15365));
            viewM15363.setTag(new C0376(viewM15362, viewM15366, viewM1536, viewM15366));
            viewM15364.setTag(new C0376(viewM15366, viewM1536, viewM15365, viewM1536));
            viewM15365.setTag(new C0376(viewM15364, viewM15362, viewM15366, viewM15362));
            C2803.m4891(viewM15365, viewM15363, viewM15364, viewM15363, viewM15366);
        }

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public final void m1540() {
            View viewM1536 = m1536(0, false);
            View viewM15362 = m1536(1, false);
            View viewM15363 = m1536(2, false);
            View viewM15364 = m1536(3, false);
            View viewM15365 = m1536(4, false);
            View viewM15366 = m1536(5, false);
            View viewM15367 = m1536(6, false);
            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
            int iM6975 = C4303.m6975((r9.getWidth() - (this.f2232 * 4)) / 3.0f);
            ViewGroup.LayoutParams layoutParams = viewM1536.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;
            C0373.m1491(C0373.this, c0075, iM6975);
            c0075.f528 = 0;
            c0075.f519 = 0;
            c0075.f521 = viewM15364.getId();
            c0075.f544 = 2;
            ViewGroup.LayoutParams layoutParamsM4865 = C2803.m4865(c0075, this.f2232, viewM1536, c0075, viewM15362);
            if (layoutParamsM4865 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00752 = (ConstraintLayout.C0075) layoutParamsM4865;
            C0373.m1491(C0373.this, c00752, iM6975);
            c00752.f527 = viewM1536.getId();
            c00752.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48652 = C2803.m4865(c00752, this.f2232, viewM15362, c00752, viewM15363);
            if (layoutParamsM48652 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00753 = (ConstraintLayout.C0075) layoutParamsM48652;
            C0373.m1491(C0373.this, c00753, iM6975);
            c00753.f527 = viewM15362.getId();
            c00753.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48653 = C2803.m4865(c00753, this.f2232, viewM15363, c00753, viewM15364);
            if (layoutParamsM48653 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00754 = (ConstraintLayout.C0075) layoutParamsM48653;
            C0373.m1491(C0373.this, c00754, iM6975);
            c00754.f528 = 0;
            c00754.f520 = viewM1536.getId();
            c00754.f521 = viewM15367.getId();
            int i = this.f2232;
            ((ViewGroup.MarginLayoutParams) c00754).topMargin = i;
            ViewGroup.LayoutParams layoutParamsM48654 = C2803.m4865(c00754, i, viewM15364, c00754, viewM15365);
            if (layoutParamsM48654 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00755 = (ConstraintLayout.C0075) layoutParamsM48654;
            C0373.m1491(C0373.this, c00755, iM6975);
            c00755.f527 = viewM15364.getId();
            c00755.f519 = viewM15364.getId();
            ViewGroup.LayoutParams layoutParamsM48655 = C2803.m4865(c00755, this.f2232, viewM15365, c00755, viewM15366);
            if (layoutParamsM48655 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00756 = (ConstraintLayout.C0075) layoutParamsM48655;
            C0373.m1491(C0373.this, c00756, iM6975);
            c00756.f527 = viewM15365.getId();
            c00756.f519 = viewM15364.getId();
            ViewGroup.LayoutParams layoutParamsM48656 = C2803.m4865(c00756, this.f2232, viewM15366, c00756, viewM15367);
            if (layoutParamsM48656 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00757 = (ConstraintLayout.C0075) layoutParamsM48656;
            C0373.m1491(C0373.this, c00757, iM6975);
            c00757.f527 = viewM15364.getId();
            c00757.f520 = viewM15364.getId();
            c00757.f522 = 0;
            c00757.setMarginStart(this.f2232);
            ((ViewGroup.MarginLayoutParams) c00757).topMargin = this.f2232;
            viewM15367.setLayoutParams(c00757);
            viewM1536.setTag(new C0376(viewM15363, viewM15367, viewM15362, viewM15364));
            viewM15362.setTag(new C0376(viewM1536, viewM15367, viewM15363, viewM15365));
            viewM15363.setTag(new C0376(viewM15362, viewM15367, viewM1536, viewM15366));
            viewM15364.setTag(new C0376(viewM15366, viewM1536, viewM15365, viewM15367));
            viewM15365.setTag(new C0376(viewM15364, viewM15362, viewM15366, viewM15367));
            viewM15366.setTag(new C0376(viewM15365, viewM15363, viewM15364, viewM15367));
            C2803.m4891((View) null, viewM15365, (View) null, viewM15362, viewM15367);
        }

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final void m1541() {
            View viewM1536 = m1536(0, false);
            View viewM15362 = m1536(1, false);
            View viewM15363 = m1536(2, false);
            View viewM15364 = m1536(3, false);
            View viewM15365 = m1536(4, false);
            View viewM15366 = m1536(5, false);
            View viewM15367 = m1536(6, false);
            View viewM15368 = m1536(7, false);
            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
            int iM6975 = C4303.m6975((r10.getWidth() - (this.f2232 * 4)) / 3.0f);
            ViewGroup.LayoutParams layoutParams = viewM1536.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;
            C0373.m1491(C0373.this, c0075, iM6975);
            c0075.f528 = 0;
            c0075.f519 = 0;
            c0075.f521 = viewM15364.getId();
            c0075.f544 = 2;
            ViewGroup.LayoutParams layoutParamsM4865 = C2803.m4865(c0075, this.f2232, viewM1536, c0075, viewM15362);
            if (layoutParamsM4865 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00752 = (ConstraintLayout.C0075) layoutParamsM4865;
            C0373.m1491(C0373.this, c00752, iM6975);
            c00752.f527 = viewM1536.getId();
            c00752.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48652 = C2803.m4865(c00752, this.f2232, viewM15362, c00752, viewM15363);
            if (layoutParamsM48652 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00753 = (ConstraintLayout.C0075) layoutParamsM48652;
            C0373.m1491(C0373.this, c00753, iM6975);
            c00753.f527 = viewM15362.getId();
            c00753.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48653 = C2803.m4865(c00753, this.f2232, viewM15363, c00753, viewM15364);
            if (layoutParamsM48653 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00754 = (ConstraintLayout.C0075) layoutParamsM48653;
            C0373.m1491(C0373.this, c00754, iM6975);
            c00754.f528 = 0;
            c00754.f520 = viewM1536.getId();
            c00754.f521 = viewM15367.getId();
            int i = this.f2232;
            ((ViewGroup.MarginLayoutParams) c00754).topMargin = i;
            ViewGroup.LayoutParams layoutParamsM48654 = C2803.m4865(c00754, i, viewM15364, c00754, viewM15365);
            if (layoutParamsM48654 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00755 = (ConstraintLayout.C0075) layoutParamsM48654;
            C0373.m1491(C0373.this, c00755, iM6975);
            c00755.f527 = viewM15364.getId();
            c00755.f519 = viewM15364.getId();
            ViewGroup.LayoutParams layoutParamsM48655 = C2803.m4865(c00755, this.f2232, viewM15365, c00755, viewM15366);
            if (layoutParamsM48655 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00756 = (ConstraintLayout.C0075) layoutParamsM48655;
            C0373.m1491(C0373.this, c00756, iM6975);
            c00756.f527 = viewM15365.getId();
            c00756.f519 = viewM15364.getId();
            ViewGroup.LayoutParams layoutParamsM48656 = C2803.m4865(c00756, this.f2232, viewM15366, c00756, viewM15367);
            if (layoutParamsM48656 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00757 = (ConstraintLayout.C0075) layoutParamsM48656;
            C0373.m1491(C0373.this, c00757, iM6975);
            c00757.f528 = 0;
            c00757.f529 = viewM15368.getId();
            c00757.f520 = viewM15364.getId();
            c00757.f522 = 0;
            ((ViewGroup.MarginLayoutParams) c00757).topMargin = this.f2232;
            c00757.f543 = 2;
            viewM15367.setLayoutParams(c00757);
            ViewGroup.LayoutParams layoutParams2 = viewM15368.getLayoutParams();
            if (layoutParams2 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00758 = (ConstraintLayout.C0075) layoutParams2;
            C0373.m1491(C0373.this, c00758, iM6975);
            c00758.f527 = viewM15367.getId();
            c00758.f530 = 0;
            c00758.f519 = viewM15367.getId();
            c00758.setMarginStart(this.f2232);
            viewM15368.setLayoutParams(c00758);
            viewM1536.setTag(new C0376(viewM15363, viewM15367, viewM15362, viewM15364));
            viewM15362.setTag(new C0376(viewM1536, viewM15367, viewM15363, viewM15365));
            viewM15363.setTag(new C0376(viewM15362, viewM15368, viewM1536, viewM15366));
            viewM15364.setTag(new C0376(viewM15366, viewM1536, viewM15365, viewM15367));
            viewM15365.setTag(new C0376(viewM15364, viewM15362, viewM15366, viewM15368));
            viewM15366.setTag(new C0376(viewM15365, viewM15363, viewM15364, viewM15368));
            viewM15367.setTag(new C0376(viewM15368, viewM15364, viewM15368, viewM1536));
            C2803.m4891(viewM15367, viewM15365, viewM15367, viewM1536, viewM15368);
        }

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final void m1542() {
            View viewM1536 = m1536(0, false);
            View viewM15362 = m1536(1, false);
            View viewM15363 = m1536(2, false);
            View viewM15364 = m1536(3, false);
            View viewM15365 = m1536(4, false);
            View viewM15366 = m1536(5, false);
            View viewM15367 = m1536(6, false);
            View viewM15368 = m1536(7, false);
            View viewM15369 = m1536(8, false);
            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
            int iM6975 = C4303.m6975((r11.getWidth() - (this.f2232 * 4)) / 3.0f);
            ViewGroup.LayoutParams layoutParams = viewM1536.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;
            C0373.m1491(C0373.this, c0075, iM6975);
            c0075.f528 = 0;
            c0075.f519 = 0;
            c0075.f521 = viewM15364.getId();
            c0075.f544 = 2;
            ViewGroup.LayoutParams layoutParamsM4865 = C2803.m4865(c0075, this.f2232, viewM1536, c0075, viewM15362);
            if (layoutParamsM4865 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00752 = (ConstraintLayout.C0075) layoutParamsM4865;
            C0373.m1491(C0373.this, c00752, iM6975);
            c00752.f527 = viewM1536.getId();
            c00752.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48652 = C2803.m4865(c00752, this.f2232, viewM15362, c00752, viewM15363);
            if (layoutParamsM48652 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00753 = (ConstraintLayout.C0075) layoutParamsM48652;
            C0373.m1491(C0373.this, c00753, iM6975);
            c00753.f527 = viewM15362.getId();
            c00753.f519 = viewM1536.getId();
            ViewGroup.LayoutParams layoutParamsM48653 = C2803.m4865(c00753, this.f2232, viewM15363, c00753, viewM15364);
            if (layoutParamsM48653 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00754 = (ConstraintLayout.C0075) layoutParamsM48653;
            C0373.m1491(C0373.this, c00754, iM6975);
            c00754.f528 = 0;
            c00754.f520 = viewM1536.getId();
            c00754.f521 = viewM15367.getId();
            int i = this.f2232;
            ((ViewGroup.MarginLayoutParams) c00754).topMargin = i;
            ViewGroup.LayoutParams layoutParamsM48654 = C2803.m4865(c00754, i, viewM15364, c00754, viewM15365);
            if (layoutParamsM48654 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00755 = (ConstraintLayout.C0075) layoutParamsM48654;
            C0373.m1491(C0373.this, c00755, iM6975);
            c00755.f527 = viewM15364.getId();
            c00755.f519 = viewM15364.getId();
            ViewGroup.LayoutParams layoutParamsM48655 = C2803.m4865(c00755, this.f2232, viewM15365, c00755, viewM15366);
            if (layoutParamsM48655 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00756 = (ConstraintLayout.C0075) layoutParamsM48655;
            C0373.m1491(C0373.this, c00756, iM6975);
            c00756.f527 = viewM15365.getId();
            c00756.f519 = viewM15364.getId();
            ViewGroup.LayoutParams layoutParamsM48656 = C2803.m4865(c00756, this.f2232, viewM15366, c00756, viewM15367);
            if (layoutParamsM48656 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00757 = (ConstraintLayout.C0075) layoutParamsM48656;
            C0373.m1491(C0373.this, c00757, iM6975);
            c00757.f528 = 0;
            c00757.f520 = viewM15364.getId();
            c00757.f522 = 0;
            int i2 = this.f2232;
            ((ViewGroup.MarginLayoutParams) c00757).topMargin = i2;
            ViewGroup.LayoutParams layoutParamsM48657 = C2803.m4865(c00757, i2, viewM15367, c00757, viewM15368);
            if (layoutParamsM48657 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00758 = (ConstraintLayout.C0075) layoutParamsM48657;
            C0373.m1491(C0373.this, c00758, iM6975);
            c00758.f527 = viewM15367.getId();
            c00758.f519 = viewM15367.getId();
            ViewGroup.LayoutParams layoutParamsM48658 = C2803.m4865(c00758, this.f2232, viewM15368, c00758, viewM15369);
            if (layoutParamsM48658 == null) {
                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
            }
            ConstraintLayout.C0075 c00759 = (ConstraintLayout.C0075) layoutParamsM48658;
            C0373.m1491(C0373.this, c00759, iM6975);
            c00759.f527 = viewM15368.getId();
            c00759.f519 = viewM15367.getId();
            c00759.setMarginStart(this.f2232);
            viewM15369.setLayoutParams(c00759);
            viewM1536.setTag(new C0376(viewM15363, viewM15367, viewM15362, viewM15364));
            viewM15362.setTag(new C0376(viewM1536, viewM15368, viewM15363, viewM15365));
            viewM15363.setTag(new C0376(viewM15362, viewM15369, viewM1536, viewM15366));
            viewM15364.setTag(new C0376(viewM15366, viewM1536, viewM15365, viewM15367));
            viewM15365.setTag(new C0376(viewM15364, viewM15362, viewM15366, viewM15368));
            viewM15366.setTag(new C0376(viewM15365, viewM15363, viewM15364, viewM15369));
            viewM15367.setTag(new C0376(viewM15369, viewM15364, viewM15368, viewM1536));
            viewM15368.setTag(new C0376(viewM15367, viewM15365, viewM15369, viewM15362));
            C2803.m4891(viewM15368, viewM15366, viewM15367, viewM15363, viewM15369);
        }
    }

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

        @Override // p402.p411.p412.InterfaceC6603
        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public C6549 mo1543() {
            C0373.this.m1517(4);
            return C6549.f19328;
        }
    }

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

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

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

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

        public C0379(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;
            }
            C0379 c0379 = C0373.this.new C0379(interfaceC6575);
            c0379.f2236 = (InterfaceC1327) obj;
            return c0379;
        }

        @Override // p402.p411.p412.InterfaceC6618
        /* JADX INFO: renamed from: ؠ */
        public final Object mo838(InterfaceC1327 interfaceC1327, InterfaceC6575<? super C6549> interfaceC6575) {
            return ((C0379) 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.f2238;
            if (i == 0) {
                C4303.m7198(obj);
                this.f2237 = this.f2236;
                this.f2238 = 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);
            }
            C1219.m2512(C0373.this.getContext(), C0663.settings_press_again_to_exit);
            return C6549.f19328;
        }
    }

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

        @Override // android.view.View.OnLayoutChangeListener
        public void onLayoutChange(View view, int i, int i2, int i3, int i4, int i5, int i6, int i7, int i8) {
            if (view == null) {
                C6635.m9824("view");
                throw null;
            }
            view.removeOnLayoutChangeListener(this);
            C0373 c0373 = C0373.this;
            C0373.m1499(c0373, c0373.f2214 == 0);
            C0373.m1495(C0373.this, false, false, 3);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$ޅ, reason: contains not printable characters */
    public static final /* synthetic */ class C0381 extends C6634 implements InterfaceC6618<View, Integer, View> {
        public C0381(C0373 c0373) {
            super(2, c0373);
        }

        @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 C0373.m1489((C0373) this.f19386, view2, iIntValue);
            }
            C6635.m9824("p1");
            throw null;
        }

        @Override // p402.p411.p413.AbstractC6627, p402.p418.InterfaceC6665
        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final String mo1544() {
            return "onFocusSearch";
        }

        @Override // p402.p411.p413.AbstractC6627
        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final InterfaceC6667 mo1545() {
            return C6647.m9829(C0373.class);
        }

        @Override // p402.p411.p413.AbstractC6627
        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public final String mo1546() {
            return "onFocusSearch(Landroid/view/View;I)Landroid/view/View;";
        }
    }

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

        @Override // p402.p411.p412.InterfaceC6603
        /* JADX INFO: renamed from: ނ */
        public SharedPreferencesOnSharedPreferenceChangeListenerC0459 mo1543() {
            Fragment fragmentM3924 = C0373.this.getChildFragmentManager().m3924(C0661.containerPlayerChannels);
            if (fragmentM3924 != null) {
                return (SharedPreferencesOnSharedPreferenceChangeListenerC0459) fragmentM3924;
            }
            throw new TypeCastException("null cannot be cast to non-null type ar.tvplayer.tv.player.ui.channels.PlayerChannelsFragment");
        }
    }

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

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

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

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

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public final /* synthetic */ SharedPreferencesOnSharedPreferenceChangeListenerC0501 f2245;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C0383(SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501, InterfaceC6575 interfaceC6575) {
            super(2, interfaceC6575);
            this.f2245 = sharedPreferencesOnSharedPreferenceChangeListenerC0501;
        }

        @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;
            }
            C0383 c0383 = new C0383(this.f2245, interfaceC6575);
            c0383.f2242 = (InterfaceC1327) obj;
            return c0383;
        }

        @Override // p402.p411.p412.InterfaceC6618
        /* JADX INFO: renamed from: ؠ */
        public final Object mo838(InterfaceC1327 interfaceC1327, InterfaceC6575<? super C6549> interfaceC6575) {
            return ((C0383) 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.f2244;
            if (i == 0) {
                C4303.m7198(obj);
                this.f2243 = this.f2242;
                this.f2244 = 1;
                if (C4303.m7005(100L, this) == enumC6586) {
                    return enumC6586;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                C4303.m7198(obj);
            }
            C3454 c3454 = this.f2245.f2579;
            if (c3454 != null) {
                ކ.֏(c3454, true);
            }
            return C6549.f19328;
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$ވ, reason: contains not printable characters */
    public static final class RunnableC0384 implements Runnable {

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

        public RunnableC0384(boolean z) {
            this.f2247 = z;
        }

        @Override // java.lang.Runnable
        public final void run() {
            TextClock textClock;
            if (this.f2247 || (textClock = (TextClock) C0373.this.m1503(C0661.playerClock)) == null) {
                return;
            }
            LayoutInflaterFactory2C1494.C1505.m2943((View) textClock, true);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$މ, reason: contains not printable characters */
    @InterfaceC6540
    public static final class RunnableC0385 implements Runnable {

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public final /* synthetic */ View f2248;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public final /* synthetic */ C0373 f2249;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public final /* synthetic */ View f2250;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public final /* synthetic */ int f2251;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public final /* synthetic */ int f2252;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public final /* synthetic */ int f2253;

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

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

        /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$މ$֏, reason: contains not printable characters */
        public static final class C0386 implements AbstractC1802.InterfaceC1804 {

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final /* synthetic */ int f2256;

            /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
            public final /* synthetic */ int f2257;

            /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
            public final /* synthetic */ int f2258;

            /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
            public final /* synthetic */ int f2259;

            /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
            public final /* synthetic */ RunnableC0385 f2260;

            public C0386(int i, int i2, int i3, int i4, RunnableC0385 runnableC0385) {
                this.f2256 = i;
                this.f2257 = i2;
                this.f2258 = i3;
                this.f2259 = i4;
                this.f2260 = runnableC0385;
            }

            @Override // p037.p065.p066.AbstractC1802.InterfaceC1804
            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final void mo1547(AbstractC1802 abstractC1802) {
                if (abstractC1802 == null) {
                    C6635.m9824("it");
                    throw null;
                }
                View view = this.f2260.f2250;
                ViewGroup.LayoutParams layoutParams = view.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;
                C0373.m1491(this.f2260.f2249, c0075, 0);
                Object objM3626 = ((C1829) abstractC1802).m3626();
                if (objM3626 == null) {
                    throw new TypeCastException("null cannot be cast to non-null type kotlin.Float");
                }
                float fFloatValue = ((Float) objM3626).floatValue();
                ((ViewGroup.MarginLayoutParams) c0075).width = C4303.m6975((this.f2256 - r2) * fFloatValue) + this.f2260.f2251;
                ((ViewGroup.MarginLayoutParams) c0075).height = C4303.m6975((this.f2257 - r2) * fFloatValue) + this.f2260.f2252;
                ((ViewGroup.MarginLayoutParams) c0075).leftMargin = C4303.m6975((this.f2258 - r2) * fFloatValue) + this.f2260.f2253;
                ((ViewGroup.MarginLayoutParams) c0075).topMargin = C4303.m6975(fFloatValue * (this.f2259 - r2)) + this.f2260.f2254;
                c0075.f515 = 0;
                c0075.f519 = 0;
                view.setLayoutParams(c0075);
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.֏$މ$ؠ, reason: contains not printable characters */
        public static final class C0387 implements AbstractC1802.InterfaceC1803 {

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final /* synthetic */ RunnableC0385 f2261;

            public C0387(int i, int i2, int i3, int i4, RunnableC0385 runnableC0385) {
                this.f2261 = runnableC0385;
            }

            @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
            /* JADX INFO: renamed from: ֏ */
            public void mo1260(AbstractC1802 abstractC1802) {
                if (abstractC1802 == null) {
                    C6635.m9824("animator");
                    throw null;
                }
                View view = this.f2261.f2249.mView;
                if (view == null) {
                    return;
                }
                view.setTag(C0661.transition_in_progress_tag, false);
                view.setTag(C0661.player_zooming_in_progress_tag, false);
                C0373 c0373 = this.f2261.f2249;
                if (!c0373.f2210) {
                    c0373.m1512(false);
                    C0373.m1497(this.f2261.f2249);
                    C0373.m1501(this.f2261.f2249);
                    View viewM1528 = this.f2261.f2249.m1528();
                    if (viewM1528 != null) {
                        viewM1528.setElevation(0.0f);
                        viewM1528.setBackground(null);
                    }
                }
                C0373 c03732 = this.f2261.f2249;
                C0373.m1499(c03732, c03732.f2214 == 0);
                C0373.m1495(this.f2261.f2249, false, false, 3);
            }

            @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public /* synthetic */ void mo1548(AbstractC1802 abstractC1802, boolean z) {
                C1801.m3550(this, abstractC1802, z);
            }

            @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
            /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
            public void mo1549(AbstractC1802 abstractC1802) {
                if (abstractC1802 != null) {
                    return;
                }
                C6635.m9824("animator");
                throw null;
            }

            @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
            /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
            public /* synthetic */ void mo1550(AbstractC1802 abstractC1802, boolean z) {
                C1801.m3551(this, abstractC1802, z);
            }

            @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
            /* JADX INFO: renamed from: ހ */
            public void mo1261(AbstractC1802 abstractC1802) {
                if (abstractC1802 != null) {
                    return;
                }
                C6635.m9824("animator");
                throw null;
            }

            @Override // p037.p065.p066.AbstractC1802.InterfaceC1803
            /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
            public void mo1551(AbstractC1802 abstractC1802) {
                if (abstractC1802 != null) {
                    return;
                }
                C6635.m9824("animator");
                throw null;
            }
        }

        public RunnableC0385(View view, C0373 c0373, View view2, int i, int i2, int i3, int i4, boolean z) {
            this.f2248 = view;
            this.f2249 = c0373;
            this.f2250 = view2;
            this.f2251 = i;
            this.f2252 = i2;
            this.f2253 = i3;
            this.f2254 = i4;
            this.f2255 = z;
        }

        @Override // java.lang.Runnable
        public final void run() {
            View viewM1503 = this.f2249.m1503(C0661.playerPlaceholder);
            C6635.m9823((Object) viewM1503, "playerPlaceholder");
            int left = viewM1503.getLeft();
            View viewM15032 = this.f2249.m1503(C0661.playerPlaceholder);
            C6635.m9823((Object) viewM15032, "playerPlaceholder");
            int top = viewM15032.getTop();
            View viewM15033 = this.f2249.m1503(C0661.playerPlaceholder);
            C6635.m9823((Object) viewM15033, "playerPlaceholder");
            int width = viewM15033.getWidth();
            View viewM15034 = this.f2249.m1503(C0661.playerPlaceholder);
            C6635.m9823((Object) viewM15034, "playerPlaceholder");
            int height = viewM15034.getHeight();
            C0373.m1499(this.f2249, false);
            C1829 c1829M3618 = C1829.m3618(0.0f, 1.0f);
            c1829M3618.m3554(new C0386(width, height, left, top, this));
            c1829M3618.m3553(new C0387(width, height, left, top, this));
            c1829M3618.mo3562(this.f2255 ? 300L : 0L);
            c1829M3618.m3622(false);
        }
    }

    public C0373() {
        super(C0662.fragment_player_host);
        this.f2211 = new ArrayList<>();
        this.f2220 = C4303.m7065((InterfaceC6603) new C0382());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final /* synthetic */ View m1489(C0373 c0373, View view, int i) {
        if (view == c0373.m1503(C0661.floatingMenu).findFocus()) {
            return c0373.m1503(C0661.floatingMenu).֏(view, i);
        }
        return null;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Removed duplicated region for block: B:45:0x0079  */
    /* JADX WARN: Removed duplicated region for block: B:61:0x00a2  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final /* synthetic */ void m1490(C0373 c0373, int i) {
        View viewFindViewById;
        View view;
        int id;
        View view2;
        View view3;
        int i2;
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1504;
        View view4;
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = c0373.m1529();
        if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 == null || (viewFindViewById = c0373.m1503(C0661.layoutContent).findViewById(sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mFragmentId)) == null) {
            return;
        }
        switch (i) {
            case 19:
                Object tag = viewFindViewById.getTag();
                C0376 c0376 = (C0376) (tag instanceof C0376 ? tag : null);
                id = (c0376 != null && (view = c0376.f2229) != null) ? view.getId() : 0;
                break;
            case 20:
                Object tag2 = viewFindViewById.getTag();
                C0376 c03762 = (C0376) (tag2 instanceof C0376 ? tag2 : null);
                if (c03762 != null && (view2 = c03762.f2231) != null) {
                    id = view2.getId();
                    break;
                }
                break;
            case 21:
                Object tag3 = viewFindViewById.getTag();
                C0376 c03763 = (C0376) (tag3 instanceof C0376 ? tag3 : null);
                if (c03763 != null && (view3 = c03763.f2228) != null) {
                    id = view3.getId();
                    break;
                }
                break;
            case 22:
                Object tag4 = viewFindViewById.getTag();
                C0376 c03764 = (C0376) (tag4 instanceof C0376 ? tag4 : null);
                if (c03764 != null && (view4 = c03764.f2230) != null) {
                    id = view4.getId();
                    break;
                }
                break;
        }
        if (id != 0) {
            c0373.m1518(id);
            return;
        }
        if (c0373.f2212 == c0373.f2213) {
            if (i != 21) {
                i2 = (i == 22 && (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1504 = c0373.m1504(sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529, false)) != null) ? sharedPreferencesOnSharedPreferenceChangeListenerC0501M1504.mFragmentId : 0;
            } else {
                SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M15042 = c0373.m1504(sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529, true);
                if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M15042 != null) {
                    i2 = sharedPreferencesOnSharedPreferenceChangeListenerC0501M15042.mFragmentId;
                }
            }
            if (i2 != 0) {
                c0373.f2213 = i2;
                c0373.m1518(i2);
                m1495(c0373, false, false, 3);
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final /* synthetic */ void m1491(C0373 c0373, ConstraintLayout.C0075 c0075, int i) {
        if (c0373 == null) {
            throw null;
        }
        ((ViewGroup.MarginLayoutParams) c0075).width = i;
        ((ViewGroup.MarginLayoutParams) c0075).height = (i * 9) / 16;
        c0075.f516 = -1;
        c0075.f515 = -1;
        c0075.f517 = -1;
        c0075.f518 = -1;
        c0075.f528 = -1;
        c0075.f527 = -1;
        c0075.f530 = -1;
        c0075.f529 = -1;
        c0075.f519 = -1;
        c0075.f520 = -1;
        c0075.f522 = -1;
        c0075.f521 = -1;
        c0075.f543 = -1;
        c0075.f544 = -1;
        ((ViewGroup.MarginLayoutParams) c0075).leftMargin = 0;
        ((ViewGroup.MarginLayoutParams) c0075).rightMargin = 0;
        ((ViewGroup.MarginLayoutParams) c0075).topMargin = 0;
        ((ViewGroup.MarginLayoutParams) c0075).bottomMargin = 0;
        c0075.setMarginStart(0);
        c0075.setMarginEnd(0);
        c0075.f539 = null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m1492(C0373 c0373, SharedPreferencesOnSharedPreferenceChangeListenerC0459.EnumC0462 enumC0462, Boolean bool, boolean z, boolean z2, int i) {
        if ((i & 2) != 0) {
            bool = null;
        }
        if ((i & 4) != 0) {
            z = false;
        }
        if ((i & 8) != 0) {
            z2 = true;
        }
        c0373.m1506(enumC0462, bool, z, z2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m1494(C0373 c0373, boolean z, int i) {
        if ((i & 1) != 0) {
            z = true;
        }
        c0373.m1512(z);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m1495(C0373 c0373, boolean z, boolean z2, int i) {
        if ((i & 1) != 0) {
            z = false;
        }
        if ((i & 2) != 0) {
            z2 = true;
        }
        c0373.m1507(z, z2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m1496(C0373 c0373, boolean z, boolean z2, boolean z3, int i) {
        if ((i & 2) != 0) {
            z2 = false;
        }
        if ((i & 4) != 0) {
            z3 = false;
        }
        c0373.m1508(z, z2, z3);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final /* synthetic */ void m1497(C0373 c0373) {
        if (c0373.f2210) {
            View view = c0373.mView;
            if (view != null) {
                view.setBackgroundResource(C0658.content_background_dark);
                return;
            }
            return;
        }
        View view2 = c0373.mView;
        if (view2 != null) {
            view2.setBackground(null);
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final /* synthetic */ void m1499(C0373 c0373, boolean z) {
        View videoSurfaceView;
        for (SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501 : c0373.f2211) {
            if (sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId != c0373.f2212) {
                CustomPlayerView customPlayerViewM1744 = sharedPreferencesOnSharedPreferenceChangeListenerC0501.m1744(C0661.playerView);
                if (customPlayerViewM1744 != null && (videoSurfaceView = customPlayerViewM1744.getVideoSurfaceView()) != null) {
                    LayoutInflaterFactory2C1494.C1505.m2979(videoSurfaceView, z);
                }
                View view = sharedPreferencesOnSharedPreferenceChangeListenerC0501.mView;
                if (view != null) {
                    LayoutInflaterFactory2C1494.C1505.m2979(view, z);
                }
            }
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ void m1500(C0373 c0373, boolean z, boolean z2, int i) {
        if ((i & 2) != 0) {
            z2 = true;
        }
        c0373.m1513(z, z2);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final /* synthetic */ void m1501(C0373 c0373) {
        TextClock textClock = (TextClock) c0373.m1503(C0661.textClock);
        textClock.setVisibility(c0373.f2210 ? 0 : 8);
        if (textClock.getVisibility() == 0) {
            textClock.setFormat12Hour(DateFormat.getBestDateTimePattern(textClock.getTextLocale(), "hm MMMd EEE"));
            textClock.setFormat24Hour(DateFormat.getBestDateTimePattern(textClock.getTextLocale(), "Hm MMMd EEE"));
            textClock.setTextSize(C0884.f3553.f3549);
        }
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static /* synthetic */ void m1502(C0373 c0373, boolean z, boolean z2, int i) {
        if ((i & 1) != 0) {
            z = true;
        }
        if ((i & 2) != 0) {
            z2 = true;
        }
        c0373.m1515(z, z2);
    }

    @Override // androidx.fragment.app.Fragment
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (bundle == null) {
            m1522();
            AbstractC2014 childFragmentManager = getChildFragmentManager();
            C6635.m9823((Object) childFragmentManager, "childFragmentManager");
            C1988 c1988 = new C1988(childFragmentManager);
            C6635.m9823((Object) c1988, "beginTransaction()");
            c1988.m4004(C0661.containerPlayerChannels, new SharedPreferencesOnSharedPreferenceChangeListenerC0459());
            c1988.mo3874();
            return;
        }
        this.f2209 = bundle.getBoolean("is_multi_view_mode");
        this.f2210 = bundle.getBoolean("is_preview_mode");
        this.f2212 = bundle.getInt("selected_player_fragment_id");
        this.f2213 = bundle.getInt("enlarged_player_fragment_id");
        this.f2214 = bundle.getInt("full_screen_player_fragment_id");
        AbstractC2014 childFragmentManager2 = getChildFragmentManager();
        C6635.m9823((Object) childFragmentManager2, "childFragmentManager");
        List<Fragment> listM3949 = childFragmentManager2.m3949();
        C6635.m9823((Object) listM3949, "childFragmentManager.fragments");
        for (Fragment fragment : listM3949) {
            if (fragment instanceof SharedPreferencesOnSharedPreferenceChangeListenerC0501) {
                this.f2211.add((SharedPreferencesOnSharedPreferenceChangeListenerC0501) fragment);
            }
        }
    }

    @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 onPictureInPictureModeChanged(boolean z) {
        if (this.f2209 && z) {
            if (this.f2211.size() == 1) {
                m1513(false, false);
            } else if (this.f2214 == 0) {
                this.f2214 = this.f2212;
                m1502(this, false, false, 2);
            }
        }
    }

    @Override // androidx.fragment.app.Fragment
    public void onSaveInstanceState(Bundle bundle) {
        if (bundle == null) {
            C6635.m9824("outState");
            throw null;
        }
        bundle.putBoolean("is_multi_view_mode", this.f2209);
        bundle.putBoolean("is_preview_mode", this.f2210);
        bundle.putInt("selected_player_fragment_id", this.f2212);
        bundle.putInt("enlarged_player_fragment_id", this.f2213);
        bundle.putInt("full_screen_player_fragment_id", this.f2214);
    }

    @Override // p000.p001.p021.p024.AbstractC1272, androidx.fragment.app.Fragment
    public void onStop() {
        super.onStop();
        if (!C6635.m9825((Object) ލ.ބ, (Object) false)) {
            m1512(false);
            InterfaceC1363 interfaceC1363 = this.f2215;
            if (interfaceC1363 != null) {
                C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
            }
        }
    }

    @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);
        m1503(C0661.layoutContent).setOnFocusSearchListener(new C0381(this));
        if (bundle != null) {
            PlayerHostLayout playerHostLayoutM1503 = m1503(C0661.layoutContent);
            C6635.m9823((Object) playerHostLayoutM1503, "layoutContent");
            playerHostLayoutM1503.addOnLayoutChangeListener(new ViewOnLayoutChangeListenerC0380());
        }
    }

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

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final SharedPreferencesOnSharedPreferenceChangeListenerC0501 m1504(SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501, boolean z) {
        int iIndexOf = this.f2211.indexOf(sharedPreferencesOnSharedPreferenceChangeListenerC0501);
        if (iIndexOf == -1) {
            return null;
        }
        int size = iIndexOf + (z ? -1 : 1);
        if (size < 0) {
            size = this.f2211.size() - 1;
        } else if (size >= this.f2211.size()) {
            size = 0;
        }
        return this.f2211.get(size);
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x006d  */
    /* JADX WARN: Removed duplicated region for block: B:31:0x006f  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m1505(long j, C1267 c1267, C1262 c1262, Boolean bool, boolean z) {
        boolean z2;
        if (c1267 == null) {
            C6635.m9824("channelGroup");
            throw null;
        }
        if (C6635.m9825((Object) bool, (Object) true)) {
            LayoutInflaterFactory2C1494.C1505.m2935(j, c1267, c1262);
            m1522();
            SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
            if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 != null) {
                sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.m1758(false, c1262, false);
            }
            m1512(true);
            return;
        }
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292 = m1529();
        if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292 != null) {
            if (j == ރ.ߠ.ޔ() && !sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292.m1772(c1262)) {
                if (z) {
                    return;
                }
                m1512(true);
                return;
            }
            LayoutInflaterFactory2C1494.C1505.m2935(j, c1267, c1262);
            if (this.f2210) {
                z2 = (ރ.ߠ.ʸ() || z) ? false : true;
            } else {
                ރ r8 = ރ.ߠ;
                if (r8 == null) {
                    throw null;
                }
                if (!LayoutInflaterFactory2C1494.C1505.m2986(((Boolean) ރ.ၺ.m9835(r8, ރ.ށ[76])).booleanValue())) {
                }
            }
            if (z2) {
                m1512(true);
            } else {
                SharedPreferencesOnSharedPreferenceChangeListenerC0459 sharedPreferencesOnSharedPreferenceChangeListenerC0459M1525 = m1525();
                C1219.m2491((RecyclerView) sharedPreferencesOnSharedPreferenceChangeListenerC0459M1525.m1656().m1617(C0661.vgvChannels), (Object) SharedPreferencesOnSharedPreferenceChangeListenerC0438.EnumC0442.UPDATE_PLAY_ICON);
                C1219.m2491((RecyclerView) sharedPreferencesOnSharedPreferenceChangeListenerC0459M1525.m1660().m1586(C0661.vgvPrograms), (Object) SharedPreferencesOnSharedPreferenceChangeListenerC0411.EnumC0431.UPDATE_PLAY_ICON);
            }
            SharedPreferencesOnSharedPreferenceChangeListenerC0501.m1694(sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292, z2 && bool == null, c1262, false, 4);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m1506(SharedPreferencesOnSharedPreferenceChangeListenerC0459.EnumC0462 enumC0462, Boolean bool, boolean z, boolean z2) {
        if (enumC0462 == null) {
            C6635.m9824("uiMode");
            throw null;
        }
        if (z && !this.f2210) {
            this.f2210 = true;
            CommonUtilsKt.ؠ(this, new C0635(this, true, z2, null));
        }
        m1525().f2438 = bool;
        SharedPreferencesOnSharedPreferenceChangeListenerC0459.m1637(m1525(), enumC0462, z2 && !z, false, 4);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m1507(boolean z, boolean z2) {
        if (this.mView == null) {
            return;
        }
        C0377 c0377 = new C0377(z);
        C0373 c0373 = C0373.this;
        if (!c0373.f2210) {
            if (c0373.f2214 == 0) {
                if (c0373.f2213 != 0) {
                    switch (c0373.f2211.size()) {
                        case 1:
                            c0377.m1537();
                            break;
                        case 2:
                            View viewM1535 = c0377.m1535();
                            View viewM1536 = c0377.m1536(0, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM6975 = C4303.m6975((r3.getWidth() - (c0377.f2232 * 7)) / 4.0f);
                            ViewGroup.LayoutParams layoutParams = viewM1535.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;
                            m1491(C0373.this, c0075, 0);
                            c0075.f539 = "W,16:9";
                            c0075.f528 = 0;
                            c0075.f530 = 0;
                            c0075.f519 = 0;
                            c0075.f521 = viewM1536.getId();
                            int i = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c0075).topMargin = i;
                            ((ViewGroup.MarginLayoutParams) c0075).bottomMargin = i;
                            viewM1535.setLayoutParams(c0075);
                            ViewGroup.LayoutParams layoutParams2 = viewM1536.getLayoutParams();
                            if (layoutParams2 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00752 = (ConstraintLayout.C0075) layoutParams2;
                            m1491(C0373.this, c00752, iM6975);
                            c00752.f528 = 0;
                            c00752.f530 = 0;
                            c00752.f522 = 0;
                            ((ViewGroup.MarginLayoutParams) c00752).bottomMargin = c0377.f2232;
                            viewM1536.setLayoutParams(c00752);
                            viewM1535.setTag(new C0376(null, viewM1536, null, viewM1536));
                            C2803.m4891((View) null, viewM1535, (View) null, viewM1535, viewM1536);
                            break;
                            break;
                        case 3:
                            View viewM15352 = c0377.m1535();
                            View viewM15362 = c0377.m1536(0, true);
                            View viewM15363 = c0377.m1536(1, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69752 = C4303.m6975((r5.getWidth() - (c0377.f2232 * 7)) / 4.0f);
                            ViewGroup.LayoutParams layoutParams3 = viewM15352.getLayoutParams();
                            if (layoutParams3 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00753 = (ConstraintLayout.C0075) layoutParams3;
                            m1491(C0373.this, c00753, 0);
                            c00753.f539 = "W,16:9";
                            c00753.f528 = 0;
                            c00753.f530 = 0;
                            c00753.f519 = 0;
                            c00753.f521 = viewM15362.getId();
                            int i2 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c00753).topMargin = i2;
                            ((ViewGroup.MarginLayoutParams) c00753).bottomMargin = i2;
                            viewM15352.setLayoutParams(c00753);
                            ViewGroup.LayoutParams layoutParams4 = viewM15362.getLayoutParams();
                            if (layoutParams4 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00754 = (ConstraintLayout.C0075) layoutParams4;
                            m1491(C0373.this, c00754, iM69752);
                            c00754.f528 = 0;
                            c00754.f529 = viewM15363.getId();
                            c00754.f522 = 0;
                            c00754.f543 = 2;
                            ((ViewGroup.MarginLayoutParams) c00754).bottomMargin = c0377.f2232;
                            viewM15362.setLayoutParams(c00754);
                            ViewGroup.LayoutParams layoutParams5 = viewM15363.getLayoutParams();
                            if (layoutParams5 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00755 = (ConstraintLayout.C0075) layoutParams5;
                            m1491(C0373.this, c00755, iM69752);
                            c00755.f527 = viewM15362.getId();
                            c00755.f530 = 0;
                            c00755.f522 = 0;
                            c00755.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c00755).bottomMargin = c0377.f2232;
                            viewM15363.setLayoutParams(c00755);
                            viewM15352.setTag(new C0376(null, viewM15362, null, viewM15362));
                            viewM15362.setTag(new C0376(viewM15363, viewM15352, viewM15363, viewM15352));
                            C2803.m4891(viewM15362, viewM15352, viewM15362, viewM15352, viewM15363);
                            break;
                            break;
                        case 4:
                            View viewM15353 = c0377.m1535();
                            View viewM15364 = c0377.m1536(0, true);
                            View viewM15365 = c0377.m1536(1, true);
                            View viewM15366 = c0377.m1536(2, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69753 = C4303.m6975((r7.getWidth() - (c0377.f2232 * 7)) / 4.0f);
                            ViewGroup.LayoutParams layoutParams6 = viewM15353.getLayoutParams();
                            if (layoutParams6 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00756 = (ConstraintLayout.C0075) layoutParams6;
                            m1491(C0373.this, c00756, 0);
                            c00756.f539 = "W,16:9";
                            c00756.f528 = 0;
                            c00756.f530 = 0;
                            c00756.f519 = 0;
                            c00756.f521 = viewM15364.getId();
                            int i3 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c00756).topMargin = i3;
                            ((ViewGroup.MarginLayoutParams) c00756).bottomMargin = i3;
                            viewM15353.setLayoutParams(c00756);
                            ViewGroup.LayoutParams layoutParams7 = viewM15364.getLayoutParams();
                            if (layoutParams7 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00757 = (ConstraintLayout.C0075) layoutParams7;
                            m1491(C0373.this, c00757, iM69753);
                            c00757.f528 = 0;
                            c00757.f529 = viewM15365.getId();
                            c00757.f522 = 0;
                            c00757.f543 = 2;
                            ((ViewGroup.MarginLayoutParams) c00757).bottomMargin = c0377.f2232;
                            viewM15364.setLayoutParams(c00757);
                            ViewGroup.LayoutParams layoutParams8 = viewM15365.getLayoutParams();
                            if (layoutParams8 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00758 = (ConstraintLayout.C0075) layoutParams8;
                            m1491(C0373.this, c00758, iM69753);
                            c00758.f527 = viewM15364.getId();
                            c00758.f529 = viewM15366.getId();
                            c00758.f522 = 0;
                            c00758.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c00758).bottomMargin = c0377.f2232;
                            viewM15365.setLayoutParams(c00758);
                            ViewGroup.LayoutParams layoutParams9 = viewM15366.getLayoutParams();
                            if (layoutParams9 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c00759 = (ConstraintLayout.C0075) layoutParams9;
                            m1491(C0373.this, c00759, iM69753);
                            c00759.f527 = viewM15365.getId();
                            c00759.f530 = 0;
                            c00759.f522 = 0;
                            c00759.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c00759).bottomMargin = c0377.f2232;
                            viewM15366.setLayoutParams(c00759);
                            viewM15353.setTag(new C0376(null, viewM15364, null, viewM15364));
                            viewM15364.setTag(new C0376(viewM15366, viewM15353, viewM15365, viewM15353));
                            viewM15365.setTag(new C0376(viewM15364, viewM15353, viewM15366, viewM15353));
                            C2803.m4891(viewM15365, viewM15353, viewM15364, viewM15353, viewM15366);
                            break;
                            break;
                        case 5:
                            View viewM15354 = c0377.m1535();
                            View viewM15367 = c0377.m1536(0, true);
                            View viewM15368 = c0377.m1536(1, true);
                            View viewM15369 = c0377.m1536(2, true);
                            View viewM153610 = c0377.m1536(3, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69754 = C4303.m6975((r8.getWidth() - (c0377.f2232 * 7)) / 4.0f);
                            ViewGroup.LayoutParams layoutParams10 = viewM15354.getLayoutParams();
                            if (layoutParams10 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007510 = (ConstraintLayout.C0075) layoutParams10;
                            m1491(C0373.this, c007510, 0);
                            c007510.f539 = "W,16:9";
                            c007510.f528 = 0;
                            c007510.f530 = 0;
                            c007510.f519 = 0;
                            c007510.f521 = viewM15367.getId();
                            int i4 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c007510).topMargin = i4;
                            ((ViewGroup.MarginLayoutParams) c007510).bottomMargin = i4;
                            viewM15354.setLayoutParams(c007510);
                            ViewGroup.LayoutParams layoutParams11 = viewM15367.getLayoutParams();
                            if (layoutParams11 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007511 = (ConstraintLayout.C0075) layoutParams11;
                            m1491(C0373.this, c007511, iM69754);
                            c007511.f528 = 0;
                            c007511.f529 = viewM15368.getId();
                            c007511.f522 = 0;
                            c007511.f543 = 2;
                            ((ViewGroup.MarginLayoutParams) c007511).bottomMargin = c0377.f2232;
                            viewM15367.setLayoutParams(c007511);
                            ViewGroup.LayoutParams layoutParams12 = viewM15368.getLayoutParams();
                            if (layoutParams12 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007512 = (ConstraintLayout.C0075) layoutParams12;
                            m1491(C0373.this, c007512, iM69754);
                            c007512.f527 = viewM15367.getId();
                            c007512.f529 = viewM15369.getId();
                            c007512.f522 = 0;
                            c007512.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007512).bottomMargin = c0377.f2232;
                            viewM15368.setLayoutParams(c007512);
                            ViewGroup.LayoutParams layoutParams13 = viewM15369.getLayoutParams();
                            if (layoutParams13 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007513 = (ConstraintLayout.C0075) layoutParams13;
                            m1491(C0373.this, c007513, iM69754);
                            c007513.f527 = viewM15368.getId();
                            c007513.f529 = viewM153610.getId();
                            c007513.f522 = 0;
                            c007513.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007513).bottomMargin = c0377.f2232;
                            viewM15369.setLayoutParams(c007513);
                            ViewGroup.LayoutParams layoutParams14 = viewM153610.getLayoutParams();
                            if (layoutParams14 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007514 = (ConstraintLayout.C0075) layoutParams14;
                            m1491(C0373.this, c007514, iM69754);
                            c007514.f527 = viewM15369.getId();
                            c007514.f530 = 0;
                            c007514.f522 = 0;
                            c007514.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007514).bottomMargin = c0377.f2232;
                            viewM153610.setLayoutParams(c007514);
                            viewM15354.setTag(new C0376(null, viewM15367, null, viewM15367));
                            viewM15367.setTag(new C0376(viewM153610, viewM15354, viewM15368, viewM15354));
                            viewM15368.setTag(new C0376(viewM15367, viewM15354, viewM15369, viewM15354));
                            viewM15369.setTag(new C0376(viewM15368, viewM15354, viewM153610, viewM15354));
                            C2803.m4891(viewM15369, viewM15354, viewM15367, viewM15354, viewM153610);
                            break;
                            break;
                        case 6:
                            View viewM15355 = c0377.m1535();
                            View viewM153611 = c0377.m1536(0, true);
                            View viewM153612 = c0377.m1536(1, true);
                            View viewM153613 = c0377.m1536(2, true);
                            View viewM153614 = c0377.m1536(3, true);
                            View viewM153615 = c0377.m1536(4, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69755 = C4303.m6975((r9.getWidth() - (c0377.f2232 * 7)) / 4.0f);
                            ViewGroup.LayoutParams layoutParams15 = viewM15355.getLayoutParams();
                            if (layoutParams15 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007515 = (ConstraintLayout.C0075) layoutParams15;
                            m1491(C0373.this, c007515, 0);
                            c007515.f539 = "W,16:9";
                            c007515.f528 = viewM153611.getId();
                            c007515.f519 = 0;
                            c007515.f521 = viewM153611.getId();
                            int i5 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c007515).topMargin = i5;
                            ((ViewGroup.MarginLayoutParams) c007515).bottomMargin = i5;
                            viewM15355.setLayoutParams(c007515);
                            ViewGroup.LayoutParams layoutParams16 = viewM153611.getLayoutParams();
                            if (layoutParams16 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007516 = (ConstraintLayout.C0075) layoutParams16;
                            m1491(C0373.this, c007516, iM69755);
                            c007516.f528 = 0;
                            c007516.f529 = viewM153612.getId();
                            c007516.f522 = 0;
                            c007516.f543 = 2;
                            ((ViewGroup.MarginLayoutParams) c007516).bottomMargin = c0377.f2232;
                            viewM153611.setLayoutParams(c007516);
                            ViewGroup.LayoutParams layoutParams17 = viewM153612.getLayoutParams();
                            if (layoutParams17 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007517 = (ConstraintLayout.C0075) layoutParams17;
                            m1491(C0373.this, c007517, iM69755);
                            c007517.f527 = viewM153611.getId();
                            c007517.f529 = viewM153613.getId();
                            c007517.f522 = 0;
                            c007517.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007517).bottomMargin = c0377.f2232;
                            viewM153612.setLayoutParams(c007517);
                            ViewGroup.LayoutParams layoutParams18 = viewM153613.getLayoutParams();
                            if (layoutParams18 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007518 = (ConstraintLayout.C0075) layoutParams18;
                            m1491(C0373.this, c007518, iM69755);
                            c007518.f527 = viewM153612.getId();
                            c007518.f529 = viewM153614.getId();
                            c007518.f522 = 0;
                            c007518.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007518).bottomMargin = c0377.f2232;
                            viewM153613.setLayoutParams(c007518);
                            ViewGroup.LayoutParams layoutParams19 = viewM153614.getLayoutParams();
                            if (layoutParams19 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007519 = (ConstraintLayout.C0075) layoutParams19;
                            m1491(C0373.this, c007519, iM69755);
                            c007519.f527 = viewM153613.getId();
                            c007519.f530 = 0;
                            c007519.f522 = 0;
                            c007519.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007519).bottomMargin = c0377.f2232;
                            viewM153614.setLayoutParams(c007519);
                            ViewGroup.LayoutParams layoutParams20 = viewM153615.getLayoutParams();
                            if (layoutParams20 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007520 = (ConstraintLayout.C0075) layoutParams20;
                            m1491(C0373.this, c007520, iM69755);
                            c007520.f528 = viewM153614.getId();
                            c007520.f519 = 0;
                            ((ViewGroup.MarginLayoutParams) c007520).topMargin = c0377.f2232;
                            viewM153615.setLayoutParams(c007520);
                            viewM15355.setTag(new C0376(null, viewM153611, viewM153615, viewM153611));
                            viewM153611.setTag(new C0376(viewM153614, viewM15355, viewM153612, viewM15355));
                            viewM153612.setTag(new C0376(viewM153611, viewM15355, viewM153613, viewM15355));
                            viewM153613.setTag(new C0376(viewM153612, viewM15355, viewM153614, viewM15355));
                            viewM153614.setTag(new C0376(viewM153613, viewM153615, viewM153611, viewM153615));
                            C2803.m4891(viewM15355, viewM153614, viewM15355, viewM153614, viewM153615);
                            break;
                            break;
                        case 7:
                            View viewM15356 = c0377.m1535();
                            View viewM153616 = c0377.m1536(0, true);
                            View viewM153617 = c0377.m1536(1, true);
                            View viewM153618 = c0377.m1536(2, true);
                            View viewM153619 = c0377.m1536(3, true);
                            View viewM153620 = c0377.m1536(4, true);
                            View viewM153621 = c0377.m1536(5, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69756 = C4303.m6975((r7.getWidth() - (c0377.f2232 * 7)) / 4.0f);
                            ViewGroup.LayoutParams layoutParams21 = viewM15356.getLayoutParams();
                            if (layoutParams21 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007521 = (ConstraintLayout.C0075) layoutParams21;
                            m1491(C0373.this, c007521, 0);
                            c007521.f539 = "W,16:9";
                            c007521.f528 = viewM153616.getId();
                            c007521.f519 = 0;
                            c007521.f521 = viewM153616.getId();
                            int i6 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c007521).topMargin = i6;
                            ((ViewGroup.MarginLayoutParams) c007521).bottomMargin = i6;
                            viewM15356.setLayoutParams(c007521);
                            ViewGroup.LayoutParams layoutParams22 = viewM153616.getLayoutParams();
                            if (layoutParams22 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007522 = (ConstraintLayout.C0075) layoutParams22;
                            m1491(C0373.this, c007522, iM69756);
                            c007522.f528 = 0;
                            c007522.f529 = viewM153617.getId();
                            c007522.f522 = 0;
                            c007522.f543 = 2;
                            ((ViewGroup.MarginLayoutParams) c007522).bottomMargin = c0377.f2232;
                            viewM153616.setLayoutParams(c007522);
                            ViewGroup.LayoutParams layoutParams23 = viewM153617.getLayoutParams();
                            if (layoutParams23 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007523 = (ConstraintLayout.C0075) layoutParams23;
                            m1491(C0373.this, c007523, iM69756);
                            c007523.f527 = viewM153616.getId();
                            c007523.f529 = viewM153618.getId();
                            c007523.f522 = 0;
                            c007523.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007523).bottomMargin = c0377.f2232;
                            viewM153617.setLayoutParams(c007523);
                            ViewGroup.LayoutParams layoutParams24 = viewM153618.getLayoutParams();
                            if (layoutParams24 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007524 = (ConstraintLayout.C0075) layoutParams24;
                            m1491(C0373.this, c007524, iM69756);
                            c007524.f527 = viewM153617.getId();
                            c007524.f529 = viewM153619.getId();
                            c007524.f522 = 0;
                            c007524.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007524).bottomMargin = c0377.f2232;
                            viewM153618.setLayoutParams(c007524);
                            ViewGroup.LayoutParams layoutParams25 = viewM153619.getLayoutParams();
                            if (layoutParams25 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007525 = (ConstraintLayout.C0075) layoutParams25;
                            m1491(C0373.this, c007525, iM69756);
                            c007525.f527 = viewM153618.getId();
                            c007525.f530 = 0;
                            c007525.f522 = 0;
                            c007525.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007525).bottomMargin = c0377.f2232;
                            viewM153619.setLayoutParams(c007525);
                            ViewGroup.LayoutParams layoutParams26 = viewM153620.getLayoutParams();
                            if (layoutParams26 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007526 = (ConstraintLayout.C0075) layoutParams26;
                            m1491(C0373.this, c007526, iM69756);
                            c007526.f528 = viewM153619.getId();
                            c007526.f519 = 0;
                            ((ViewGroup.MarginLayoutParams) c007526).topMargin = c0377.f2232;
                            viewM153620.setLayoutParams(c007526);
                            ViewGroup.LayoutParams layoutParams27 = viewM153621.getLayoutParams();
                            if (layoutParams27 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007527 = (ConstraintLayout.C0075) layoutParams27;
                            m1491(C0373.this, c007527, iM69756);
                            c007527.f528 = viewM153619.getId();
                            c007527.f520 = viewM153620.getId();
                            ((ViewGroup.MarginLayoutParams) c007527).topMargin = c0377.f2232;
                            viewM153621.setLayoutParams(c007527);
                            viewM15356.setTag(new C0376(null, viewM153616, viewM153620, viewM153616));
                            viewM153616.setTag(new C0376(viewM153619, viewM15356, viewM153617, viewM15356));
                            viewM153617.setTag(new C0376(viewM153616, viewM15356, viewM153618, viewM15356));
                            viewM153618.setTag(new C0376(viewM153617, viewM15356, viewM153619, viewM15356));
                            viewM153619.setTag(new C0376(viewM153618, viewM153621, viewM153616, viewM153620));
                            viewM153620.setTag(new C0376(viewM15356, viewM153619, viewM15356, viewM153621));
                            C2803.m4891(viewM15356, viewM153620, viewM15356, viewM153619, viewM153621);
                            break;
                            break;
                        case 8:
                            View viewM15357 = c0377.m1535();
                            View viewM153622 = c0377.m1536(0, true);
                            View viewM153623 = c0377.m1536(1, true);
                            View viewM153624 = c0377.m1536(2, true);
                            View viewM153625 = c0377.m1536(3, true);
                            View viewM153626 = c0377.m1536(4, true);
                            View viewM153627 = c0377.m1536(5, true);
                            View viewM153628 = c0377.m1536(6, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69757 = C4303.m6975((r13.getWidth() - (c0377.f2232 * 7)) / 4.0f);
                            ViewGroup.LayoutParams layoutParams28 = viewM15357.getLayoutParams();
                            if (layoutParams28 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007528 = (ConstraintLayout.C0075) layoutParams28;
                            m1491(C0373.this, c007528, 0);
                            c007528.f539 = "W,16:9";
                            c007528.f528 = viewM153622.getId();
                            c007528.f519 = 0;
                            c007528.f521 = viewM153622.getId();
                            int i7 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c007528).topMargin = i7;
                            ((ViewGroup.MarginLayoutParams) c007528).bottomMargin = i7;
                            viewM15357.setLayoutParams(c007528);
                            ViewGroup.LayoutParams layoutParams29 = viewM153622.getLayoutParams();
                            if (layoutParams29 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007529 = (ConstraintLayout.C0075) layoutParams29;
                            m1491(C0373.this, c007529, iM69757);
                            c007529.f528 = 0;
                            c007529.f529 = viewM153623.getId();
                            c007529.f522 = 0;
                            c007529.f543 = 2;
                            ((ViewGroup.MarginLayoutParams) c007529).bottomMargin = c0377.f2232;
                            viewM153622.setLayoutParams(c007529);
                            ViewGroup.LayoutParams layoutParams30 = viewM153623.getLayoutParams();
                            if (layoutParams30 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007530 = (ConstraintLayout.C0075) layoutParams30;
                            m1491(C0373.this, c007530, iM69757);
                            c007530.f527 = viewM153622.getId();
                            c007530.f529 = viewM153624.getId();
                            c007530.f522 = 0;
                            c007530.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007530).bottomMargin = c0377.f2232;
                            viewM153623.setLayoutParams(c007530);
                            ViewGroup.LayoutParams layoutParams31 = viewM153624.getLayoutParams();
                            if (layoutParams31 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007531 = (ConstraintLayout.C0075) layoutParams31;
                            m1491(C0373.this, c007531, iM69757);
                            c007531.f527 = viewM153623.getId();
                            c007531.f529 = viewM153625.getId();
                            c007531.f522 = 0;
                            c007531.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007531).bottomMargin = c0377.f2232;
                            viewM153624.setLayoutParams(c007531);
                            ViewGroup.LayoutParams layoutParams32 = viewM153625.getLayoutParams();
                            if (layoutParams32 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007532 = (ConstraintLayout.C0075) layoutParams32;
                            m1491(C0373.this, c007532, iM69757);
                            c007532.f527 = viewM153624.getId();
                            c007532.f530 = 0;
                            c007532.f522 = 0;
                            c007532.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007532).bottomMargin = c0377.f2232;
                            viewM153625.setLayoutParams(c007532);
                            ViewGroup.LayoutParams layoutParams33 = viewM153626.getLayoutParams();
                            if (layoutParams33 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007533 = (ConstraintLayout.C0075) layoutParams33;
                            m1491(C0373.this, c007533, iM69757);
                            c007533.f528 = viewM153625.getId();
                            c007533.f519 = 0;
                            c007533.f521 = viewM153627.getId();
                            c007533.f544 = 2;
                            viewM153626.setLayoutParams(c007533);
                            ViewGroup.LayoutParams layoutParams34 = viewM153627.getLayoutParams();
                            if (layoutParams34 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007534 = (ConstraintLayout.C0075) layoutParams34;
                            m1491(C0373.this, c007534, iM69757);
                            c007534.f528 = viewM153625.getId();
                            c007534.f520 = viewM153626.getId();
                            c007534.f521 = viewM153628.getId();
                            ((ViewGroup.MarginLayoutParams) c007534).topMargin = c0377.f2232;
                            viewM153627.setLayoutParams(c007534);
                            ViewGroup.LayoutParams layoutParams35 = viewM153628.getLayoutParams();
                            if (layoutParams35 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007535 = (ConstraintLayout.C0075) layoutParams35;
                            m1491(C0373.this, c007535, iM69757);
                            c007535.f528 = viewM153625.getId();
                            c007535.f520 = viewM153627.getId();
                            c007535.f521 = viewM153625.getId();
                            ((ViewGroup.MarginLayoutParams) c007535).topMargin = c0377.f2232;
                            viewM153628.setLayoutParams(c007535);
                            viewM15357.setTag(new C0376(null, viewM153622, viewM153626, viewM153622));
                            viewM153622.setTag(new C0376(viewM153625, viewM15357, viewM153623, viewM15357));
                            viewM153623.setTag(new C0376(viewM153622, viewM15357, viewM153624, viewM15357));
                            viewM153624.setTag(new C0376(viewM153623, viewM15357, viewM153625, viewM15357));
                            viewM153625.setTag(new C0376(viewM153624, viewM153628, viewM153622, viewM153626));
                            viewM153626.setTag(new C0376(viewM15357, viewM153625, viewM15357, viewM153627));
                            viewM153627.setTag(new C0376(viewM15357, viewM153626, viewM15357, viewM153628));
                            C2803.m4891(viewM15357, viewM153627, viewM15357, viewM153625, viewM153628);
                            break;
                            break;
                        case 9:
                            View viewM15358 = c0377.m1535();
                            View viewM153629 = c0377.m1536(0, true);
                            View viewM153630 = c0377.m1536(1, true);
                            View viewM153631 = c0377.m1536(2, true);
                            View viewM153632 = c0377.m1536(3, true);
                            View viewM153633 = c0377.m1536(4, true);
                            View viewM153634 = c0377.m1536(5, true);
                            View viewM153635 = c0377.m1536(6, true);
                            View viewM153636 = c0377.m1536(7, true);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69758 = C4303.m6975((r14.getWidth() - (c0377.f2232 * 6)) / 5.0f);
                            ViewGroup.LayoutParams layoutParams36 = viewM15358.getLayoutParams();
                            if (layoutParams36 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007536 = (ConstraintLayout.C0075) layoutParams36;
                            m1491(C0373.this, c007536, 0);
                            c007536.f539 = "W,16:9";
                            c007536.f528 = 0;
                            c007536.f530 = 0;
                            c007536.f520 = viewM153633.getId();
                            c007536.f521 = viewM153629.getId();
                            int i8 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c007536).topMargin = i8;
                            ((ViewGroup.MarginLayoutParams) c007536).bottomMargin = i8;
                            viewM15358.setLayoutParams(c007536);
                            ViewGroup.LayoutParams layoutParams37 = viewM153629.getLayoutParams();
                            if (layoutParams37 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007537 = (ConstraintLayout.C0075) layoutParams37;
                            m1491(C0373.this, c007537, iM69758);
                            c007537.f528 = 0;
                            c007537.f529 = viewM153630.getId();
                            c007537.f522 = 0;
                            c007537.f543 = 2;
                            ((ViewGroup.MarginLayoutParams) c007537).bottomMargin = c0377.f2232;
                            viewM153629.setLayoutParams(c007537);
                            ViewGroup.LayoutParams layoutParams38 = viewM153630.getLayoutParams();
                            if (layoutParams38 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007538 = (ConstraintLayout.C0075) layoutParams38;
                            m1491(C0373.this, c007538, iM69758);
                            c007538.f527 = viewM153629.getId();
                            c007538.f529 = viewM153631.getId();
                            c007538.f522 = 0;
                            c007538.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007538).bottomMargin = c0377.f2232;
                            viewM153630.setLayoutParams(c007538);
                            ViewGroup.LayoutParams layoutParams39 = viewM153631.getLayoutParams();
                            if (layoutParams39 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007539 = (ConstraintLayout.C0075) layoutParams39;
                            m1491(C0373.this, c007539, iM69758);
                            c007539.f527 = viewM153630.getId();
                            c007539.f529 = viewM153632.getId();
                            c007539.f522 = 0;
                            c007539.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007539).bottomMargin = c0377.f2232;
                            viewM153631.setLayoutParams(c007539);
                            ViewGroup.LayoutParams layoutParams40 = viewM153632.getLayoutParams();
                            if (layoutParams40 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007540 = (ConstraintLayout.C0075) layoutParams40;
                            m1491(C0373.this, c007540, iM69758);
                            c007540.f527 = viewM153631.getId();
                            c007540.f530 = 0;
                            c007540.f522 = 0;
                            c007540.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007540).bottomMargin = c0377.f2232;
                            viewM153632.setLayoutParams(c007540);
                            ViewGroup.LayoutParams layoutParams41 = viewM153633.getLayoutParams();
                            if (layoutParams41 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007541 = (ConstraintLayout.C0075) layoutParams41;
                            m1491(C0373.this, c007541, iM69758);
                            c007541.f528 = viewM153629.getId();
                            c007541.f519 = 0;
                            ((ViewGroup.MarginLayoutParams) c007541).topMargin = c0377.f2232;
                            viewM153633.setLayoutParams(c007541);
                            ViewGroup.LayoutParams layoutParams42 = viewM153634.getLayoutParams();
                            if (layoutParams42 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007542 = (ConstraintLayout.C0075) layoutParams42;
                            m1491(C0373.this, c007542, iM69758);
                            c007542.f527 = viewM153633.getId();
                            c007542.f519 = 0;
                            c007542.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007542).topMargin = c0377.f2232;
                            viewM153634.setLayoutParams(c007542);
                            ViewGroup.LayoutParams layoutParams43 = viewM153635.getLayoutParams();
                            if (layoutParams43 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007543 = (ConstraintLayout.C0075) layoutParams43;
                            m1491(C0373.this, c007543, iM69758);
                            c007543.f527 = viewM153634.getId();
                            c007543.f519 = 0;
                            c007543.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007543).topMargin = c0377.f2232;
                            viewM153635.setLayoutParams(c007543);
                            ViewGroup.LayoutParams layoutParams44 = viewM153636.getLayoutParams();
                            if (layoutParams44 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007544 = (ConstraintLayout.C0075) layoutParams44;
                            m1491(C0373.this, c007544, iM69758);
                            c007544.f527 = viewM153635.getId();
                            c007544.f519 = 0;
                            c007544.setMarginStart(c0377.f2232);
                            ((ViewGroup.MarginLayoutParams) c007544).topMargin = c0377.f2232;
                            viewM153636.setLayoutParams(c007544);
                            viewM15358.setTag(new C0376(null, viewM153633, null, viewM153629));
                            viewM153629.setTag(new C0376(viewM153632, viewM15358, viewM153630, viewM153633));
                            viewM153630.setTag(new C0376(viewM153629, viewM15358, viewM153631, viewM153633));
                            viewM153631.setTag(new C0376(viewM153630, viewM15358, viewM153632, viewM153633));
                            viewM153632.setTag(new C0376(viewM153631, viewM15358, viewM153629, viewM153633));
                            viewM153633.setTag(new C0376(viewM153636, viewM153629, viewM153634, viewM15358));
                            viewM153634.setTag(new C0376(viewM153633, viewM153629, viewM153635, viewM15358));
                            viewM153635.setTag(new C0376(viewM153634, viewM153629, viewM153636, viewM15358));
                            C2803.m4891(viewM153635, viewM153629, viewM153633, viewM15358, viewM153636);
                            break;
                            break;
                    }
                } else {
                    switch (c0373.f2211.size()) {
                        case 1:
                            c0377.m1537();
                            break;
                        case 2:
                            View viewM153637 = c0377.m1536(0, false);
                            View viewM153638 = c0377.m1536(1, false);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM69759 = C4303.m6975((r8.getWidth() - (c0377.f2232 * 3)) / 2.0f);
                            ViewGroup.LayoutParams layoutParams45 = viewM153637.getLayoutParams();
                            if (layoutParams45 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007545 = (ConstraintLayout.C0075) layoutParams45;
                            m1491(C0373.this, c007545, iM69759);
                            c007545.f528 = 0;
                            c007545.f519 = 0;
                            c007545.f522 = 0;
                            ViewGroup.LayoutParams layoutParamsM4865 = C2803.m4865(c007545, c0377.f2232, viewM153637, c007545, viewM153638);
                            if (layoutParamsM4865 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007546 = (ConstraintLayout.C0075) layoutParamsM4865;
                            m1491(C0373.this, c007546, iM69759);
                            c007546.f527 = viewM153637.getId();
                            c007546.f519 = viewM153637.getId();
                            c007546.setMarginStart(c0377.f2232);
                            viewM153638.setLayoutParams(c007546);
                            viewM153637.setTag(new C0376(viewM153638, null, viewM153638, null));
                            C2803.m4891(viewM153637, (View) null, viewM153637, (View) null, viewM153638);
                            break;
                            break;
                        case 3:
                            View viewM153639 = c0377.m1536(0, false);
                            View viewM153640 = c0377.m1536(1, false);
                            View viewM153641 = c0377.m1536(2, false);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM697510 = C4303.m6975((r11.getWidth() - (c0377.f2232 * 3)) / 2.0f);
                            ViewGroup.LayoutParams layoutParams46 = viewM153639.getLayoutParams();
                            if (layoutParams46 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007547 = (ConstraintLayout.C0075) layoutParams46;
                            m1491(C0373.this, c007547, iM697510);
                            c007547.f528 = 0;
                            c007547.f519 = 0;
                            c007547.f521 = viewM153641.getId();
                            c007547.f544 = 2;
                            ViewGroup.LayoutParams layoutParamsM48652 = C2803.m4865(c007547, c0377.f2232, viewM153639, c007547, viewM153640);
                            if (layoutParamsM48652 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007548 = (ConstraintLayout.C0075) layoutParamsM48652;
                            m1491(C0373.this, c007548, iM697510);
                            c007548.f527 = viewM153639.getId();
                            c007548.f519 = viewM153639.getId();
                            ViewGroup.LayoutParams layoutParamsM48653 = C2803.m4865(c007548, c0377.f2232, viewM153640, c007548, viewM153641);
                            if (layoutParamsM48653 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007549 = (ConstraintLayout.C0075) layoutParamsM48653;
                            m1491(C0373.this, c007549, iM697510);
                            c007549.f528 = 0;
                            c007549.f530 = 0;
                            c007549.f520 = viewM153639.getId();
                            c007549.f522 = 0;
                            ((ViewGroup.MarginLayoutParams) c007549).topMargin = c0377.f2232;
                            viewM153641.setLayoutParams(c007549);
                            viewM153639.setTag(new C0376(viewM153640, viewM153641, viewM153640, viewM153641));
                            viewM153640.setTag(new C0376(viewM153639, viewM153641, viewM153639, viewM153641));
                            C2803.m4891((View) null, viewM153639, (View) null, viewM153639, viewM153641);
                            break;
                            break;
                        case 4:
                            View viewM153642 = c0377.m1536(0, false);
                            View viewM153643 = c0377.m1536(1, false);
                            View viewM153644 = c0377.m1536(2, false);
                            View viewM153645 = c0377.m1536(3, false);
                            C6635.m9823((Object) C0373.this.m1503(C0661.layoutContent), "layoutContent");
                            int iM697511 = C4303.m6975((r11.getWidth() - (c0377.f2232 * 3)) / 2.0f);
                            ViewGroup.LayoutParams layoutParams47 = viewM153642.getLayoutParams();
                            if (layoutParams47 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007550 = (ConstraintLayout.C0075) layoutParams47;
                            m1491(C0373.this, c007550, iM697511);
                            c007550.f528 = 0;
                            c007550.f519 = 0;
                            c007550.f521 = viewM153644.getId();
                            c007550.f544 = 2;
                            ViewGroup.LayoutParams layoutParamsM48654 = C2803.m4865(c007550, c0377.f2232, viewM153642, c007550, viewM153643);
                            if (layoutParamsM48654 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007551 = (ConstraintLayout.C0075) layoutParamsM48654;
                            m1491(C0373.this, c007551, iM697511);
                            c007551.f527 = viewM153642.getId();
                            c007551.f519 = viewM153642.getId();
                            ViewGroup.LayoutParams layoutParamsM48655 = C2803.m4865(c007551, c0377.f2232, viewM153643, c007551, viewM153644);
                            if (layoutParamsM48655 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007552 = (ConstraintLayout.C0075) layoutParamsM48655;
                            m1491(C0373.this, c007552, iM697511);
                            c007552.f528 = 0;
                            c007552.f520 = viewM153642.getId();
                            c007552.f522 = 0;
                            int i9 = c0377.f2232;
                            ((ViewGroup.MarginLayoutParams) c007552).topMargin = i9;
                            ViewGroup.LayoutParams layoutParamsM48656 = C2803.m4865(c007552, i9, viewM153644, c007552, viewM153645);
                            if (layoutParamsM48656 == null) {
                                throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                            }
                            ConstraintLayout.C0075 c007553 = (ConstraintLayout.C0075) layoutParamsM48656;
                            m1491(C0373.this, c007553, iM697511);
                            c007553.f527 = viewM153644.getId();
                            c007553.f519 = viewM153644.getId();
                            c007553.setMarginStart(c0377.f2232);
                            viewM153645.setLayoutParams(c007553);
                            viewM153642.setTag(new C0376(viewM153643, viewM153644, viewM153643, viewM153644));
                            viewM153643.setTag(new C0376(viewM153642, viewM153645, viewM153642, viewM153645));
                            viewM153644.setTag(new C0376(viewM153645, viewM153642, viewM153645, viewM153642));
                            C2803.m4891(viewM153644, viewM153643, viewM153644, viewM153643, viewM153645);
                            break;
                            break;
                        case 5:
                            c0377.m1538();
                            break;
                        case 6:
                            c0377.m1539();
                            break;
                        case 7:
                            c0377.m1540();
                            break;
                        case 8:
                            c0377.m1541();
                            break;
                        case 9:
                            c0377.m1542();
                            break;
                    }
                }
            } else {
                View viewFindViewById = c0377.f2233 ? c0373.m1503(C0661.layoutContent).findViewById(C0661.playerPlaceholder) : c0373.m1528();
                if (viewFindViewById != null) {
                    ViewGroup.LayoutParams layoutParams48 = viewFindViewById.getLayoutParams();
                    if (layoutParams48 == null) {
                        throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                    }
                    ConstraintLayout.C0075 c007554 = (ConstraintLayout.C0075) layoutParams48;
                    m1491(C0373.this, c007554, 0);
                    c007554.f528 = 0;
                    c007554.f530 = 0;
                    c007554.f519 = 0;
                    c007554.f522 = 0;
                    viewFindViewById.setLayoutParams(c007554);
                }
            }
        } else {
            View viewFindViewById2 = c0377.f2233 ? c0373.m1503(C0661.layoutContent).findViewById(C0661.playerPlaceholder) : c0373.m1528();
            if (viewFindViewById2 != null) {
                ViewGroup.LayoutParams layoutParams49 = viewFindViewById2.getLayoutParams();
                if (layoutParams49 == null) {
                    throw new TypeCastException("null cannot be cast to non-null type androidx.constraintlayout.widget.ConstraintLayout.LayoutParams");
                }
                ConstraintLayout.C0075 c007555 = (ConstraintLayout.C0075) layoutParams49;
                C0373 c03732 = C0373.this;
                m1491(c03732, c007555, C1219.m2469(c03732, C0659.player_program_info_width_in_preview) - C1219.m2502(C0373.this, 16));
                c007555.f530 = 0;
                c007555.f519 = 0;
                ((ViewGroup.MarginLayoutParams) c007555).topMargin = C1219.m2502(C0373.this, 32);
                c007555.setMarginEnd(C1219.m2502(C0373.this, 8));
                viewFindViewById2.setLayoutParams(c007555);
            }
        }
        m1533();
        if (z2) {
            m1534();
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m1508(boolean z, boolean z2, boolean z3) {
        if (this.mView != null) {
            TextClock textClock = (TextClock) m1503(C0661.playerClock);
            C6635.m9823((Object) textClock, "playerClock");
            if ((textClock.getVisibility() == 0) != z || z3) {
                if (z) {
                    int i = ރ.ߠ.ޝ();
                    boolean z4 = i == 0 || i == 2;
                    boolean z5 = i == 1 || i == 3;
                    boolean z6 = i == 0 || i == 1;
                    boolean z7 = i == 2 || i == 3;
                    TextClock textClock2 = (TextClock) m1503(C0661.playerClock);
                    C6635.m9823((Object) textClock2, "playerClock");
                    ViewGroup.LayoutParams layoutParams = textClock2.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;
                    c0075.f528 = z4 ? 0 : -1;
                    c0075.f530 = z5 ? 0 : -1;
                    c0075.f519 = z6 ? 0 : -1;
                    c0075.f522 = z7 ? 0 : -1;
                    textClock2.setLayoutParams(c0075);
                    TextClock textClock3 = (TextClock) m1503(C0661.playerClock);
                    C6635.m9823((Object) textClock3, "playerClock");
                    int i2 = ރ.ߠ.ޞ();
                    float f = 20.0f;
                    if (i2 == 0) {
                        f = 16.0f;
                    } else if (i2 != 1 && i2 == 2) {
                        f = 24.0f;
                    }
                    textClock3.setTextSize(f);
                    TextClock textClock4 = (TextClock) m1503(C0661.playerClock);
                    C6635.m9823((Object) textClock4, "playerClock");
                    textClock4.setAlpha(m1526());
                    TextClock textClock5 = (TextClock) m1503(C0661.playerClock);
                    C6635.m9823((Object) textClock5, "playerClock");
                    textClock5.setVisibility(0);
                    TextClock textClock6 = (TextClock) m1503(C0661.playerClock);
                    C6635.m9823((Object) textClock6, "playerClock");
                    textClock6.setAlpha(0.0f);
                }
                ((TextClock) m1503(C0661.playerClock)).animate().alpha(z ? m1526() : 0.0f).setDuration(z2 ? 200L : 0L).withLayer().withEndAction(new RunnableC0384(z));
            }
        }
    }

    @Override // p000.p001.p021.p024.AbstractC1272
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean mo1509(int i, KeyEvent keyEvent) {
        if (i == 4 && m1530()) {
            m1517(2);
            return true;
        }
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
        return sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 != null && sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mo1509(i, keyEvent);
    }

    @Override // p000.p001.p021.p024.AbstractC1272
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean mo1510(KeyEvent keyEvent) {
        if (keyEvent != null) {
            if (m1523()) {
                return m1525().mo1510(keyEvent);
            }
            if (m1530()) {
                FloatingMenu floatingMenuM1503 = m1503(C0661.floatingMenu);
                C6635.m9823((Object) floatingMenuM1503, "floatingMenu");
                if (!(floatingMenuM1503.getVisibility() == 0)) {
                    if (C1219.m2507(keyEvent.getKeyCode())) {
                        if (!keyEvent.isLongPress()) {
                            C1219.m2509(keyEvent, false, false, new C0633(this, keyEvent), 6);
                            return true;
                        }
                        ActivityC1999 activity = getActivity();
                        if (!(activity instanceof AbstractActivityC0773)) {
                            activity = null;
                        }
                        AbstractActivityC0773 abstractActivityC0773 = (AbstractActivityC0773) activity;
                        if (abstractActivityC0773 != null) {
                            AbstractActivityC0773.m2075(abstractActivityC0773, false, false, 3, null);
                        }
                        switch (keyEvent.getKeyCode()) {
                            case 19:
                                m1517(6);
                                return true;
                            case 20:
                                m1517(4);
                                return true;
                            case 21:
                                m1517(3);
                                return true;
                            case 22:
                                m1517(1);
                                return true;
                            default:
                                return true;
                        }
                    }
                    if (keyEvent.getKeyCode() == 85) {
                        C1219.m2509(keyEvent, false, false, new C0378(), 6);
                        return true;
                    }
                }
            } else {
                SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
                if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 != null && sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mo1510(keyEvent)) {
                    return true;
                }
            }
        }
        return false;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final SharedPreferencesOnSharedPreferenceChangeListenerC0501 m1511(int i) {
        Object next;
        Iterator<T> it = this.f2211.iterator();
        while (true) {
            if (!it.hasNext()) {
                next = null;
                break;
            }
            next = it.next();
            if (((SharedPreferencesOnSharedPreferenceChangeListenerC0501) next).mFragmentId == i) {
                break;
            }
        }
        return (SharedPreferencesOnSharedPreferenceChangeListenerC0501) next;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final void m1512(boolean z) {
        boolean z2 = this.f2210;
        if (z2) {
            if (z2) {
                this.f2210 = false;
                CommonUtilsKt.ؠ(this, new C0635(this, false, z, null));
                return;
            }
            return;
        }
        SharedPreferencesOnSharedPreferenceChangeListenerC0459 sharedPreferencesOnSharedPreferenceChangeListenerC0459M1525 = m1525();
        if (sharedPreferencesOnSharedPreferenceChangeListenerC0459M1525 == null) {
            throw null;
        }
        SharedPreferencesOnSharedPreferenceChangeListenerC0459.m1637(sharedPreferencesOnSharedPreferenceChangeListenerC0459M1525, SharedPreferencesOnSharedPreferenceChangeListenerC0459.EnumC0462.INITIAL, z, false, 4);
        sharedPreferencesOnSharedPreferenceChangeListenerC0459M1525.f2438 = null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final void m1513(boolean z, boolean z2) {
        if (this.f2209 == z) {
            if (!z || this.f2214 == 0) {
                return;
            }
            m1524();
            return;
        }
        this.f2209 = z;
        if (z) {
            m1515(z2, false);
            return;
        }
        AbstractC2014 childFragmentManager = getChildFragmentManager();
        C6635.m9823((Object) childFragmentManager, "childFragmentManager");
        C1988 c1988 = new C1988(childFragmentManager);
        C6635.m9823((Object) c1988, "beginTransaction()");
        C4303.m7133((List) this.f2211, (InterfaceC6614) new C0629(c1988, this));
        c1988.mo3875();
        this.f2213 = 0;
        this.f2214 = 0;
        m1502(this, z2, false, 2);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final void m1514(boolean z) {
        FloatingMenu floatingMenuM1503 = m1503(C0661.floatingMenu);
        C6635.m9823((Object) floatingMenuM1503, "floatingMenu");
        if ((floatingMenuM1503.getVisibility() == 0) == z) {
            return;
        }
        if (z) {
            FloatingMenu floatingMenuM15032 = m1503(C0661.floatingMenu);
            C6635.m9823((Object) floatingMenuM15032, "floatingMenu");
            floatingMenuM15032.setAlpha(0.0f);
            FloatingMenu floatingMenuM15033 = m1503(C0661.floatingMenu);
            C6635.m9823((Object) floatingMenuM15033, "floatingMenu");
            floatingMenuM15033.setVisibility(0);
        }
        ViewPropertyAnimator viewPropertyAnimatorWithEndAction = m1503(C0661.floatingMenu).animate().alpha(z ? 1.0f : 0.0f).withLayer().withEndAction(new RunnableC0375(0, this, z));
        C6635.m9823((Object) viewPropertyAnimatorWithEndAction, "floatingMenu.animate()\n …          }\n            }");
        viewPropertyAnimatorWithEndAction.setDuration(200L);
        if (this.f2211.size() == 1) {
            return;
        }
        if (z) {
            View viewM1503 = m1503(C0661.menuBackground);
            C6635.m9823((Object) viewM1503, "menuBackground");
            viewM1503.setAlpha(0.0f);
            View viewM15032 = m1503(C0661.menuBackground);
            C6635.m9823((Object) viewM15032, "menuBackground");
            viewM15032.setVisibility(0);
            View viewM1528 = m1528();
            if (viewM1528 != null) {
                viewM1528.setElevation(1.0f);
            }
        }
        ViewPropertyAnimator viewPropertyAnimatorWithEndAction2 = m1503(C0661.menuBackground).animate().alpha(z ? 1.0f : 0.0f).withLayer().withEndAction(new RunnableC0375(1, this, z));
        C6635.m9823((Object) viewPropertyAnimatorWithEndAction2, "menuBackground.animate()…          }\n            }");
        viewPropertyAnimatorWithEndAction2.setDuration(250L);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final void m1515(boolean z, boolean z2) {
        View viewFindViewById;
        View view;
        if (z && (view = this.mView) != null) {
            view.setTag(C0661.transition_in_progress_tag, true);
            view.setTag(C0661.player_zooming_in_progress_tag, true);
        }
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
        if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 == null || (viewFindViewById = m1503(C0661.layoutContent).findViewById(sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mFragmentId)) == null) {
            return;
        }
        int left = viewFindViewById.getLeft();
        int top = viewFindViewById.getTop();
        int width = viewFindViewById.getWidth();
        int height = viewFindViewById.getHeight();
        m1507(true, z2);
        View viewM1503 = m1503(C0661.playerPlaceholder);
        C6635.m9823((Object) viewM1503, "playerPlaceholder");
        C6635.m9823((Object) ViewTreeObserverOnPreDrawListenerC1919.m3734(viewM1503, new RunnableC0385(viewM1503, this, viewFindViewById, width, height, left, top, z)), "OneShotPreDrawListener.add(this) { action(this) }");
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final boolean m1516(int i) {
        if (i == 1 || i == 2) {
            if (this.f2211.size() >= 9) {
                return false;
            }
        } else if ((i == 4 || i == 5 || i == 6 || i == 7) && this.f2211.size() <= 1) {
            return false;
        }
        return true;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final void m1517(int i) {
        if (m1516(i)) {
            switch (i) {
                case 1:
                    m1492(this, SharedPreferencesOnSharedPreferenceChangeListenerC0459.EnumC0462.CHANNELS, (Boolean) true, false, false, 12);
                    break;
                case 2:
                    ލ.އ(this);
                    break;
                case 3:
                    m1492(this, SharedPreferencesOnSharedPreferenceChangeListenerC0459.EnumC0462.CHANNELS, (Boolean) false, false, false, 12);
                    break;
                case 4:
                    SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
                    if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 != null) {
                        SharedPreferencesOnSharedPreferenceChangeListenerC0501.m1699(sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529, (Boolean) null, 1);
                    }
                    break;
                case 5:
                    int i2 = this.f2212;
                    if (i2 == this.f2213) {
                        i2 = 0;
                    }
                    this.f2213 = i2;
                    m1495(this, false, false, 3);
                    break;
                case 6:
                    this.f2214 = this.f2212;
                    m1502(this, false, false, 3);
                    break;
                case 7:
                    SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292 = m1529();
                    if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292 != null) {
                        this.f2211.remove(sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292);
                        AbstractC2014 childFragmentManager = getChildFragmentManager();
                        C6635.m9823((Object) childFragmentManager, "childFragmentManager");
                        C1988 c1988 = new C1988(childFragmentManager);
                        C6635.m9823((Object) c1988, "beginTransaction()");
                        c1988.mo3863(sharedPreferencesOnSharedPreferenceChangeListenerC0501M15292);
                        c1988.mo3875();
                        int i3 = this.f2213;
                        if (i3 == 0 || this.f2212 == i3) {
                            i3 = ((SharedPreferencesOnSharedPreferenceChangeListenerC0501) C6560.m9794((List) this.f2211)).mFragmentId;
                        }
                        m1518(i3);
                        if (this.f2213 != 0) {
                            if (this.f2211.size() == 1) {
                                i3 = 0;
                            }
                            this.f2213 = i3;
                        }
                        m1495(this, false, false, 3);
                    }
                    break;
            }
        }
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final void m1518(int i) {
        if (this.f2212 != i) {
            this.f2212 = i;
            if (this.f2209) {
                SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
                if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 != null && sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.m1798().f2994 != 0 && sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.m1798().f2995 != null) {
                    LayoutInflaterFactory2C1494.C1505.m2935(sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.m1798().f2994, sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.m1798().f2995, sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.f2583);
                }
                m1534();
            }
        }
    }

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

    @Override // p000.p001.p021.p024.AbstractC1272
    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public boolean mo1520() {
        if (m1523()) {
            m1512(true);
        } else {
            FloatingMenu floatingMenuM1503 = m1503(C0661.floatingMenu);
            C6635.m9823((Object) floatingMenuM1503, "floatingMenu");
            if (floatingMenuM1503.getVisibility() == 0) {
                m1514(false);
            } else if (m1530()) {
                InterfaceC1363 interfaceC1363 = this.f2217;
                if (interfaceC1363 != null) {
                    C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
                }
                if (this.f2211.size() <= 1 || System.currentTimeMillis() - this.f2216 <= 2000) {
                    m1513(false, true);
                } else {
                    this.f2216 = System.currentTimeMillis();
                    this.f2217 = CommonUtilsKt.ؠ(this, new C0379(null));
                }
            } else {
                SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
                if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 == null) {
                    return false;
                }
                sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mo1520();
            }
        }
        return true;
    }

    @Override // p000.p001.p021.p024.AbstractC1272
    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public void mo1521() {
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
        if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 != null) {
            sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mo1521();
        }
        InterfaceC1363 interfaceC1363 = this.f2215;
        if (interfaceC1363 != null) {
            C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
        }
        this.f2215 = CommonUtilsKt.ؠ(this, new C0630(this, null));
    }

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public final void m1522() {
        FragmentContainerView fragmentContainerView;
        int id;
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501 = new SharedPreferencesOnSharedPreferenceChangeListenerC0501();
        this.f2211.add(sharedPreferencesOnSharedPreferenceChangeListenerC0501);
        AbstractC2014 childFragmentManager = getChildFragmentManager();
        C6635.m9823((Object) childFragmentManager, "childFragmentManager");
        C1988 c1988 = new C1988(childFragmentManager);
        C6635.m9823((Object) c1988, "beginTransaction()");
        if (this.mView == null) {
            id = C0661.containerPlayer1;
        } else {
            FragmentContainerView[] fragmentContainerViewArrM1527 = m1527();
            int length = fragmentContainerViewArrM1527.length;
            int i = 0;
            while (true) {
                if (i >= length) {
                    fragmentContainerView = null;
                    break;
                }
                fragmentContainerView = fragmentContainerViewArrM1527[i];
                C6635.m9823((Object) fragmentContainerView, "it");
                if (m1511(fragmentContainerView.getId()) == null) {
                    break;
                } else {
                    i++;
                }
            }
            id = fragmentContainerView != null ? fragmentContainerView.getId() : C0661.containerPlayer1;
        }
        c1988.m4004(id, sharedPreferencesOnSharedPreferenceChangeListenerC0501);
        c1988.mo3874();
        m1518(sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId);
        if (this.f2209) {
            if (this.f2213 != 0) {
                this.f2213 = sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId;
            }
            m1495(this, false, false, 3);
        }
    }

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public final boolean m1523() {
        return m1525().m1661();
    }

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public final void m1524() {
        this.f2214 = 0;
        m1502(this, false, false, 1);
    }

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public final SharedPreferencesOnSharedPreferenceChangeListenerC0459 m1525() {
        return (SharedPreferencesOnSharedPreferenceChangeListenerC0459) this.f2220.getValue();
    }

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public final float m1526() {
        int i = ރ.ߠ.ޟ();
        if (i == 0) {
            return 1.0f;
        }
        if (i == 1) {
            return 0.8f;
        }
        if (i != 2) {
            return i != 3 ? 1.0f : 0.4f;
        }
        return 0.6f;
    }

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public final FragmentContainerView[] m1527() {
        return new FragmentContainerView[]{(FragmentContainerView) m1503(C0661.containerPlayer1), (FragmentContainerView) m1503(C0661.containerPlayer2), (FragmentContainerView) m1503(C0661.containerPlayer3), (FragmentContainerView) m1503(C0661.containerPlayer4), (FragmentContainerView) m1503(C0661.containerPlayer5), (FragmentContainerView) m1503(C0661.containerPlayer6), (FragmentContainerView) m1503(C0661.containerPlayer7), (FragmentContainerView) m1503(C0661.containerPlayer8), (FragmentContainerView) m1503(C0661.containerPlayer9)};
    }

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public final View m1528() {
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529();
        if (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 != null) {
            return m1503(C0661.layoutContent).findViewById(sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mFragmentId);
        }
        return null;
    }

    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public final SharedPreferencesOnSharedPreferenceChangeListenerC0501 m1529() {
        return m1511(this.f2212);
    }

    /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
    public final boolean m1530() {
        return this.f2209 && this.f2214 == 0;
    }

    /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
    public final void m1531() {
        InterfaceC1363 interfaceC1363 = this.f2219;
        if (interfaceC1363 != null) {
            C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
        }
        for (SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501 : this.f2211) {
            boolean z = sharedPreferencesOnSharedPreferenceChangeListenerC0501.mFragmentId == this.f2212;
            boolean z2 = !z;
            C3454 c3454 = sharedPreferencesOnSharedPreferenceChangeListenerC0501.f2579;
            if (c3454 != null) {
                float f = z2 ? 0.0f : 1.0f;
                c3454.m5662();
                float fM6740 = C4150.m6740(f, 0.0f, 1.0f);
                if (c3454.f10213 != fM6740) {
                    c3454.f10213 = fM6740;
                    c3454.m5661();
                    Iterator<InterfaceC3481> it = c3454.f10190.iterator();
                    while (it.hasNext()) {
                        it.next().mo5700(fM6740);
                    }
                }
            }
            if (z) {
                this.f2219 = CommonUtilsKt.ؠ(this, new C0383(sharedPreferencesOnSharedPreferenceChangeListenerC0501, null));
            } else {
                C3454 c34542 = sharedPreferencesOnSharedPreferenceChangeListenerC0501.f2579;
                if (c34542 != null) {
                    ކ.֏(c34542, false);
                }
            }
        }
    }

    /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
    public final void m1532() {
        Window window;
        boolean z = false;
        boolean z2 = false;
        for (SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501 : this.f2211) {
            if (ލ.֏(sharedPreferencesOnSharedPreferenceChangeListenerC0501, false, 1)) {
                z = true;
            }
            if (sharedPreferencesOnSharedPreferenceChangeListenerC0501.m1808()) {
                z2 = true;
            }
        }
        ލ.ޅ = z;
        InterfaceC1363 interfaceC1363 = this.f2218;
        if (interfaceC1363 != null) {
            C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
        }
        if (z2) {
            this.f2218 = CommonUtilsKt.ؠ(this, new C0634(this, null));
            return;
        }
        ActivityC1999 activity = getActivity();
        if (activity == null || (window = activity.getWindow()) == null) {
            return;
        }
        window.clearFlags(128);
    }

    /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
    public final void m1533() {
        if (this.mView == null) {
            return;
        }
        boolean z = this.f2209 && this.f2211.size() == 1;
        TextView textView = (TextView) m1503(C0661.tvMultiViewHint);
        C6635.m9823((Object) textView, "tvMultiViewHint");
        if ((textView.getVisibility() == 0) == z) {
            return;
        }
        if (z) {
            TextView textView2 = (TextView) m1503(C0661.tvMultiViewHint);
            C6635.m9823((Object) textView2, "tvMultiViewHint");
            textView2.setAlpha(0.0f);
            TextView textView3 = (TextView) m1503(C0661.tvMultiViewHint);
            C6635.m9823((Object) textView3, "tvMultiViewHint");
            textView3.setVisibility(0);
            TextView textView4 = (TextView) m1503(C0661.tvMultiViewWarning);
            C6635.m9823((Object) textView4, "tvMultiViewWarning");
            textView4.setAlpha(0.0f);
            TextView textView5 = (TextView) m1503(C0661.tvMultiViewWarning);
            C6635.m9823((Object) textView5, "tvMultiViewWarning");
            textView5.setVisibility(0);
        }
        ((TextView) m1503(C0661.tvMultiViewHint)).animate().alpha(z ? 1.0f : 0.0f).withLayer().withEndAction(new RunnableC0374(0, this, z));
        ((TextView) m1503(C0661.tvMultiViewWarning)).animate().alpha(z ? 1.0f : 0.0f).withLayer().withEndAction(new RunnableC0374(1, this, z));
    }

    /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
    public final void m1534() {
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529;
        View view;
        if (this.mView == null) {
            return;
        }
        for (FragmentContainerView fragmentContainerView : m1527()) {
            C6635.m9823((Object) fragmentContainerView, "it");
            fragmentContainerView.setForeground((m1530() && fragmentContainerView.getId() == this.f2212) ? C1527.m3025(requireContext(), C0660.player_selection_frame) : null);
        }
        m1531();
        if (this.f2210 || !ލ.֏(this, false, 1) || (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = m1529()) == null || (view = sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.mView) == null) {
            return;
        }
        view.requestFocus();
    }
}
