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

import X.0Bs;
import X.0Bv;
import X.0Bx;
import X.0By;
import X.0HH;
import X.1hK;
import X.2GD;
import X.2uR;
import X.3YD;
import X.3cA;
import X.3cC;
import X.3cI;
import X.FVA;
import X.M12;
import X.OIZ;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewStub;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.shortvideo.model.CommentSettingItemStatus;
import com.ss.android.ugc.aweme.shortvideo.model.CommonSettingItemStatus;
import com.ss.android.ugc.aweme.shortvideo.model.DuetSettingItemStatus;
import com.ss.android.ugc.aweme.shortvideo.model.StitchSettingItemStatus;
import java.util.HashMap;
import kotlin.h.b.n;

public final class VideoPrivacySettingsFragment extends Fragment implements 3YD {
    public OIZ LIZ;
    public OIZ LIZIZ;
    public OIZ LIZJ;
    public CommentSettingItemStatus LIZLLL;
    public CommonSettingItemStatus LJ;
    public CommonSettingItemStatus LJFF;
    public HashMap LJI;

    static {
        Covode.recordClassIndex(112834);
    }

    public final void onDestroy() {
        VideoPrivacySettingsFragment.super.onDestroy();
    }

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

    public final 2uR ch_() {
        2uR r4 = new 2uR();
        3cA r1 = new 3cA();
        r1.LIZ(2131755740);
        r1.LIZ(new FVA(this));
        r4.LIZIZ(new 3cI[]{r1});
        3cC r2 = new 3cC();
        String string = getString(2131823481);
        n.LIZIZ(string, "");
        r2.LIZ(string);
        r4.LIZ(r2);
        r4.LIZLLL = true;
        return r4;
    }

    public final void onCreate(Bundle bundle) {
        VideoPrivacySettingsFragment.super.onCreate(bundle);
    }

    public static 0Bx LIZ(1hK r2) {
        0Bx LIZ2 = 0By.LIZ(r2, (0Bv) null);
        if (2GD.LIZ) {
            0Bs.LIZ(LIZ2, r2);
        }
        return LIZ2;
    }

    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        MethodCollector.i(6784);
        M12.LIZ(layoutInflater);
        View LIZ2 = 0HH.LIZ(layoutInflater, 2131559755, viewGroup, false);
        1hK activity = getActivity();
        if (activity != null) {
            this.LIZLLL = LIZ(activity).LIZ(CommentSettingItemStatus.class);
            this.LJ = LIZ(activity).LIZ(DuetSettingItemStatus.class);
            this.LJFF = LIZ(activity).LIZ(StitchSettingItemStatus.class);
        }
        if (this.LIZ == null) {
            OIZ inflate = ((ViewStub) LIZ2.findViewById(2131363527)).inflate();
            if (inflate != null) {
                OIZ oiz = inflate;
                this.LIZ = oiz;
                CommentSettingItemStatus commentSettingItemStatus = this.LIZLLL;
                if (commentSettingItemStatus != null) {
                    if (oiz == null) {
                        n.LIZIZ();
                    }
                    commentSettingItemStatus.bindView(oiz, this);
                }
            } else {
                NullPointerException nullPointerException = new NullPointerException("null cannot be cast to non-null type com.bytedance.ies.dmt.ui.common.views.CommonItemView");
                MethodCollector.o(6784);
                throw nullPointerException;
            }
        }
        if (this.LIZIZ == null) {
            OIZ inflate2 = ((ViewStub) LIZ2.findViewById(2131364298)).inflate();
            if (inflate2 != null) {
                OIZ oiz2 = inflate2;
                this.LIZIZ = oiz2;
                CommonSettingItemStatus commonSettingItemStatus = this.LJ;
                if (commonSettingItemStatus != null) {
                    if (oiz2 == null) {
                        n.LIZIZ();
                    }
                    commonSettingItemStatus.bindView(oiz2, this);
                }
            } else {
                NullPointerException nullPointerException2 = new NullPointerException("null cannot be cast to non-null type com.bytedance.ies.dmt.ui.common.views.CommonItemView");
                MethodCollector.o(6784);
                throw nullPointerException2;
            }
        }
        if (this.LIZJ == null) {
            OIZ inflate3 = ((ViewStub) LIZ2.findViewById(2131370732)).inflate();
            if (inflate3 != null) {
                OIZ oiz3 = inflate3;
                this.LIZJ = oiz3;
                CommonSettingItemStatus commonSettingItemStatus2 = this.LJFF;
                if (commonSettingItemStatus2 != null) {
                    if (oiz3 == null) {
                        n.LIZIZ();
                    }
                    commonSettingItemStatus2.bindView(oiz3, this);
                }
            } else {
                NullPointerException nullPointerException3 = new NullPointerException("null cannot be cast to non-null type com.bytedance.ies.dmt.ui.common.views.CommonItemView");
                MethodCollector.o(6784);
                throw nullPointerException3;
            }
        }
        MethodCollector.o(6784);
        return LIZ2;
    }
}
