package com.ss.android.ugc.aweme.mix.videodetail;

import X.0Bv;
import X.0C0;
import X.0CH;
import X.0HH;
import X.2GO;
import X.3QV;
import X.46i;
import X.4EV;
import X.4EW;
import X.4FQ;
import X.4PU;
import X.9Y3;
import X.A7H;
import X.ARE;
import X.AZ6;
import X.B1N;
import X.C1252AYe;
import X.C1253AYf;
import X.C1371Ab9;
import X.C1383AbL;
import X.C1409Abl;
import X.C1410Abm;
import X.C1417Abt;
import X.C1421Abx;
import X.C1425Ac1;
import X.C1426Ac2;
import X.C1428Ac4;
import X.C1522Ada;
import X.C1835Aid;
import X.C2188AoK;
import X.C3797BYb;
import X.C3816BYu;
import X.Csa;
import X.Css;
import X.D1G;
import X.EiA;
import X.KEM;
import X.Lea;
import X.LnI;
import X.M12;
import X.MHU;
import X.OQZ;
import X.Ql4;
import X.TnV;
import android.content.Context;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.SparseArray;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.bytedance.tux.sheet.sheet.TuxSheet;
import com.ss.android.ugc.aweme.IAccountUserService;
import com.ss.android.ugc.aweme.awemeservice.AwemeService;
import com.ss.android.ugc.aweme.awemeservice.api.IAwemeService;
import com.ss.android.ugc.aweme.detail.panel.DetailFragmentPanel;
import com.ss.android.ugc.aweme.detail.ui.search.MultiTypeDetailPageFragment;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import com.ss.android.ugc.aweme.feed.model.MixFlowParam;
import com.ss.android.ugc.aweme.mix.mixdetail.viewmodel.MixVideosViewModel;
import com.ss.android.ugc.aweme.mix.services.IMixFeedService;
import com.ss.android.ugc.aweme.mix.services.MixFeedService;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import kotlin.h.b.n;

public final class MixVideoPlayDetailPageFragment extends MultiTypeDetailPageFragment implements ARE, B1N<C1835Aid>, 4PU, C1428Ac4, 2GO {
    public static final int LJJIJ;
    public static final C1425Ac1 LJJIJIIJI = new C1425Ac1((byte) 0);
    public C1835Aid LJJ = new C1835Aid();
    public String LJJI = "";
    public C1371Ab9 LJJIFFI;
    public TuxSheet LJJII;
    public String LJJIII = "";
    public boolean LJJIIJ;
    public boolean LJJIIJZLJL;
    public Aweme LJJIIZ;
    public boolean LJJIIZI;
    public String LJJIJIIJIL;
    public boolean LJJIJIL;
    public Aweme LJJIJL;
    public final Csa LJJIJLIJ;
    public SparseArray LJJIL;

    public final View LIZ(int i) {
        if (this.LJJIL == null) {
            this.LJJIL = new SparseArray();
        }
        View view = (View) this.LJJIL.get(i);
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LJJIL.put(i, findViewById);
        return findViewById;
    }

    public final List<Aweme> LIZ(EiA eiA) {
        M12.LIZ(eiA);
        return null;
    }

    public final void LJ() {
        SparseArray sparseArray = this.LJJIL;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public final MixVideosViewModel LJIJI() {
        return (MixVideosViewModel) this.LJJIJLIJ.getValue();
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.base.ui.CommonPageFragment, com.ss.android.ugc.aweme.detail.ui.search.MultiTypeDetailPageFragment, com.ss.android.ugc.aweme.mix.videodetail.MixVideoPlayDetailPageFragment] */
    public final /* synthetic */ void onDestroyView() {
        super.onDestroyView();
        LJ();
    }

    public final /* bridge */ /* synthetic */ 0Bv be_() {
        return this.LJJ;
    }

    public final boolean LJII() {
        return LJIJI().LJII;
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.base.ui.CommonPageFragment, com.ss.android.ugc.aweme.mix.videodetail.MixVideoPlayDetailPageFragment] */
    public final View LJIJ() {
        return LIZ(2131364045);
    }

    public final DetailFragmentPanel LIZJ() {
        DetailFragmentPanel LIZJ = MixVideoPlayDetailPageFragment.super.LIZJ();
        n.LIZIZ(LIZJ, "");
        return LIZJ;
    }

    public final void bN_() {
        if (this.LJJIIZI) {
            bc_();
        }
    }

    public final int LJIILLIIL() {
        C1253AYf searchParam;
        C1371Ab9 ab9 = this.LJJIFFI;
        if (ab9 == null || (searchParam = ab9.getSearchParam()) == null) {
            return 0;
        }
        return searchParam.getFlowStartPositionInGeneralSearch();
    }

    public final MixFlowParam LJIIZILJ() {
        String eventType = new TnV().getEventType();
        if (eventType == null) {
            eventType = "";
        }
        return new MixFlowParam(eventType, "from_mix_video");
    }

    public final void bc_() {
        LJIJI().LIZ(Long.valueOf(LJIJI().LJIIIZ), "", "");
    }

    static {
        Covode.recordClassIndex(92764);
        Resources system = Resources.getSystem();
        n.LIZIZ(system, "");
        LJJIJ = LnI.LIZ(TypedValue.applyDimension(1, 58.0f, system.getDisplayMetrics()));
    }

    public MixVideoPlayDetailPageFragment() {
        D1G LIZ = KEM.LIZ.LIZ(MixVideosViewModel.class);
        this.LJJIJLIJ = new Csa(LIZ, new C1417Abt(LIZ), Css.LIZ, C2188AoK.LIZ((0CH) this, true), C2188AoK.LIZ((0C0) this, true), A7H.LIZ, C1421Abx.INSTANCE);
        this.LJJIIZI = true;
    }

    private final void LJIL() {
        Context context = getContext();
        if (context == null) {
            n.LIZIZ();
        }
        n.LIZIZ(context, "");
        4EW r6 = new 4EW(context);
        String string = getString(2131824698);
        n.LIZIZ(string, "");
        String LIZ = 0HH.LIZ(string, Arrays.copyOf(new Object[]{this.LJJIII}, 1));
        n.LIZIZ(LIZ, "");
        r6.LIZ(LIZ);
        r6.LIZLLL(2131824699);
        3QV.LIZ(r6, new C1383AbL(this));
        4EV LIZ2 = r6.LIZ();
        4FQ.LIZ(LIZ2.LIZJ());
        LIZ2.LIZ();
    }

    private final void LJJ() {
        Context context = getContext();
        if (context == null) {
            n.LIZIZ();
        }
        n.LIZIZ(context, "");
        4EW r6 = new 4EW(context);
        String string = getString(2131824698);
        n.LIZIZ(string, "");
        String LIZ = 0HH.LIZ(string, Arrays.copyOf(new Object[]{this.LJJIII}, 1));
        n.LIZIZ(LIZ, "");
        r6.LIZJ(LIZ);
        3QV.LIZ(r6, new C1409Abl(this));
        4EV LIZ2 = r6.LIZ();
        4FQ.LIZ(LIZ2.LIZJ());
        LIZ2.LIZ();
    }

    public final void LJIJJLI() {
        TuxSheet tuxSheet;
        if (this.LJJIIJ && this.LJJIIJZLJL) {
            OQZ LJIILIIL = LJIILIIL();
            if (LJIILIIL != null) {
                LJIILIIL.LJI();
            }
            46i.LIZ();
            IAccountUserService LJFF = 46i.LIZ.LJFF();
            n.LIZIZ(LJFF, "");
            if (n.LIZ(LJFF.getCurUserId(), LJIJI().LJIIJJI)) {
                LJIL();
                TuxSheet tuxSheet2 = this.LJJII;
                if (tuxSheet2 != null) {
                    tuxSheet2.dismiss();
                }
            } else {
                LJJ();
                C1371Ab9 ab9 = this.LJJIFFI;
                if (!(ab9 == null || !ab9.getFromShare() || (tuxSheet = this.LJJII) == null)) {
                    tuxSheet.dismiss();
                }
            }
            this.LJJIIJ = false;
        }
    }

    public final void LIZ(boolean z) {
        this.LJJIIZI = z;
    }

    public final List<Aweme> LIZIZ(List<Aweme> list) {
        String str;
        String str2;
        IAwemeService LIZIZ = AwemeService.LIZIZ();
        Aweme aweme = LJIJI().LJ;
        if (aweme == null || (str = aweme.getAid()) == null) {
            str = "";
        }
        Aweme LIZIZ2 = LIZIZ.LIZIZ(str);
        int i = 0;
        for (Aweme aweme2 : list) {
            String aid = aweme2.getAid();
            Aweme aweme3 = LJIJI().LJ;
            if (aweme3 != null) {
                str2 = aweme3.getAid();
            } else {
                str2 = null;
            }
            if (!n.LIZ(aid, str2) || LIZIZ2 == null) {
                Aweme LIZ = AwemeService.LIZIZ().LIZ(aweme2);
                n.LIZIZ(LIZ, "");
                list.set(i, LIZ);
            } else {
                list.set(i, LIZIZ2);
            }
            i++;
        }
        return list;
    }

    public final void LIZ(List<? extends Aweme> list) {
        if (list.isEmpty()) {
            this.LJJIIJ = true;
            LJIJJLI();
        }
        if (!(LJIJI().LJ == null || LIZ(list, LJIJI().LJ) == 0)) {
            this.LJIIJ.LJJZZIII = true;
        }
        if (!MHU.LIZ.LIZ()) {
            MixVideosViewModel LJIJI = LJIJI();
            Integer valueOf = Integer.valueOf(C1426Ac2.LIZ);
            List LJII = Lea.LJII(list);
            LIZIZ(LJII);
            LJIJI.LIZ(new C1410Abm(valueOf, LJII, LJIJI().LJII));
        } else {
            DetailFragmentPanel detailFragmentPanel = this.LJIIJ;
            List LJII2 = Lea.LJII(list);
            LIZIZ(LJII2);
            detailFragmentPanel.LIZ(LJII2, LJIJI().LJII);
        }
        C3797BYb.LIZIZ("playlist_first_open_dialog_cost_time");
    }

    /* JADX WARNING: type inference failed for: r13v0, types: [com.ss.android.ugc.aweme.base.fragment.AmeBaseFragment, com.ss.android.ugc.aweme.mix.videodetail.MixVideoPlayDetailPageFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.detail.ui.DetailPageFragment] */
    public final void onCreate(Bundle bundle) {
        Aweme aweme;
        C1371Ab9 ab9;
        Aweme aweme2;
        String str;
        String str2;
        C1253AYf aYf;
        Aweme aweme3;
        String mVideoFrom;
        C1371Ab9 ab92;
        DetailFragmentPanel detailFragmentPanel;
        String str3;
        Aweme aweme4;
        String str4;
        String str5;
        String str6;
        Aweme aweme5;
        String str7;
        MixVideoPlayDetailPageFragment.super.onCreate(bundle);
        C3816BYu.LIZJ = LJIJI();
        Bundle arguments = getArguments();
        C1253AYf aYf2 = null;
        String str8 = "";
        if (arguments != null) {
            this.LJJIJIIJIL = arguments.getString("event_type");
            Serializable serializable = arguments.getSerializable("mix_video_list_params");
            if (!(serializable instanceof C1371Ab9)) {
                serializable = null;
            }
            C1371Ab9 ab93 = (C1371Ab9) serializable;
            this.LJJIFFI = ab93;
            if (ab93 != null) {
                String mixId = ab93.getMixId();
                if (mixId == null) {
                    mixId = str8;
                }
                this.LJJI = mixId;
                AZ6 mixInfo = ab93.getMixInfo();
                if (mixInfo == null || (str7 = mixInfo.getMixName()) == null) {
                    str7 = str8;
                }
                this.LJJIII = str7;
                this.LJJIJIL = ab93.getMEnterCleanMode();
            }
            MixVideosViewModel LJIJI = LJIJI();
            n.LIZIZ(arguments, str8);
            LJIJI.LJIILIIL = C1522Ada.LIZ(arguments);
        }
        C1371Ab9 ab94 = this.LJJIFFI;
        if (ab94 == null || ab94.getMEnterCleanMode()) {
            DetailFragmentPanel detailFragmentPanel2 = this.LJIIJ;
            if (detailFragmentPanel2 != null) {
                detailFragmentPanel2.LJJI();
            }
        } else {
            C1371Ab9 ab95 = this.LJJIFFI;
            if (ab95 != null && !ab95.getMNeedShowDialog()) {
                MixVideosViewModel LJIJI2 = LJIJI();
                C1371Ab9 ab96 = this.LJJIFFI;
                if (ab96 == null || (str4 = ab96.getMUsrId()) == null) {
                    str4 = str8;
                }
                C1371Ab9 ab97 = this.LJJIFFI;
                if (ab97 == null || (str5 = ab97.getMSecUid()) == null) {
                    str5 = str8;
                }
                String str9 = this.LJJI;
                C1371Ab9 ab98 = this.LJJIFFI;
                if (ab98 == null || (str6 = ab98.getMAid()) == null) {
                    str6 = str8;
                }
                C1371Ab9 ab99 = this.LJJIFFI;
                if (ab99 != null) {
                    aweme5 = ab99.getMAweme();
                } else {
                    aweme5 = null;
                }
                M12.LIZ(str4, str5, str9, str6);
                LJIJI2.LIZJ = str9;
                LJIJI2.LIZLLL = str6;
                LJIJI2.LJIIJJI = str4;
                LJIJI2.LJIIL = str5;
                LJIJI2.LJ = aweme5;
                LJIJI2.LIZ(str4, str5);
            }
            MixVideosViewModel LJIJI3 = LJIJI();
            C1371Ab9 ab910 = this.LJJIFFI;
            if (ab910 != null) {
                aweme4 = ab910.getMAweme();
            } else {
                aweme4 = null;
            }
            LJIJI3.LJ = aweme4;
        }
        DetailFragmentPanel detailFragmentPanel3 = this.LJIIJ;
        if (detailFragmentPanel3 != null) {
            String str10 = this.LJJI;
            if (detailFragmentPanel3.LLIFFJFJJ != null) {
                detailFragmentPanel3.LLIFFJFJJ.setPlayListId(str10);
            }
        }
        C1371Ab9 ab911 = this.LJJIFFI;
        if (!(ab911 == null || ab911.getMEnterCleanMode() || (detailFragmentPanel = this.LJIIJ) == null)) {
            C1371Ab9 ab912 = this.LJJIFFI;
            if (ab912 == null || (str3 = ab912.getMAid()) == null) {
                str3 = str8;
            }
            if (detailFragmentPanel.LLIFFJFJJ != null) {
                detailFragmentPanel.LLIFFJFJJ.setAid(str3);
            }
        }
        C1371Ab9 ab913 = this.LJJIFFI;
        if (ab913 != null) {
            aweme = ab913.getMAweme();
        } else {
            aweme = null;
        }
        this.LJJIJL = aweme;
        DetailFragmentPanel detailFragmentPanel4 = this.LJIIJ;
        if (detailFragmentPanel4 != null) {
            detailFragmentPanel4.LJIIIIZZ = false;
        }
        C1371Ab9 ab914 = this.LJJIFFI;
        if ((ab914 != null && ab914.getMEnterCleanMode()) || (ab9 = this.LJJIFFI) == null || !ab9.getMNeedShowDialog() || getContext() == null) {
            return;
        }
        if (getContext() != null || ((ab92 = this.LJJIFFI) != null && ab92.getMAweme() != null)) {
            IMixFeedService LJIIIIZZ = MixFeedService.LJIIIIZZ();
            Context context = getContext();
            String str11 = this.LJJI;
            if (str11 == null) {
                str11 = str8;
            }
            C1371Ab9 ab915 = this.LJJIFFI;
            if (ab915 != null) {
                aweme2 = ab915.getMAweme();
            } else {
                aweme2 = null;
            }
            C1371Ab9 ab916 = this.LJJIFFI;
            if (ab916 == null || (str = ab916.getMUsrId()) == null) {
                str = str8;
            }
            C1371Ab9 ab917 = this.LJJIFFI;
            if (ab917 == null || (str2 = ab917.getMSecUid()) == null) {
                str2 = str8;
            }
            C1371Ab9 ab918 = this.LJJIFFI;
            if (!(ab918 == null || (mVideoFrom = ab918.getMVideoFrom()) == null)) {
                str8 = mVideoFrom;
            }
            C1371Ab9 ab919 = this.LJJIFFI;
            if (ab919 != null) {
                aYf = ab919.getSearchParam();
            } else {
                aYf = null;
            }
            this.LJJII = LJIIIIZZ.LIZ(context, "playlist", str11, aweme2, str, str2, str8, aYf);
            C1252AYe aYe = C1252AYe.LIZ;
            C1371Ab9 ab920 = this.LJJIFFI;
            if (ab920 != null) {
                aweme3 = ab920.getMAweme();
            } else {
                aweme3 = null;
            }
            String str12 = this.LJJI;
            C1371Ab9 ab921 = this.LJJIFFI;
            if (ab921 != null) {
                aYf2 = ab921.getSearchParam();
            }
            aYe.LIZ(aweme3, str12, "playlist", aYf2);
        }
    }

    public static View LIZ(LayoutInflater layoutInflater, int i) {
        MethodCollector.i(8919);
        if (9Y3.LIZ(9Y3.LIZ(), true, "tiktok_tux_text_view_opt", false) && layoutInflater != null && layoutInflater.getFactory() == null && layoutInflater.getFactory2() == null) {
            try {
                layoutInflater.setFactory(new Ql4());
            } catch (Exception unused) {
                View inflate = layoutInflater.inflate(i, (ViewGroup) null);
                MethodCollector.o(8919);
                return inflate;
            }
        }
        View inflate2 = layoutInflater.inflate(i, (ViewGroup) null);
        MethodCollector.o(8919);
        return inflate2;
    }

    public final int LIZ(List<? extends Aweme> list, Aweme aweme) {
        String str;
        if (list != null) {
            int i = 0;
            for (Aweme aid : list) {
                String aid2 = aid.getAid();
                if (aweme != null) {
                    str = aweme.getAid();
                } else {
                    str = null;
                }
                if (n.LIZ(aid2, str)) {
                    return i;
                }
                i++;
            }
        }
        return -1;
    }

    /* JADX WARNING: type inference failed for: r9v0, types: [com.ss.android.ugc.aweme.base.ui.CommonPageFragment, com.ss.android.ugc.aweme.detail.ui.search.MultiTypeDetailPageFragment, com.ss.android.ugc.aweme.mix.videodetail.MixVideoPlayDetailPageFragment, androidx.fragment.app.Fragment, com.ss.android.ugc.aweme.detail.ui.DetailPageFragment] */
    /* JADX WARNING: Code restructure failed: missing block: B:40:0x01d5, code lost:
        if (r1.equals(r0) == false) goto L_0x0180;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onViewCreated(android.view.View r10, android.os.Bundle r11) {
        /*
            r9 = this;
            X.M12.LIZ(r10)
            super.onViewCreated(r10, r11)
            r0 = 2131364045(0x7f0a08cd, float:1.8347916E38)
            android.view.View r2 = r9.LIZ(r0)
            X.Qeg r2 = (X.Qeg) r2
            android.content.Context r0 = r2.getContext()
            int r1 = X.HeD.LIZ(r0)
            int r0 = LJJIJ
            int r0 = r0 * 2
            int r1 = r1 - r0
            r2.setMaxWidth(r1)
            java.lang.String r0 = r9.LJJIII
            r2.setText(r0)
            r0 = 2131367668(0x7f0a16f4, float:1.8355264E38)
            android.view.View r1 = r9.LIZ(r0)
            androidx.constraintlayout.widget.ConstraintLayout r1 = (androidx.constraintlayout.widget.ConstraintLayout) r1
            java.lang.String r0 = ""
            kotlin.h.b.n.LIZIZ(r1, r0)
            android.view.ViewGroup$LayoutParams r2 = r1.getLayoutParams()
            java.lang.String r1 = "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams"
            java.util.Objects.requireNonNull(r2, r1)
            android.view.ViewGroup$MarginLayoutParams r2 = (android.view.ViewGroup.MarginLayoutParams) r2
            int r1 = X.4CM.LIZ()
            r2.topMargin = r1
            X.1hK r2 = r9.getActivity()
            if (r2 == 0) goto L_0x0051
            X.Abz r1 = new X.Abz
            r1.<init>(r9)
            com.ss.android.ugc.aweme.main.page.AwemeChangeCallBack.LIZ(r2, r2, r1)
        L_0x0051:
            com.ss.android.ugc.aweme.mix.mixdetail.viewmodel.MixVideosViewModel r2 = r9.LJIJI()
            X.PHD r3 = X.AMY.LIZ
            r4 = 0
            X.Abi r5 = new X.Abi
            r5.<init>(r9)
            r6 = 6
            r1 = r9
            X.Cus.LIZ(r1, r2, r3, r4, r5, r6)
            com.ss.android.ugc.aweme.mix.mixdetail.viewmodel.MixVideosViewModel r2 = r9.LJIJI()
            X.PHD r3 = X.AZM.LIZ
            X.Abh r5 = new X.Abh
            r5.<init>(r9)
            X.Cus.LIZ(r1, r2, r3, r4, r5, r6)
            com.ss.android.ugc.aweme.mix.mixdetail.viewmodel.MixVideosViewModel r2 = r9.LJIJI()
            X.PHD r3 = X.AZN.LIZ
            X.Abg r5 = new X.Abg
            r5.<init>(r9)
            X.Cus.LIZ(r1, r2, r3, r4, r5, r6)
            com.ss.android.ugc.aweme.mix.mixdetail.viewmodel.MixVideosViewModel r2 = r9.LJIJI()
            X.PHD r3 = X.AZQ.LIZ
            X.AbI r5 = new X.AbI
            r5.<init>(r9)
            X.Cus.LIZ(r1, r2, r3, r4, r5, r6)
            com.ss.android.ugc.aweme.mix.mixdetail.viewmodel.MixVideosViewModel r2 = r9.LJIJI()
            X.PHD r3 = X.AZI.LIZ
            X.Abk r5 = new X.Abk
            r5.<init>(r9)
            X.Cus.LIZ(r1, r2, r3, r4, r5, r6)
            com.ss.android.ugc.aweme.mix.mixdetail.viewmodel.MixVideosViewModel r2 = r9.LJIJI()
            X.PHD r3 = X.AZG.LIZ
            X.Abj r5 = new X.Abj
            r5.<init>(r9)
            X.Cus.LIZ(r1, r2, r3, r4, r5, r6)
            X.OQZ r5 = r9.LJIILIIL()
            android.content.Context r1 = r9.getContext()
            X.FjH r4 = X.FjH.LIZ(r1)
            android.content.Context r1 = r9.getContext()
            android.view.LayoutInflater r2 = android.view.LayoutInflater.from(r1)
            r1 = 2131560637(0x7f0d08bd, float:1.8746652E38)
            android.view.View r3 = LIZ((android.view.LayoutInflater) r2, (int) r1)
            r1 = 2131365714(0x7f0a0f52, float:1.8351301E38)
            android.view.View r6 = r3.findViewById(r1)
            kotlin.h.b.n.LIZIZ(r6, r0)
            androidx.appcompat.widget.AppCompatImageView r6 = (androidx.appcompat.widget.AppCompatImageView) r6
            r7 = 2131372426(0x7f0a298a, float:1.8364915E38)
            android.view.View r8 = r3.findViewById(r7)
            kotlin.h.b.n.LIZIZ(r8, r0)
            android.widget.TextView r8 = (android.widget.TextView) r8
            r1 = 2131371924(0x7f0a2794, float:1.8363896E38)
            android.view.View r2 = r3.findViewById(r1)
            kotlin.h.b.n.LIZIZ(r2, r0)
            android.widget.TextView r2 = (android.widget.TextView) r2
            r1 = 2131232865(0x7f080861, float:1.8081851E38)
            r6.setBackgroundResource(r1)
            android.content.Context r1 = r9.getContext()
            r6 = 2131099659(0x7f06000b, float:1.7811677E38)
            if (r1 == 0) goto L_0x010c
            android.content.Context r1 = r8.getContext()
            int r1 = X.070.LIZJ(r1, r6)
            r8.setTextColor(r1)
            android.content.Context r1 = r8.getContext()
            int r1 = X.070.LIZJ(r1, r6)
            r2.setTextColor(r1)
        L_0x010c:
            r1 = 2131827628(0x7f111bac, float:1.9288174E38)
            java.lang.String r1 = r9.getString(r1)
            r8.setText(r1)
            r1 = 8
            r2.setVisibility(r1)
            kotlin.h.b.n.LIZIZ(r3, r0)
            r4.LIZIZ(r3)
            android.content.Context r1 = r9.getContext()
            android.view.LayoutInflater r2 = android.view.LayoutInflater.from(r1)
            r1 = 2131560638(0x7f0d08be, float:1.8746654E38)
            android.view.View r3 = LIZ((android.view.LayoutInflater) r2, (int) r1)
            android.view.View r2 = r3.findViewById(r7)
            kotlin.h.b.n.LIZIZ(r2, r0)
            android.widget.TextView r2 = (android.widget.TextView) r2
            android.content.Context r1 = r9.getContext()
            if (r1 == 0) goto L_0x014a
            android.content.Context r1 = r2.getContext()
            int r1 = X.070.LIZJ(r1, r6)
            r2.setTextColor(r1)
        L_0x014a:
            kotlin.h.b.n.LIZIZ(r3, r0)
            r4.LJ = r3
            android.view.View r3 = r4.LJ
            android.widget.FrameLayout$LayoutParams r2 = new android.widget.FrameLayout$LayoutParams
            r1 = -1
            r2.<init>(r1, r1)
            r3.setLayoutParams(r2)
            r1 = 1
            r4.LJI = r1
            r5.setBuilder(r4)
            X.Ab9 r1 = r9.LJJIFFI
            r2 = 0
            if (r1 == 0) goto L_0x0180
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r1.getMAweme()
            if (r1 == 0) goto L_0x0180
            X.8ON r1 = X.8ON.LIZ()
            kotlin.h.b.n.LIZIZ(r1, r0)
            java.lang.String r1 = r1.LIZIZ
            if (r1 == 0) goto L_0x0180
            X.Ab9 r1 = r9.LJJIFFI
            if (r1 == 0) goto L_0x0180
            com.ss.android.ugc.aweme.feed.model.Aweme r1 = r1.getMAweme()
            if (r1 != 0) goto L_0x01c0
        L_0x0180:
            X.OQZ r0 = r9.LJIILIIL()
            r0.LJFF()
        L_0x0187:
            X.Ab9 r0 = r9.LJJIFFI
            if (r0 == 0) goto L_0x018f
            java.lang.String r2 = r0.getMVideoFrom()
        L_0x018f:
            java.lang.String r0 = "from_mix_detail_item"
            boolean r0 = kotlin.h.b.n.LIZ(r2, r0)
            if (r0 == 0) goto L_0x01af
            X.Ab9 r0 = r9.LJJIFFI
            if (r0 == 0) goto L_0x01a7
            X.AYf r0 = r0.getSearchParam()
            if (r0 == 0) goto L_0x01a7
            java.lang.Integer r0 = r0.isFromVideo()
            if (r0 != 0) goto L_0x01b0
        L_0x01a7:
            X.7SU r0 = new X.7SU
            r0.<init>(r9)
            X.0Gp.LIZ(r0)
        L_0x01af:
            return
        L_0x01b0:
            int r1 = r0.intValue()
            r0 = 3
            if (r1 != r0) goto L_0x01a7
            X.MHU r0 = X.MHU.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x01af
            goto L_0x01a7
        L_0x01c0:
            X.8ON r1 = X.8ON.LIZ()
            kotlin.h.b.n.LIZIZ(r1, r0)
            java.lang.String r1 = r1.LIZIZ
            X.Ab9 r0 = r9.LJJIFFI
            if (r0 == 0) goto L_0x01d8
            com.ss.android.ugc.aweme.feed.model.Aweme r0 = r0.getMAweme()
        L_0x01d1:
            boolean r0 = r1.equals(r0)
            if (r0 != 0) goto L_0x0187
            goto L_0x0180
        L_0x01d8:
            r0 = r2
            goto L_0x01d1
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.mix.videodetail.MixVideoPlayDetailPageFragment.onViewCreated(android.view.View, android.os.Bundle):void");
    }

    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        return 0HH.LIZ(layoutInflater, 2131560628, viewGroup, false);
    }
}
