package com.ss.android.ugc.aweme.compliance.privacy.settings.account.pages.videoviewers;

import X.0Bx;
import X.6iy;
import X.AnonymousClass2aZ;
import X.C15012rV;
import X.C36453kz;
import X.C37153m7;
import X.C38943p0;
import X.CZv;
import X.LsC;
import X.M12;
import android.os.Bundle;
import android.util.SparseArray;
import android.view.View;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.compliance.privacy.settings.account.base.BasePrivacySettingFragment;
import java.util.List;
import kotlin.h.b.n;

@CZv
public final class VideoViewHistorySettingFragment extends BasePrivacySettingFragment {
    public C36453kz LIZ;
    public SparseArray LIZIZ;

    static {
        Covode.recordClassIndex(61834);
    }

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

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

    public final /* synthetic */ void onDestroyView() {
        super.onDestroyView();
        LIZIZ();
    }

    public final List<C15012rV> LIZJ() {
        C36453kz r1 = this.LIZ;
        if (r1 == null) {
            n.LIZ("");
        }
        return 6iy.LIZ(r1);
    }

    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        VideoViewHistorySettingViewModel LIZ2 = new 0Bx(this).LIZ(VideoViewHistorySettingViewModel.class);
        n.LIZIZ(LIZ2, "");
        this.LIZ = new C36453kz(LIZ2, this);
    }

    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        super.onViewCreated(view, bundle);
        LIZIZ(2131834780);
        C36453kz r1 = this.LIZ;
        if (r1 == null) {
            n.LIZ("");
        }
        LIZ((CharSequence) r1.LIZJ());
        C38943p0.LIZ("PRIVACY_SETTING_ALOG", (LsC<? super AnonymousClass2aZ, ? extends AnonymousClass2aZ>) C37153m7.LIZ);
    }
}
