package com.ss.android.ugc.aweme.kids.setting.items.security;

import X.8gF;
import X.AnonymousClass367;
import X.AnonymousClass3FS;
import X.AnonymousClass3FT;
import X.AnonymousClass3FX;
import X.C16832uR;
import X.C30953c7;
import X.OIZ;
import X.SNU;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import com.bytedance.apm.agent.v2.instrumentation.ActivityAgent;
import com.bytedance.covode.number.Covode;
import com.bytedance.sysoptimizer.EnterTransitionCrashOptimizer;
import com.ss.android.ugc.aweme.kids.api.account.IKidsAccountService;
import com.ss.android.ugc.aweme.kids.intergration.account.KidsAccountServiceImpl;
import java.util.HashMap;
import kotlin.h.b.n;

public final class KidsSecurityActivity extends SNU {
    public static final AnonymousClass3FX LIZIZ = new AnonymousClass3FX((byte) 0);
    public IKidsAccountService LIZ = KidsAccountServiceImpl.LJII();
    public HashMap LIZJ;

    static {
        Covode.recordClassIndex(89976);
    }

    public final void _$_clearFindViewByIdCache() {
        HashMap hashMap = this.LIZJ;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

    public final View _$_findCachedViewById(int i) {
        if (this.LIZJ == null) {
            this.LIZJ = new HashMap();
        }
        View view = (View) this.LIZJ.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.LIZJ.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity, X.SNU, android.app.Activity] */
    public final void onDestroy() {
        8gF.LJ(this);
        KidsSecurityActivity.super.onDestroy();
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity, X.SNU, android.app.Activity] */
    public final void onPause() {
        8gF.LIZJ(this);
        KidsSecurityActivity.super.onPause();
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity, X.SNU, android.app.Activity] */
    public final void onResume() {
        8gF.LIZIZ(this);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity", "onResume", true);
        KidsSecurityActivity.super.onResume();
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity", "onResume", false);
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity, X.SNU, android.app.Activity] */
    public final void onStart() {
        8gF.LIZ(this);
        KidsSecurityActivity.super.onStart();
    }

    public final void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity", "onWindowFocusChanged", true);
        KidsSecurityActivity.super.onWindowFocusChanged(z);
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity, X.SNU, android.app.Activity] */
    public final void onStop() {
        8gF.LIZLLL(this);
        KidsSecurityActivity.super.onStop();
        if (EnterTransitionCrashOptimizer.getContext() != null) {
            try {
                getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
            } catch (Throwable unused) {
            }
        }
        try {
            getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
        } catch (Throwable unused2) {
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity, X.4Qh] */
    public final void LIZ(boolean z) {
        this.LIZ.LIZ("allow_one_key_login", z);
        OIZ _$_findCachedViewById = _$_findCachedViewById(2131369799);
        n.LIZIZ(_$_findCachedViewById, "");
        _$_findCachedViewById.setChecked(z);
    }

    /* JADX WARNING: type inference failed for: r8v0, types: [com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity, X.4Qh, X.SNU, android.app.Activity] */
    public final void onCreate(Bundle bundle) {
        8gF.LIZ(this, bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity", "onCreate", true);
        activityConfiguration(AnonymousClass3FT.LIZ);
        KidsSecurityActivity.super.onCreate(bundle);
        setContentView(2131560241);
        boolean LIZJ2 = this.LIZ.LIZJ();
        OIZ _$_findCachedViewById = _$_findCachedViewById(2131369799);
        n.LIZIZ(_$_findCachedViewById, "");
        _$_findCachedViewById.setVisibility(0);
        OIZ _$_findCachedViewById2 = _$_findCachedViewById(2131369799);
        n.LIZIZ(_$_findCachedViewById2, "");
        _$_findCachedViewById2.setChecked(LIZJ2);
        _$_findCachedViewById(2131369799).setOnClickListener(new AnonymousClass3FS(this));
        C16832uR r2 = new C16832uR();
        String string = getString(2131832258);
        n.LIZIZ(string, "");
        AnonymousClass367.LIZ(r2, string, (Activity) this);
        ((C30953c7) _$_findCachedViewById(2131371289)).setNavActions(r2);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.kids.setting.items.security.KidsSecurityActivity", "onCreate", false);
    }
}
