package com.ss.android.ugc.aweme.shortvideo.vechoosecover;

import X.0HH;
import X.1CX;
import X.1oX;
import X.2Pr;
import X.2yy;
import X.3Dl;
import X.3Dt;
import X.3G4;
import X.7he;
import X.9HM;
import X.AnonymousClass6RF;
import X.AnonymousClass6T4;
import X.AnonymousClass6T5;
import X.AnonymousClass6T8;
import X.AnonymousClass6TA;
import X.AnonymousClass6TB;
import X.AnonymousClass6TE;
import X.AnonymousClass6TJ;
import X.AnonymousClass6TM;
import X.AnonymousClass6TN;
import X.AnonymousClass6TP;
import X.AnonymousClass6TQ;
import X.AnonymousClass6TR;
import X.AnonymousClass6TS;
import X.C281467g;
import X.C32796Pd;
import X.C32806Pe;
import X.C32886Pm;
import X.C33006Py;
import X.C33096Qh;
import X.C33636Sj;
import X.C33786Sy;
import X.C531675m;
import X.Crj;
import X.FWb;
import X.LeS;
import X.LsC;
import X.M12;
import X.Mjy;
import X.OCO;
import X.QEL;
import X.QJv;
import X.TXm;
import X.TXq;
import android.content.Context;
import android.graphics.Point;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.core.g.t;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bytedance.covode.number.Covode;
import com.gyf.barlibrary.ImmersionBar;
import com.ss.android.ugc.aweme.editSticker.model.EffectTextModel;
import com.ss.android.ugc.aweme.image.model.ImageSynthesisResult;
import com.ss.android.ugc.aweme.image.model.SrcImageInfo;
import com.ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import kotlin.h.b.n;

public final class ImageChooseCoverFragment extends Fragment {
    public static final AnonymousClass6TS LJIIJ = new AnonymousClass6TS((byte) 0);
    public ViewGroup LIZ;
    public FrameLayout LIZIZ;
    public 2yy LIZJ;
    public C33096Qh LIZLLL;
    public Map<Integer, ImageSynthesisResult> LJ = new LinkedHashMap();
    public float LJFF;
    public float LJI;
    public int LJII;
    public AnonymousClass6TR LJIIIIZZ;
    public VideoPublishEditModel LJIIIZ;
    public boolean LJIIJJI;
    public TextView LJIIL;
    public TextView LJIILIIL;
    public RecyclerView LJIILJJIL;
    public QJv LJIILL;
    public FrameLayout LJIILLIIL;
    public FrameLayout LJIIZILJ;
    public FrameLayout LJIJ;
    public TXq LJIJI;
    public AnonymousClass6RF LJIJJ;
    public boolean LJIJJLI = true;
    public final Crj LJIL = 7he.LIZ(new AnonymousClass6TP(this));
    public View LJJ;
    public View LJJI;
    public View LJJIFFI;
    public View LJJII;
    public final Mjy LJJIII = new Mjy();
    public boolean LJJIIJ;
    public float LJJIIJZLJL = 1.0f;
    public float LJJIIZ = 1.0f;
    public HashMap LJJIIZI;

    static {
        Covode.recordClassIndex(113655);
    }

    public final C281467g LIZ() {
        return (C281467g) this.LJIL.getValue();
    }

    public final void onDestroy() {
        ImageChooseCoverFragment.super.onDestroy();
        this.LJJIII.dispose();
        LIZ().LIZIZ();
    }

    public final /* synthetic */ void onDestroyView() {
        ImageChooseCoverFragment.super.onDestroyView();
        HashMap hashMap = this.LJJIIZI;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

    public final boolean LIZIZ() {
        VideoPublishEditModel videoPublishEditModel = this.LJIIIZ;
        if (videoPublishEditModel == null) {
            n.LIZ("");
        }
        if (videoPublishEditModel.getCoverPublishModel().getImageCurrentIndex() != this.LJII) {
            return true;
        }
        return false;
    }

    public final void LIZJ() {
        C32796Pd LJ2 = LJ();
        if (LJ2 != null) {
            this.LJJIIJZLJL = LJ2.getCenterX() / this.LJFF;
            this.LJJIIZ = LJ2.getCenterY() / this.LJI;
        }
    }

    public final void LIZLLL() {
        FWb.LIZIZ.LIZ().LJJIZ().LIZ(LIZIZ(), (LsC<? super Boolean, 2Pr>) new AnonymousClass6TB(this));
    }

    private final C32796Pd LJ() {
        TXq tXq = this.LJIJI;
        if (tXq == null) {
            n.LIZ("");
        }
        int childCount = tXq.getChildCount();
        for (int i = 0; i < childCount; i++) {
            if (tXq.getChildAt(i) instanceof C32796Pd) {
                View childAt = tXq.getChildAt(i);
                Objects.requireNonNull(childAt, "null cannot be cast to non-null type com.ss.android.ugc.aweme.editSticker.text.effect.EffectTextStickerView");
                return (C32796Pd) childAt;
            }
        }
        return null;
    }

    public static final /* synthetic */ VideoPublishEditModel LIZ(ImageChooseCoverFragment imageChooseCoverFragment) {
        VideoPublishEditModel videoPublishEditModel = imageChooseCoverFragment.LJIIIZ;
        if (videoPublishEditModel == null) {
            n.LIZ("");
        }
        return videoPublishEditModel;
    }

    public static final /* synthetic */ 2yy LIZIZ(ImageChooseCoverFragment imageChooseCoverFragment) {
        2yy r1 = imageChooseCoverFragment.LIZJ;
        if (r1 == null) {
            n.LIZ("");
        }
        return r1;
    }

    public static final /* synthetic */ FrameLayout LIZJ(ImageChooseCoverFragment imageChooseCoverFragment) {
        FrameLayout frameLayout = imageChooseCoverFragment.LIZIZ;
        if (frameLayout == null) {
            n.LIZ("");
        }
        return frameLayout;
    }

    public static final /* synthetic */ ViewGroup LIZLLL(ImageChooseCoverFragment imageChooseCoverFragment) {
        ViewGroup viewGroup = imageChooseCoverFragment.LIZ;
        if (viewGroup == null) {
            n.LIZ("");
        }
        return viewGroup;
    }

    public static final /* synthetic */ AnonymousClass6TR LJ(ImageChooseCoverFragment imageChooseCoverFragment) {
        AnonymousClass6TR r1 = imageChooseCoverFragment.LJIIIIZZ;
        if (r1 == null) {
            n.LIZ("");
        }
        return r1;
    }

    public final void onAttach(Context context) {
        ImageChooseCoverFragment.super.onAttach(context);
        Objects.requireNonNull(context, "null cannot be cast to non-null type com.ss.android.ugc.aweme.shortvideo.vechoosecover.ImageChooseCoverFragment.ArgumentsDependency");
        AnonymousClass6TR r2 = (AnonymousClass6TR) context;
        this.LJIIIIZZ = r2;
        if (r2 == null) {
            n.LIZ("");
        }
        this.LJIIIZ = r2.LJI();
        this.LJIIJJI = C33786Sy.LIZ();
    }

    public final void onCreate(Bundle bundle) {
        ImageChooseCoverFragment.super.onCreate(bundle);
        ImmersionBar with = ImmersionBar.with(requireActivity());
        with.fitsSystemWindows(true);
        with.statusBarColor(2131099652);
        with.statusBarDarkFont(true);
        with.init();
    }

    public final void LIZ(List<ImageSynthesisResult> list) {
        int i = 0;
        for (T next : list) {
            int i2 = i + 1;
            if (i < 0) {
                LeS.LIZIZ();
            }
            this.LJ.put(Integer.valueOf(i), next);
            i = i2;
        }
        2yy r3 = this.LIZJ;
        if (r3 == null) {
            n.LIZ("");
        }
        ArrayList arrayList = new ArrayList(9HM.LIZ(list, 10));
        for (ImageSynthesisResult path : list) {
            arrayList.add(path.getPath());
        }
        r3.LIZ(arrayList);
    }

    public final void LIZ(boolean z) {
        if (!z) {
            View view = this.LJJ;
            if (view == null) {
                n.LIZ("");
            }
            view.setVisibility(4);
            View view2 = this.LJJI;
            if (view2 == null) {
                n.LIZ("");
            }
            view2.setVisibility(4);
            View view3 = this.LJJIFFI;
            if (view3 == null) {
                n.LIZ("");
            }
            view3.setVisibility(4);
            View view4 = this.LJJII;
            if (view4 == null) {
                n.LIZ("");
            }
            view4.setVisibility(4);
        } else if (this.LJFF / this.LJI < 0.75f) {
            View view5 = this.LJJ;
            if (view5 == null) {
                n.LIZ("");
            }
            view5.setVisibility(0);
            View view6 = this.LJJI;
            if (view6 == null) {
                n.LIZ("");
            }
            view6.setVisibility(0);
            View view7 = this.LJJIFFI;
            if (view7 == null) {
                n.LIZ("");
            }
            view7.setVisibility(4);
            View view8 = this.LJJII;
            if (view8 == null) {
                n.LIZ("");
            }
            view8.setVisibility(4);
        } else {
            View view9 = this.LJJ;
            if (view9 == null) {
                n.LIZ("");
            }
            view9.setVisibility(4);
            View view10 = this.LJJI;
            if (view10 == null) {
                n.LIZ("");
            }
            view10.setVisibility(4);
            View view11 = this.LJJIFFI;
            if (view11 == null) {
                n.LIZ("");
            }
            view11.setVisibility(0);
            View view12 = this.LJJII;
            if (view12 == null) {
                n.LIZ("");
            }
            view12.setVisibility(0);
        }
    }

    private final void LIZ(View view) {
        C32806Pe r1;
        VideoPublishEditModel videoPublishEditModel = this.LJIIIZ;
        if (videoPublishEditModel == null) {
            n.LIZ("");
        }
        EffectTextModel effectTextModel = videoPublishEditModel.getCoverPublishModel().getEffectTextModel();
        FrameLayout frameLayout = this.LJIILLIIL;
        if (frameLayout == null) {
            n.LIZ("");
        }
        FrameLayout frameLayout2 = this.LJIIZILJ;
        if (frameLayout2 == null) {
            n.LIZ("");
        }
        FrameLayout frameLayout3 = this.LJIJ;
        if (frameLayout3 == null) {
            n.LIZ("");
        }
        AnonymousClass6T4 r5 = new AnonymousClass6T4("coverpic", "covertext", frameLayout, frameLayout2, frameLayout3);
        r5.LIZ = effectTextModel;
        VideoPublishEditModel videoPublishEditModel2 = this.LJIIIZ;
        if (videoPublishEditModel2 == null) {
            n.LIZ("");
        }
        r5.LIZIZ = videoPublishEditModel2.getAvetParameter();
        r5.LIZJ = new AnonymousClass6TE(this, effectTextModel);
        r5.LIZLLL = false;
        C33636Sj LJJIZ = FWb.LIZIZ.LIZ().LJJIZ();
        1oX requireActivity = requireActivity();
        Objects.requireNonNull(requireActivity, "null cannot be cast to non-null type androidx.appcompat.app.AppCompatActivity");
        LJJIZ.LIZ(requireActivity, r5);
        FrameLayout frameLayout4 = this.LJIJ;
        if (frameLayout4 == null) {
            n.LIZ("");
        }
        int childCount = frameLayout4.getChildCount();
        int i = 0;
        while (true) {
            if (i >= childCount) {
                break;
            }
            FrameLayout frameLayout5 = this.LJIJ;
            if (frameLayout5 == null) {
                n.LIZ("");
            }
            if (frameLayout5.getChildAt(i) instanceof TXq) {
                FrameLayout frameLayout6 = this.LJIJ;
                if (frameLayout6 == null) {
                    n.LIZ("");
                }
                TXq childAt = frameLayout6.getChildAt(i);
                Objects.requireNonNull(childAt, "null cannot be cast to non-null type com.bytedance.createx.editor.gesture.GestureLayout");
                this.LJIJI = childAt;
            } else {
                i++;
            }
        }
        TXq tXq = this.LJIJI;
        if (tXq == null) {
            n.LIZ("");
        }
        int childCount2 = tXq.getChildCount();
        for (int i2 = 0; i2 < childCount2; i2++) {
            TXq tXq2 = this.LJIJI;
            if (tXq2 == null) {
                n.LIZ("");
            }
            if (tXq2.getChildAt(i2) instanceof C33096Qh) {
                TXq tXq3 = this.LJIJI;
                if (tXq3 == null) {
                    n.LIZ("");
                }
                View childAt2 = tXq3.getChildAt(i2);
                Objects.requireNonNull(childAt2, "null cannot be cast to non-null type com.ss.android.ugc.aweme.sticker.view.DMTBorderLineView");
                this.LIZLLL = (C33096Qh) childAt2;
            }
        }
        TXq tXq4 = this.LJIJI;
        if (tXq4 == null) {
            n.LIZ("");
        }
        TXm onGestureListener = tXq4.getOnGestureListener();
        TXq tXq5 = this.LJIJI;
        if (tXq5 == null) {
            n.LIZ("");
        }
        n.LIZIZ(onGestureListener, "");
        tXq5.setOnGestureListener(new AnonymousClass6TM(this, onGestureListener, onGestureListener));
        C531675m r0 = (C531675m) FWb.LIZIZ.LIZ().LJJIZ().LIZIZ();
        if (!(r0 == null || (r1 = r0.LJFF) == null)) {
            r1.LJJJI = 4;
            r1.LJFF = new AnonymousClass6TN(this);
        }
        View LIZ2 = t.LIZ(view, 2131364974);
        n.LIZIZ(LIZ2, "");
        this.LJIJJ = (AnonymousClass6RF) LIZ2;
    }

    public final void LIZ(int i) {
        int width;
        int height;
        boolean z;
        String path;
        C32806Pe r3;
        FrameLayout frameLayout = this.LIZIZ;
        if (frameLayout == null) {
            n.LIZ("");
        }
        int measuredHeight = frameLayout.getMeasuredHeight();
        int LIZIZ2 = 3G4.LIZIZ(requireContext());
        if (this.LJ.get(Integer.valueOf(this.LJII)) != null) {
            ImageSynthesisResult imageSynthesisResult = this.LJ.get(Integer.valueOf(i));
            if (imageSynthesisResult == null) {
                n.LIZIZ();
            }
            width = imageSynthesisResult.getWidth();
            ImageSynthesisResult imageSynthesisResult2 = this.LJ.get(Integer.valueOf(i));
            if (imageSynthesisResult2 == null) {
                n.LIZIZ();
            }
            height = imageSynthesisResult2.getHeight();
        } else {
            VideoPublishEditModel videoPublishEditModel = this.LJIIIZ;
            if (videoPublishEditModel == null) {
                n.LIZ("");
            }
            SrcImageInfo srcImageInfo = videoPublishEditModel.getImageAlbumData().getImageList().get(i).getSrcImageInfo();
            width = srcImageInfo.getWidth();
            height = srcImageInfo.getHeight();
        }
        if (width < height) {
            z = true;
        } else {
            z = false;
        }
        this.LJJIIJ = z;
        float f = (float) LIZIZ2;
        float f2 = (float) measuredHeight;
        float f3 = (float) width;
        float f4 = (float) height;
        if (f / f2 > f3 / f4) {
            this.LJI = f2;
            this.LJFF = (f3 * f2) / f4;
        } else {
            this.LJFF = f;
            this.LJI = (f4 * f) / f3;
        }
        FrameLayout frameLayout2 = this.LJIJ;
        if (frameLayout2 == null) {
            n.LIZ("");
        }
        ViewGroup.LayoutParams layoutParams = frameLayout2.getLayoutParams();
        Objects.requireNonNull(layoutParams, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams");
        FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) layoutParams;
        layoutParams2.width = (int) this.LJFF;
        layoutParams2.height = (int) this.LJI;
        FrameLayout frameLayout3 = this.LJIJ;
        if (frameLayout3 == null) {
            n.LIZ("");
        }
        frameLayout3.setLayoutParams(layoutParams2);
        FrameLayout frameLayout4 = this.LJIJ;
        if (frameLayout4 == null) {
            n.LIZ("");
        }
        frameLayout4.setTag(new C32886Pm(this.LJJIIJ, 1.0f, (int) this.LJFF));
        FrameLayout frameLayout5 = this.LJIJ;
        if (frameLayout5 == null) {
            n.LIZ("");
        }
        frameLayout5.postDelayed(new AnonymousClass6TJ(this, layoutParams2), 100);
        int LIZIZ3 = 3G4.LIZIZ(requireContext());
        FrameLayout frameLayout6 = this.LIZIZ;
        if (frameLayout6 == null) {
            n.LIZ("");
        }
        int measuredHeight2 = frameLayout6.getMeasuredHeight();
        float f5 = this.LJFF;
        float f6 = this.LJI;
        if (f5 / f6 < 0.75f) {
            int i2 = (int) f5;
            int i3 = (((int) f6) - ((i2 * 4) / 3)) / 2;
            View view = this.LJJ;
            if (view == null) {
                n.LIZ("");
            }
            ViewGroup.LayoutParams layoutParams3 = view.getLayoutParams();
            layoutParams3.width = i2;
            layoutParams3.height = i3;
            View view2 = this.LJJ;
            if (view2 == null) {
                n.LIZ("");
            }
            view2.setLayoutParams(layoutParams3);
            View view3 = this.LJJ;
            if (view3 == null) {
                n.LIZ("");
            }
            float f7 = ((float) (LIZIZ3 - i2)) / 2.0f;
            view3.setTranslationX(f7);
            View view4 = this.LJJI;
            if (view4 == null) {
                n.LIZ("");
            }
            ViewGroup.LayoutParams layoutParams4 = view4.getLayoutParams();
            layoutParams4.width = i2;
            layoutParams4.height = i3;
            View view5 = this.LJJI;
            if (view5 == null) {
                n.LIZ("");
            }
            view5.setLayoutParams(layoutParams4);
            View view6 = this.LJJI;
            if (view6 == null) {
                n.LIZ("");
            }
            view6.setTranslationX(f7);
        } else {
            int i4 = (int) f6;
            int i5 = (((int) f5) - ((i4 * 3) / 4)) / 2;
            View view7 = this.LJJIFFI;
            if (view7 == null) {
                n.LIZ("");
            }
            ViewGroup.LayoutParams layoutParams5 = view7.getLayoutParams();
            layoutParams5.width = i5;
            layoutParams5.height = i4;
            View view8 = this.LJJIFFI;
            if (view8 == null) {
                n.LIZ("");
            }
            view8.setLayoutParams(layoutParams5);
            View view9 = this.LJJIFFI;
            if (view9 == null) {
                n.LIZ("");
            }
            float f8 = ((float) (measuredHeight2 - i4)) / 2.0f;
            view9.setTranslationY(f8);
            View view10 = this.LJJII;
            if (view10 == null) {
                n.LIZ("");
            }
            ViewGroup.LayoutParams layoutParams6 = view10.getLayoutParams();
            layoutParams6.width = i5;
            layoutParams6.height = i4;
            View view11 = this.LJJII;
            if (view11 == null) {
                n.LIZ("");
            }
            view11.setLayoutParams(layoutParams6);
            View view12 = this.LJJII;
            if (view12 == null) {
                n.LIZ("");
            }
            view12.setTranslationY(f8);
        }
        VideoPublishEditModel videoPublishEditModel2 = this.LJIIIZ;
        if (videoPublishEditModel2 == null) {
            n.LIZ("");
        }
        if (videoPublishEditModel2.getCoverPublishModel().getEffectTextModel().getHasCoverText() && this.LJIJJLI) {
            this.LJIJJLI = false;
            LIZJ();
        }
        C32796Pd LJ2 = LJ();
        C531675m r0 = (C531675m) FWb.LIZIZ.LIZ().LJJIZ().LIZIZ();
        if (!(r0 == null || (r3 = r0.LJFF) == null)) {
            r3.LJJJI = 0;
            C32886Pm r2 = new C32886Pm(this.LJJIIJ, 1.0f, 3G4.LIZIZ(requireActivity()));
            M12.LIZ(r2);
            r3.LIZ(r2);
            AnonymousClass6RF r02 = this.LJIJJ;
            if (r02 == null) {
                n.LIZ("");
            }
            Point editInputCenterPoint = r02.getEditInputCenterPoint();
            if (LJ2 != null) {
                LJ2.setCenterX(this.LJJIIJZLJL * this.LJFF);
                LJ2.setCenterY(this.LJJIIZ * this.LJI);
                LJ2.setVisibility(0);
                LJ2.post(new C33006Py(LJ2, editInputCenterPoint, this, LJ2));
            }
        }
        if (this.LJ.get(Integer.valueOf(i)) != null) {
            ImageSynthesisResult imageSynthesisResult3 = this.LJ.get(Integer.valueOf(i));
            if (imageSynthesisResult3 == null) {
                n.LIZIZ();
            }
            path = imageSynthesisResult3.getPath();
        } else {
            VideoPublishEditModel videoPublishEditModel3 = this.LJIIIZ;
            if (videoPublishEditModel3 == null) {
                n.LIZ("");
            }
            path = videoPublishEditModel3.getImageAlbumData().getImageList().get(i).getSrcImageInfo().getPath();
        }
        QJv qJv = this.LJIILL;
        if (qJv == null) {
            n.LIZ("");
        }
        OCO.LIZ(qJv, Uri.fromFile(new File(path)).toString(), -1, -1);
    }

    /* JADX WARNING: type inference failed for: r0v3, types: [android.view.View$OnClickListener, X.6T8] */
    /* JADX WARNING: type inference failed for: r0v5, types: [X.6TQ, android.view.View$OnClickListener] */
    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        ImageChooseCoverFragment.super.onViewCreated(view, bundle);
        QEL LIZIZ2 = QEL.LIZIZ();
        n.LIZIZ(LIZIZ2, "");
        LIZIZ2.LJIIIIZZ().LIZ();
        View LIZ2 = t.LIZ(view, 2131371851);
        n.LIZIZ(LIZ2, "");
        TextView textView = (TextView) LIZ2;
        this.LJIIL = textView;
        if (textView == null) {
            n.LIZ("");
        }
        textView.setOnClickListener(new AnonymousClass6T8(this));
        View LIZ3 = t.LIZ(view, 2131371850);
        n.LIZIZ(LIZ3, "");
        TextView textView2 = (TextView) LIZ3;
        this.LJIILIIL = textView2;
        if (textView2 == null) {
            n.LIZ("");
        }
        textView2.setOnClickListener(new AnonymousClass6TQ(this));
        View LIZ4 = t.LIZ(view, 2131365548);
        n.LIZIZ(LIZ4, "");
        this.LIZ = (ViewGroup) LIZ4;
        RecyclerView LIZ5 = t.LIZ(view, 2131363300);
        n.LIZIZ(LIZ5, "");
        this.LJIILJJIL = LIZ5;
        this.LIZJ = new 2yy(new AnonymousClass6TA(this));
        RecyclerView recyclerView = this.LJIILJJIL;
        if (recyclerView == null) {
            n.LIZ("");
        }
        2yy r0 = this.LIZJ;
        if (r0 == null) {
            n.LIZ("");
        }
        recyclerView.setAdapter(r0);
        RecyclerView recyclerView2 = this.LJIILJJIL;
        if (recyclerView2 == null) {
            n.LIZ("");
        }
        getContext();
        recyclerView2.setLayoutManager(new LinearLayoutManager(0, false));
        RecyclerView recyclerView3 = this.LJIILJJIL;
        if (recyclerView3 == null) {
            n.LIZ("");
        }
        recyclerView3.LIZ(new 3Dl(this));
        RecyclerView recyclerView4 = this.LJIILJJIL;
        if (recyclerView4 == null) {
            n.LIZ("");
        }
        1CX itemAnimator = recyclerView4.getItemAnimator();
        Objects.requireNonNull(itemAnimator, "null cannot be cast to non-null type androidx.recyclerview.widget.SimpleItemAnimator");
        itemAnimator.LJIIL = false;
        View LIZ6 = t.LIZ(view, 2131365886);
        n.LIZIZ(LIZ6, "");
        this.LIZIZ = (FrameLayout) LIZ6;
        QJv LIZ7 = t.LIZ(view, 2131368800);
        n.LIZIZ(LIZ7, "");
        QJv qJv = LIZ7;
        this.LJIILL = qJv;
        if (qJv == null) {
            n.LIZ("");
        }
        VideoPublishEditModel videoPublishEditModel = this.LJIIIZ;
        if (videoPublishEditModel == null) {
            n.LIZ("");
        }
        qJv.setImageURI(Uri.parse(videoPublishEditModel.getImageAlbumData().getImageList().get(0).getSrcImageInfo().getPath()));
        View LIZ8 = t.LIZ(view, 2131364949);
        n.LIZIZ(LIZ8, "");
        this.LJIILLIIL = (FrameLayout) LIZ8;
        View LIZ9 = t.LIZ(view, 2131364950);
        n.LIZIZ(LIZ9, "");
        this.LJIJ = (FrameLayout) LIZ9;
        View LIZ10 = t.LIZ(view, 2131364948);
        n.LIZIZ(LIZ10, "");
        this.LJIIZILJ = (FrameLayout) LIZ10;
        3Dt r1 = new 3Dt(this);
        this.LJJ = r1.LIZ(48);
        this.LJJI = r1.LIZ(80);
        this.LJJIFFI = r1.LIZ(8388611);
        this.LJJII = r1.LIZ(8388613);
        LIZ(view);
        VideoPublishEditModel videoPublishEditModel2 = this.LJIIIZ;
        if (videoPublishEditModel2 == null) {
            n.LIZ("");
        }
        this.LJII = videoPublishEditModel2.getCoverPublishModel().getImageCurrentIndex();
        FrameLayout frameLayout = this.LIZIZ;
        if (frameLayout == null) {
            n.LIZ("");
        }
        frameLayout.post(new AnonymousClass6T5(this));
    }

    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        View LIZ2 = 0HH.LIZ(layoutInflater, 2131558580, viewGroup, false);
        n.LIZIZ(LIZ2, "");
        return LIZ2;
    }
}
