package com.ss.android.ugc.aweme.setting.ui;

import X.7he;
import X.8gF;
import X.C32773f3;
import X.C38323o0;
import X.C38353o3;
import X.C464542r;
import X.Crj;
import X.SNU;
import android.util.SparseArray;
import android.view.View;
import com.bytedance.apm.agent.v2.instrumentation.ActivityAgent;
import com.bytedance.covode.number.Covode;
import com.bytedance.sysoptimizer.EnterTransitionCrashOptimizer;

public final class SettingAdsActivity extends SNU {
    public static final C38353o3 LIZ = new C38353o3((byte) 0);
    public C32773f3 LIZIZ;
    public C32773f3 LIZJ;
    public C32773f3 LIZLLL;
    public final Crj LJ = 7he.LIZ(new C38323o0(this));
    public SparseArray LJFF;

    static {
        Covode.recordClassIndex(106384);
    }

    private final C464542r LIZ() {
        return (C464542r) this.LJ.getValue();
    }

    public final void _$_clearFindViewByIdCache() {
        SparseArray sparseArray = this.LJFF;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

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

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

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

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

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

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

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.setting.ui.SettingAdsActivity, X.SNU, android.app.Activity] */
    public final void onStop() {
        8gF.LIZLLL(this);
        SettingAdsActivity.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: r0v1, types: [X.4Qh, com.ss.android.ugc.aweme.setting.ui.SettingAdsActivity, X.1oX, X.SNU, android.app.Activity] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* JADX WARNING: Unknown variable types count: 1 */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onCreate(android.os.Bundle r22) {
        /*
            r21 = this;
            r0 = r21
            r0 = r0
            r2 = r22
            X.8gF.LIZ(r0, r2)
            java.lang.String r6 = "com.ss.android.ugc.aweme.setting.ui.SettingAdsActivity"
            java.lang.String r5 = "onCreate"
            r1 = 1
            com.bytedance.apm.agent.v2.instrumentation.ActivityAgent.onTrace(r6, r5, r1)
            X.3nz r1 = X.C38313nz.LIZ
            r0.activityConfiguration(r1)
            com.ss.android.ugc.aweme.setting.ui.SettingAdsActivity.super.onCreate(r2)
            r1 = 10
            r0.supportRequestWindowFeature(r1)
            r1 = 2131561293(0x7f0d0b4d, float:1.8747982E38)
            r0.setContentView(r1)
            com.ss.android.ugc.aweme.profile.model.User r1 = X.ESC.LIZJ()
            if (r1 != 0) goto L_0x002e
        L_0x0029:
            r0 = 0
            com.bytedance.apm.agent.v2.instrumentation.ActivityAgent.onTrace(r6, r5, r0)
            return
        L_0x002e:
            r2 = 2131371262(0x7f0a24fe, float:1.8362554E38)
            android.view.View r3 = r0._$_findCachedViewById(r2)
            X.OQL r3 = (X.OQL) r3
            X.3o2 r2 = new X.3o2
            r2.<init>(r0)
            r3.setOnTitleBarClickListener(r2)
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r8 = new X.42f
            r4 = 2131826825(0x7f111889, float:1.9286545E38)
            java.lang.String r12 = r0.getString(r4)
            java.lang.String r4 = ""
            kotlin.h.b.n.LIZIZ(r12, r4)
            r10 = 0
            r11 = 0
            r13 = 0
            r14 = 0
            r15 = 0
            r16 = 0
            r7 = 0
            r18 = 0
            r19 = 0
            r7 = 8182(0x1ff6, float:1.1465E-41)
            java.lang.String r9 = ""
            r7 = r8
            r17 = 0
            r20 = 8182(0x1ff6, float:1.1465E-41)
            r8.<init>(r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20)
            r2.<init>(r7)
            r0.LIZIZ = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r8 = new X.42f
            r7 = 2131821316(0x7f110304, float:1.9275372E38)
            java.lang.String r12 = r0.getString(r7)
            kotlin.h.b.n.LIZIZ(r12, r4)
            r16 = 0
            r7 = 0
            r18 = 0
            java.lang.String r9 = ""
            r7 = r8
            r17 = 0
            r20 = 8182(0x1ff6, float:1.1465E-41)
            r8.<init>(r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20)
            r2.<init>(r7)
            r0.LIZJ = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            X.3f3 r3 = r0.LIZIZ
            if (r3 != 0) goto L_0x00a3
            kotlin.h.b.n.LIZ(r4)
        L_0x00a3:
            X.3o5 r2 = new X.3o5
            r2.<init>(r0, r1)
            r3.LIZ(r2)
            X.3f3 r3 = r0.LIZJ
            if (r3 != 0) goto L_0x00b2
            kotlin.h.b.n.LIZ(r4)
        L_0x00b2:
            X.3o7 r2 = new X.3o7
            r2.<init>(r0, r1)
            r3.LIZ(r2)
            X.3na r1 = X.C38063na.LIZ
            boolean r1 = r1.LIZ()
            if (r1 == 0) goto L_0x0029
            com.ss.android.ugc.aweme.compliance.api.services.gdpr.IGDPRService r1 = com.ss.android.ugc.aweme.compliance.api.a.LJI()
            boolean r1 = r1.LIZ()
            if (r1 == 0) goto L_0x0029
            X.3f3 r2 = new X.3f3
            X.42f r7 = new X.42f
            r1 = 2131832156(0x7f112d5c, float:1.9297358E38)
            java.lang.String r11 = r0.getString(r1)
            kotlin.h.b.n.LIZIZ(r11, r4)
            X.3ny r1 = new X.3ny
            r1.<init>(r0)
            r9 = 0
            r10 = 0
            r12 = 0
            r13 = 0
            r14 = 0
            r15 = 0
            r16 = 0
            r18 = 0
            r3 = 6134(0x17f6, float:8.596E-42)
            java.lang.String r8 = ""
            r3 = r7
            r19 = 6134(0x17f6, float:8.596E-42)
            r17 = r1
            r7.<init>(r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19)
            r2.<init>(r3)
            r0.LIZLLL = r2
            X.42r r1 = r0.LIZ()
            X.3f3 r0 = r0.LIZLLL
            if (r0 != 0) goto L_0x0105
            kotlin.h.b.n.LIZ(r4)
        L_0x0105:
            r1.LIZ((X.AnonymousClass43O<?>) r0)
            goto L_0x0029
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.setting.ui.SettingAdsActivity.onCreate(android.os.Bundle):void");
    }
}
