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

import X.070;
import X.8gF;
import X.AnonymousClass4TL;
import X.C24223Fe;
import X.C45333zJ;
import X.C45363zM;
import X.C45493zZ;
import X.C45513zb;
import android.content.Intent;
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.compliance.protection.timelock.ui.fragment.TimeUnlockFragment;

public class TimeUnlockActivity extends C24223Fe {
    public static String LIZIZ = "UNLOCK";

    public final int LIZ() {
        return 2131559406;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity, X.SNU, android.app.Activity] */
    public void onDestroy() {
        8gF.LJ(this);
        TimeUnlockActivity.super.onDestroy();
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity, X.SNU, android.app.Activity] */
    public void onPause() {
        8gF.LIZJ(this);
        TimeUnlockActivity.super.onPause();
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity, X.SNU, android.app.Activity] */
    public void onResume() {
        8gF.LIZIZ(this);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity", "onResume", true);
        TimeUnlockActivity.super.onResume();
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity", "onResume", false);
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity, X.SNU, android.app.Activity] */
    public void onStart() {
        8gF.LIZ(this);
        TimeUnlockActivity.super.onStart();
    }

    public void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity", "onWindowFocusChanged", true);
        TimeUnlockActivity.super.onWindowFocusChanged(z);
    }

    static {
        Covode.recordClassIndex(62133);
    }

    public void onBackPressed() {
        if (C45493zZ.LIZIZ() != null) {
            super.onBackPressed();
        }
    }

    public final void LIZIZ() {
        View findViewById = findViewById(2131365158);
        findViewById.setBackgroundColor(070.LIZJ(findViewById.getContext(), 2131099659));
        this.LIZ = C45333zJ.LIZ(TimeUnlockFragment.class).LIZ();
        this.LIZ.setArguments(LIZ(getIntent()));
        C45513zb<Boolean> LIZIZ2 = C45493zZ.LIZIZ();
        if (LIZIZ2 != null) {
            LIZIZ2.LIZ(this.LIZ);
        }
        LIZ(this.LIZ);
    }

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

    public static Bundle LIZ(Intent intent) {
        try {
            return intent.getExtras();
        } catch (Exception unused) {
            return null;
        }
    }

    /* JADX WARNING: type inference failed for: r5v0, types: [com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity, X.3Fe, X.SNU, android.app.Activity] */
    public void onCreate(Bundle bundle) {
        8gF.LIZ(this, bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity", "onCreate", true);
        AnonymousClass4TL r2 = new AnonymousClass4TL((byte) 0);
        r2.LIZ = true;
        r2.LJII = 2131100281;
        activityConfiguration(new C45363zM(r2));
        super.onCreate(bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.compliance.protection.timelock.ui.TimeUnlockActivity", "onCreate", false);
    }
}
