package com.ss.android.ugc.aweme.compliance.protection.restrictmode.ui.fragment;

import X.070;
import X.AnonymousClass2UX;
import X.C12422nK;
import X.C29203Yi;
import X.C45353zL;
import X.C45413zR;
import X.C45503za;
import X.C45513zb;
import X.C45583zi;
import X.C45623zm;
import X.C45693zt;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.compliance.protection.timelock.ui.fragment.AbsOptionsFragmentV2;

public class RestrictModeOptionsFragmentV2 extends AbsOptionsFragmentV2 {
    public C29203Yi LIZJ;
    public C29203Yi LIZLLL;

    static {
        Covode.recordClassIndex(62123);
    }

    public final int LIZ() {
        return 2131559424;
    }

    public final /* synthetic */ void LIZIZ() {
        C12422nK.LIZ("close_teen_mode", new AnonymousClass2UX().LIZ);
        if (LIZLLL()) {
            LIZ(1);
            return;
        }
        Fragment LIZIZ = C45353zL.LIZIZ(1);
        C45513zb LIZ = C45503za.LIZ().LIZ("TimeLockEnterFragmentV2");
        LIZ.LIZ(LIZIZ);
        LIZ.LIZ(this, new C45623zm() {
            static {
                Covode.recordClassIndex(62124);
            }

            public final void LIZ() {
                C45693zt.LIZLLL.LJI();
            }
        });
        LIZ(LIZIZ);
    }

    public void onViewCreated(View view, Bundle bundle) {
        super.onViewCreated(view, bundle);
        this.LIZJ = (C29203Yi) view.findViewById(2131371068);
        this.LIZLLL = (C29203Yi) view.findViewById(2131371069);
        this.LIZJ.setTitle(getString(2131832182));
        this.LIZLLL.setTitle(getString(2131832184));
        this.LIZIZ.setOnClickListener(new C45583zi(this));
        if (LIZLLL()) {
            this.LIZ.setVisibility(8);
            this.LIZIZ.setBackgroundResource(2131235271);
            this.LIZIZ.setTextColor(070.LIZJ(getContext(), 2131100329));
            String str = ((C45413zR) LIZJ().getValue()).LIZIZ.LIZJ;
            if (!TextUtils.isEmpty(str)) {
                this.LIZIZ.setText(getString(2131824882, new Object[]{str}));
            } else {
                this.LIZIZ.setText(getString(2131824881));
            }
            this.LIZJ.setTitle(getString(2131832182));
            this.LIZLLL.setTitle(getString(2131824885));
        }
    }
}
