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

import X.0HH;
import X.C45253zB;
import X.Qeg;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bytedance.covode.number.Covode;

public class TimeLockSetFragmentV2 extends AbsTimeLockSettingFragment {
    static {
        Covode.recordClassIndex(62160);
    }

    public final void LIZ(String str) {
        boolean z = this.LIZJ;
        Bundle bundle = new Bundle();
        bundle.putString("password", str);
        bundle.putBoolean("from_change_pwd", z);
        TimeLockConfirmFragmentV2 timeLockConfirmFragmentV2 = new TimeLockConfirmFragmentV2();
        timeLockConfirmFragmentV2.setArguments(bundle);
        getActivity().LIZ(timeLockConfirmFragmentV2);
    }

    public void onViewCreated(View view, Bundle bundle) {
        int i;
        super.onViewCreated(view, bundle);
        Qeg findViewById = view.findViewById(2131371134);
        findViewById.LIZ(28.0f);
        TextView textView = (TextView) view.findViewById(2131371133);
        if (this.LIZJ) {
            findViewById.setText(getString(2131833545));
            textView.setVisibility(4);
            return;
        }
        if (LIZLLL() != 0) {
            i = 2131833547;
        } else if (C45253zB.LIZ.LIZ()) {
            i = 2131831942;
        } else {
            i = 2131833546;
        }
        textView.setText(getString(i));
    }

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