package com.ss.android.ugc.aweme.account.login.v2.ui;

import X.0Bs;
import X.0Bv;
import X.0Bx;
import X.0By;
import X.1hU;
import X.2GD;
import X.2Pr;
import X.3QV;
import X.44L;
import X.44U;
import X.46i;
import X.4EW;
import X.4FQ;
import X.8QU;
import X.8gF;
import X.C2053Rs1;
import X.C2144RtU;
import X.C2162Rtm;
import X.C2219Ruh;
import X.C2312RwC;
import X.C2345Rwj;
import X.C2352Rwq;
import X.C2357Rwv;
import X.C2369Rx7;
import X.C2406Rxi;
import X.C2409Rxl;
import X.C2418Rxu;
import X.C2425Ry1;
import X.C2463Ryd;
import X.C2469Ryj;
import X.C2518RzW;
import X.C2576S1c;
import X.C3829SfZ;
import X.DyH;
import X.Ls2;
import X.M12;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.text.TextUtils;
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.IAccountUserService;
import com.ss.android.ugc.aweme.account.login.v2.base.ActionResultModel;
import com.ss.android.ugc.aweme.account.login.v2.base.BaseAccountFlowFragment;
import com.ss.android.ugc.aweme.account.login.v2.ui.fragments.PhoneEmailLoginFragment;
import java.io.Serializable;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Objects;
import kotlin.h.b.n;

public final class SignUpOrLoginActivity extends C2463Ryd implements C2406Rxi {
    public static final HashSet<Integer> LJI = 8QU.LIZJ(new Integer[]{2013, 1039});
    public static final HashSet<Integer> LJII = 8QU.LIZJ(new Integer[]{1051, 1031, 17, 1049, 1047, 1383, 2017});
    public static final C2357Rwv LJIIIIZZ = new C2357Rwv((byte) 0);
    public 44L LIZ;
    public Integer LIZJ;
    public Dialog LIZLLL;
    public Dialog LJ;
    public Dialog LJFF;
    public C2162Rtm LJIIIZ = C2162Rtm.PHONE_EMAIL_LOGIN;
    public C2162Rtm LJIIJ = C2162Rtm.NONE;
    public boolean LJIIJJI;
    public HashMap LJIIL;

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

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

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

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

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

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

    /* JADX WARNING: type inference failed for: r2v0, types: [X.Ryd, android.app.Activity, com.ss.android.ugc.aweme.account.login.v2.ui.SignUpOrLoginActivity] */
    public final void onDestroy() {
        8gF.LJ(this);
        C2369Rx7.LIZIZ(this);
        DyH.LIZ.erase("use_current_user_info");
        super.onDestroy();
        C2345Rwj.LIZ();
    }

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

    static {
        Covode.recordClassIndex(51756);
    }

    public final void finish() {
        Bundle LIZ2;
        C2425Ry1 LJIIIZ2;
        super.finish();
        44U.LIZIZ = false;
        int i = C2144RtU.LIZ[this.LJIIIZ.ordinal()];
        if (i == 1) {
            C2469Ryj.LIZ(15, 1, (Object) "");
        } else if (i != 2 && i != 3) {
        } else {
            if (this.LJIIJ == C2162Rtm.NONE) {
                if (this.LJIIJJI) {
                    C2369Rx7.LIZ(11);
                }
            } else if ((this.LJIIJ == C2162Rtm.INPUT_PHONE_LOGIN || this.LJIIJ == C2162Rtm.INPUT_EMAIL_LOGIN) && (LIZ2 = LIZ(getIntent())) != null && !LIZ2.getBoolean("has_callBack", true)) {
                BaseAccountFlowFragment LJ2 = LJ();
                if (!(LJ2 instanceof PhoneEmailLoginFragment)) {
                    LJ2 = null;
                }
                PhoneEmailLoginFragment phoneEmailLoginFragment = (PhoneEmailLoginFragment) LJ2;
                if (phoneEmailLoginFragment != null) {
                    if (phoneEmailLoginFragment.LIZIZ == 0) {
                        LJIIIZ2 = phoneEmailLoginFragment.LJII();
                    } else {
                        LJIIIZ2 = phoneEmailLoginFragment.LJIIIZ();
                    }
                    C2418Rxu rxu = LJIIIZ2.LIZ;
                    Objects.requireNonNull(rxu, "null cannot be cast to non-null type com.ss.android.ugc.aweme.account.login.NeedCancelThisLoginMethod");
                    if (rxu.LJ() && !C2469Ryj.LIZLLL()) {
                        C2469Ryj.LJI().retryLogin();
                        return;
                    }
                }
                C2469Ryj.LIZ(7, 4, "");
                if (!this.LJIIJJI) {
                    C2469Ryj.LIZ(1, 2, (Object) "");
                }
            }
        }
    }

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

    public final void LIZ(int i) {
        if (i == 9) {
            finish();
        }
    }

    public final void onRestoreInstanceState(Bundle bundle) {
        M12.LIZ(bundle);
        super.onRestoreInstanceState(bundle);
        Serializable serializable = bundle.getSerializable("age_gate_response");
        if (!(serializable instanceof 44L)) {
            serializable = null;
        }
        this.LIZ = (44L) serializable;
    }

    private final void LIZJ(Bundle bundle) {
        IAccountUserService LJFF2 = 46i.LJFF();
        n.LIZIZ(LJFF2, "");
        if (LJFF2.getCurUser().notifyPrivatePolicy) {
            IAccountUserService LJFF3 = 46i.LJFF();
            n.LIZIZ(LJFF3, "");
            if (LJFF3.isNewUser() && !bundle.getBoolean("is_from_new_user_journey", false)) {
                bundle.putInt("next_page", C2162Rtm.PRIVATE_ACCOUNT_TIPS.getValue());
                C2463Ryd.LIZ(this, C2219Ruh.LIZ.LIZ(C2162Rtm.PRIVATE_ACCOUNT_TIPS), bundle);
                return;
            }
        }
        super.finish();
    }

    public final void LIZIZ(Bundle bundle) {
        this.LJIIJJI = true;
        BaseAccountFlowFragment LJ2 = LJ();
        if (bundle == null) {
            bundle = new Bundle();
        }
        44L r1 = this.LIZ;
        if (r1 != null) {
            bundle.putSerializable("age_gate_response", r1);
        }
        if (!TextUtils.isEmpty(C2409Rxl.LIZIZ)) {
            bundle.putString("enter_from", C2409Rxl.LIZIZ);
        }
        if (!TextUtils.isEmpty(C2409Rxl.LIZ)) {
            bundle.putString("enter_method", C2409Rxl.LIZ);
        }
        if (C2469Ryj.LIZ()) {
            bundle.putBoolean("only_login", true);
        }
        Bundle LIZ2 = LIZ(getIntent());
        if (LIZ2 != null) {
            bundle.putAll(LIZ2);
        }
        Integer num = this.LIZJ;
        if (num != null) {
            bundle.putInt("kr_marketing_notification_operation", num.intValue());
        }
        if (LJ2 != null) {
            LJ2.a_(1);
        }
        C2518RzW.LIZ(bundle, new C2053Rs1(this, LJ2, bundle));
    }

    /* JADX WARNING: type inference failed for: r7v0, types: [X.Ryd, X.SNU, android.app.Activity, com.ss.android.ugc.aweme.account.login.v2.ui.SignUpOrLoginActivity] */
    public final void onCreate(Bundle bundle) {
        8gF.LIZ(this, bundle);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.account.login.v2.ui.SignUpOrLoginActivity", "onCreate", true);
        activityConfiguration(C2576S1c.LIZ);
        super.onCreate(bundle);
        C2369Rx7.LIZ((C2406Rxi) this);
        this.LJIIIZ = C2162Rtm.Companion.LIZ(getIntent().getIntExtra("next_page", C2162Rtm.PHONE_EMAIL_LOGIN.getValue()));
        this.LJIIJ = C2162Rtm.Companion.LIZ(getIntent().getIntExtra("child_page", C2162Rtm.NONE.getValue()));
        if (bundle == null) {
            0Bx LIZ2 = 0By.LIZ(this, (0Bv) null);
            if (2GD.LIZ) {
                0Bs.LIZ(LIZ2, this);
            }
            1hU<Bundle> r5 = LIZ2.LIZ(ActionResultModel.class).LIZ;
            Bundle LIZ3 = LIZ(getIntent());
            if (LIZ3 == null) {
                LIZ3 = new Bundle();
            }
            LIZ3.putString("enter_from", LJFF());
            LIZ3.putString("enter_method", LJI());
            LIZ3.putString("enter_type", LJII());
            LIZ3.putInt("next_page", this.LJIIIZ.getValue());
            r5.postValue(LIZ3);
        }
        C2345Rwj.LIZ().LIZ(C2352Rwq.LIZ);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.account.login.v2.ui.SignUpOrLoginActivity", "onCreate", false);
    }

    /* JADX WARNING: type inference failed for: r1v3, types: [android.content.Context] */
    /* JADX WARNING: type inference failed for: r4v1, types: [android.content.Context] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void LIZ(android.os.Bundle r13) {
        /*
            r12 = this;
            android.os.Bundle r3 = new android.os.Bundle
            r3.<init>(r13)
            X.Rtp r1 = X.C2162Rtm.Companion
            X.Rtm r0 = X.C2162Rtm.PHONE_EMAIL_SIGN_UP
            int r0 = r0.getValue()
            java.lang.String r4 = "next_page"
            int r0 = r3.getInt(r4, r0)
            X.Rtm r1 = r1.LIZ(r0)
            int[] r2 = X.C2144RtU.LIZIZ
            int r0 = r1.ordinal()
            r6 = r2[r0]
            r5 = 1
            if (r6 == r5) goto L_0x0223
            r0 = 2
            if (r6 == r0) goto L_0x0202
            r0 = 3
            java.lang.String r9 = "email_signup"
            java.lang.String r8 = "previous_page"
            java.lang.String r10 = "phone_signup"
            java.lang.String r2 = "current_page"
            r7 = 0
            if (r6 == r0) goto L_0x014c
            X.Rtm r0 = X.C2162Rtm.NONE
            int r0 = r0.getValue()
            int r6 = r3.getInt(r2, r0)
            r3.putInt(r8, r6)
            X.Rtm r0 = X.C2162Rtm.PHONE_EMAIL_SIGN_UP
            if (r1 != r0) goto L_0x0149
            r0 = -1
            if (r6 != r0) goto L_0x0149
            X.DLr r0 = X.DLq.LIZLLL
            boolean r0 = r0.LIZ()
            if (r0 != 0) goto L_0x0149
            r11 = 1
        L_0x004e:
            java.lang.String r0 = "is_multi_account"
            boolean r0 = r3.getBoolean(r0, r7)
            if (r0 == 0) goto L_0x0146
            X.Dyq r0 = X.DyH.LIZIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x0146
            r8 = 1
        L_0x005f:
            if (r11 == 0) goto L_0x0128
            if (r8 != 0) goto L_0x0128
            com.ss.android.ugc.aweme.compliance.api.services.agegate.IAgeGateService r0 = com.ss.android.ugc.aweme.compliance.api.a.LJII()
            boolean r0 = r0.LJ()
            if (r0 == 0) goto L_0x0128
            X.Rtm r1 = X.C2162Rtm.AGE_GATE_SIGN_UP
        L_0x006f:
            int r0 = r1.getValue()
            r3.putInt(r2, r0)
            r3.remove(r4)
            X.Rtm r0 = X.C2162Rtm.THIRD_PARTY_AGE_GATE
            java.lang.String r11 = "platform"
            if (r1 != r0) goto L_0x008a
            android.content.Intent r0 = r12.getIntent()
            java.lang.String r0 = LIZ((android.content.Intent) r0, (java.lang.String) r11)
            r3.putString(r11, r0)
        L_0x008a:
            java.lang.String r0 = "is_multi_account_same_user"
            r3.putBoolean(r0, r8)
            java.lang.String r2 = "cancel_animation"
            boolean r0 = r3.getBoolean(r2)
            if (r0 == 0) goto L_0x00a3
            r3.remove(r2)
            com.ss.android.ugc.aweme.account.login.v2.base.BaseAccountFlowFragment r0 = r12.LJ()
            if (r0 == 0) goto L_0x00a3
            r0.a_(r7)
        L_0x00a3:
            X.Rtm r0 = X.C2162Rtm.THIRD_PARTY_AGE_GATE
            if (r1 == r0) goto L_0x00b3
            X.Rtm r0 = X.C2162Rtm.AGE_GATE_SIGN_UP
            if (r1 == r0) goto L_0x00b3
            X.Rtm r0 = X.C2162Rtm.AGE_GATE_LOGIN
            if (r1 == r0) goto L_0x00b3
            X.Rtm r0 = X.C2162Rtm.AGE_GATE_PHONE_RECYCLE_PROCESS_LOGIN
            if (r1 != r0) goto L_0x017c
        L_0x00b3:
            com.ss.android.ugc.aweme.compliance.api.services.agegate.IAgeGateService r6 = com.ss.android.ugc.aweme.compliance.business.serviceimpl.AgeGateServiceImpl.LJIIIZ()
            r4 = r12
            java.util.HashMap r2 = new java.util.HashMap
            r2.<init>()
            java.lang.String r7 = "enter_method"
            java.lang.String r0 = r3.getString(r7)
            java.lang.String r8 = ""
            if (r0 != 0) goto L_0x00c8
            r0 = r8
        L_0x00c8:
            r2.put(r7, r0)
            java.lang.String r7 = "enter_from"
            java.lang.String r0 = r3.getString(r7)
            if (r0 != 0) goto L_0x00d4
            r0 = r8
        L_0x00d4:
            r2.put(r7, r0)
            X.Rtm r0 = X.C2162Rtm.THIRD_PARTY_AGE_GATE
            if (r1 != r0) goto L_0x010c
            java.lang.String r0 = r3.getString(r11)
            if (r0 != 0) goto L_0x010a
        L_0x00e1:
            r2.put(r11, r8)
            java.lang.String r7 = "user_type"
            java.lang.String r0 = "new"
            r2.put(r7, r0)
            X.RtK r7 = new X.RtK
            r7.<init>(r12, r3, r1)
            boolean r0 = r3.getBoolean(r10)
            if (r0 == r5) goto L_0x00fc
            boolean r0 = r3.getBoolean(r9)
            if (r0 != r5) goto L_0x0108
        L_0x00fc:
            X.DLr r0 = X.DLq.LIZLLL
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x0108
        L_0x0104:
            r6.LIZ(r4, r2, r7, r5)
            return
        L_0x0108:
            r5 = 0
            goto L_0x0104
        L_0x010a:
            r8 = r0
            goto L_0x00e1
        L_0x010c:
            X.Rtm r0 = X.C2162Rtm.AGE_GATE_LOGIN
            if (r1 != r0) goto L_0x0113
            java.lang.String r8 = "sms_verification"
            goto L_0x00e1
        L_0x0113:
            boolean r0 = r3.getBoolean(r10)
            if (r0 != r5) goto L_0x011c
            java.lang.String r8 = "phone_sign_up"
            goto L_0x00e1
        L_0x011c:
            boolean r0 = r3.getBoolean(r9)
            if (r0 != r5) goto L_0x0125
            java.lang.String r8 = "email"
            goto L_0x00e1
        L_0x0125:
            java.lang.String r8 = "phone"
            goto L_0x00e1
        L_0x0128:
            boolean r0 = X.MCo.LIZ()
            if (r0 == 0) goto L_0x006f
            X.Rtm r0 = X.C2162Rtm.PHONE_EMAIL_SIGN_UP
            if (r1 != r0) goto L_0x006f
            X.Rtm r0 = X.C2162Rtm.NONE
            int r0 = r0.getValue()
            if (r6 == r0) goto L_0x0142
            X.Rtm r0 = X.C2162Rtm.AGE_GATE_SIGN_UP
            int r0 = r0.getValue()
            if (r6 != r0) goto L_0x006f
        L_0x0142:
            X.Rtm r1 = X.C2162Rtm.TERMS_CONSENT_SIGN_UP
            goto L_0x006f
        L_0x0146:
            r8 = 0
            goto L_0x005f
        L_0x0149:
            r11 = 0
            goto L_0x004e
        L_0x014c:
            boolean r0 = r3.getBoolean(r10, r7)
            if (r0 == 0) goto L_0x01a6
            X.Rtm r0 = X.C2162Rtm.NONE
            int r0 = r0.getValue()
            int r1 = r3.getInt(r8, r0)
            X.Rtm r0 = X.C2162Rtm.INPUT_PHONE_SIGN_UP
            int r0 = r0.getValue()
            if (r1 == r0) goto L_0x016c
            X.Rtm r0 = X.C2162Rtm.AGE_GATE_POST_PHONE_SIGNUP
            int r0 = r0.getValue()
            if (r1 != r0) goto L_0x0186
        L_0x016c:
            X.Rtm r1 = X.C2162Rtm.CREATE_PASSWORD_FOR_PHONE
            java.lang.String r0 = "show_skip"
            r3.putBoolean(r0, r5)
            X.Rtm r0 = X.C2162Rtm.CREATE_PASSWORD_FOR_PHONE
            int r0 = r0.getValue()
            r3.putInt(r2, r0)
        L_0x017c:
            X.Ruh r0 = X.C2219Ruh.LIZ
            com.ss.android.ugc.aweme.account.login.v2.base.BaseAccountFlowFragment r0 = r0.LIZ(r1)
            X.C2463Ryd.LIZ(r12, r0, r3)
            return
        L_0x0186:
            X.Rtm r0 = X.C2162Rtm.CREATE_PASSWORD_FOR_PHONE
            int r0 = r0.getValue()
            if (r1 != r0) goto L_0x01de
            X.Co5 r0 = X.Co5.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x019a
            r12.LIZJ(r3)
            return
        L_0x019a:
            X.Rtm r1 = X.C2162Rtm.CREATE_USERNAME
            X.Rtm r0 = X.C2162Rtm.CREATE_USERNAME
            int r0 = r0.getValue()
            r3.putInt(r4, r0)
            goto L_0x017c
        L_0x01a6:
            boolean r0 = r3.getBoolean(r9, r7)
            if (r0 == 0) goto L_0x01fe
            X.Rtm r0 = X.C2162Rtm.NONE
            int r0 = r0.getValue()
            int r1 = r3.getInt(r8, r0)
            X.Rtm r0 = X.C2162Rtm.INPUT_EMAIL_SIGN_UP
            int r0 = r0.getValue()
            if (r1 == r0) goto L_0x01c6
            X.Rtm r0 = X.C2162Rtm.AGE_GATE_POST_EMAIL_SIGNUP
            int r0 = r0.getValue()
            if (r1 != r0) goto L_0x01ee
        L_0x01c6:
            X.Co5 r0 = X.Co5.LIZ
            boolean r0 = r0.LIZ()
            if (r0 == 0) goto L_0x01d2
            r12.LIZJ(r3)
            return
        L_0x01d2:
            X.Rtm r1 = X.C2162Rtm.CREATE_USERNAME
            X.Rtm r0 = X.C2162Rtm.CREATE_USERNAME
            int r0 = r0.getValue()
            r3.putInt(r2, r0)
            goto L_0x017c
        L_0x01de:
            X.Rtm r0 = X.C2162Rtm.CREATE_USERNAME
            int r0 = r0.getValue()
            if (r1 != r0) goto L_0x01ea
            r12.LIZJ(r3)
            return
        L_0x01ea:
            super.finish()
            return
        L_0x01ee:
            X.Rtm r0 = X.C2162Rtm.CREATE_USERNAME
            int r0 = r0.getValue()
            if (r1 != r0) goto L_0x01fa
            r12.LIZJ(r3)
            return
        L_0x01fa:
            super.finish()
            return
        L_0x01fe:
            super.finish()
            return
        L_0x0202:
            r1 = r12
            java.lang.String r0 = "//account/ftc"
            com.bytedance.router.SmartRoute r2 = com.bytedance.router.SmartRouter.buildRoute((android.content.Context) r1, (java.lang.String) r0)
            X.Rtm r0 = X.C2162Rtm.FTC_CREATE_ACCOUNT
            int r0 = r0.getValue()
            r2.withParam((java.lang.String) r4, (int) r0)
            X.44L r1 = r12.LIZ
            java.lang.String r0 = "age_gate_response"
            r2.withParam((java.lang.String) r0, (java.io.Serializable) r1)
            r2.withParam((android.os.Bundle) r3)
            r2.open()
            r12.finish()
            return
        L_0x0223:
            java.lang.String r2 = "result_code"
            r1 = -99988(0xfffffffffffe796c, float:NaN)
            int r0 = r3.getInt(r2, r1)
            if (r0 == r1) goto L_0x0235
            int r0 = r3.getInt(r2, r1)
            r12.setResult(r0)
        L_0x0235:
            r12.finish()
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.account.login.v2.ui.SignUpOrLoginActivity.LIZ(android.os.Bundle):void");
    }

    public static String LIZ(Intent intent, String str) {
        try {
            return intent.getStringExtra(str);
        } catch (Exception unused) {
            return null;
        }
    }

    public final void onSaveInstanceState(Bundle bundle, PersistableBundle persistableBundle) {
        M12.LIZ(bundle, persistableBundle);
        super.onSaveInstanceState(bundle, persistableBundle);
        44L r1 = this.LIZ;
        if (r1 != null) {
            bundle.putSerializable("age_gate_response", r1);
        }
    }

    public final void LIZ(String str, Ls2<2Pr> ls2) {
        Activity LJIIIZ2 = C3829SfZ.LJIJ.LJIIIZ();
        if (LJIIIZ2 != null) {
            4EW r1 = new 4EW(LJIIIZ2);
            r1.LIZJ(str);
            r1.LIZ(false);
            3QV.LIZ(r1, new C2312RwC(this, str, ls2));
            4FQ.LIZ(r1.LIZ().LIZJ());
        }
    }

    public final void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
        C2345Rwj.LIZ();
    }
}
