导航菜单

页面标题

页面副标题

Cashalo v2.25.0.0 - SetNewPasswordActivity.java 源代码

正在查看: Cashalo v2.25.0.0 应用的 SetNewPasswordActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package finance.empower.android.app.password;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.activity.compose.ComponentActivityKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionContext;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.SnapshotMutationPolicy;
import androidx.compose.runtime.SnapshotStateKt;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import finance.empower.android.app.BaseComponentActivity;
import finance.empower.android.app.password.SetNewPasswordPresenter;
import finance.empower.android.kotlin.extensions.content.Internals;
import finance.empower.android.view.Presenter;
import javax.inject.Inject;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0007\u0018\u0000 #2\u00020\u00012\u00020\u0002:\u0001#B\u000f\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0012\u0010\u001c\u001a\u00020\u001d2\b\u0010\u001e\u001a\u0004\u0018\u00010\u001fH\u0014J\b\u0010 \u001a\u00020\u001dH\u0014J\b\u0010!\u001a\u00020\u001dH\u0014J\u0016\u0010\"\u001a\u00020\u001d2\f\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u001b0\u001aH\u0016R\u001d\u0010\u0006\u001a\u0004\u0018\u00010\u00048BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u0007\u0010\bR\u0014\u0010\u0003\u001a\u00020\u0004X\u0094\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\bR\u001b\u0010\f\u001a\u00020\r8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0010\u0010\n\u001a\u0004\b\u000e\u0010\u000fR$\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0011\u001a\u00020\u0012@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\u001a\u0010\u0018\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001b0\u001a0\u0019X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006$"}, d2 = {"Lfinance/empower/android/app/password/SetNewPasswordActivity;", "Lfinance/empower/android/app/BaseComponentActivity;", "Lfinance/empower/android/app/password/SetNewPasswordPresenter$ViewContract;", "pageName", "", "(Ljava/lang/String;)V", "code", "getCode", "()Ljava/lang/String;", "code$delegate", "Lkotlin/Lazy;", "getPageName", "presenter", "Lfinance/empower/android/app/password/SetNewPasswordPresenter;", "getPresenter", "()Lfinance/empower/android/app/password/SetNewPasswordPresenter;", "presenter$delegate", "<set-?>", "Lfinance/empower/android/app/password/SetNewPasswordPresenter$Factory;", "presenterFactory", "getPresenterFactory", "()Lfinance/empower/android/app/password/SetNewPasswordPresenter$Factory;", "setPresenterFactory", "(Lfinance/empower/android/app/password/SetNewPasswordPresenter$Factory;)V", "viewState", "Landroidx/compose/runtime/MutableState;", "Lfinance/empower/android/view/Presenter$LoadingViewState;", "Lfinance/empower/android/app/password/SetNewPasswordPresenter$ViewContract$Content;", "onCreate", "", "savedInstanceState", "Landroid/os/Bundle;", "onStart", "onStop", "render", "Companion", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class SetNewPasswordActivity extends BaseComponentActivity implements SetNewPasswordPresenter.ViewContract {
    private static final String EXTRA_CODE = "finance.empower.278b5e0d-5ff7-4a8e-8942-8a3908766a44";

    private final Lazy code;
    private final String pageName;

    private final Lazy presenter;
    public SetNewPasswordPresenter.Factory presenterFactory;
    private final MutableState<Presenter.LoadingViewState<SetNewPasswordPresenter.ViewContract.Content>> viewState;

    public static final Companion INSTANCE = new Companion(null);
    public static final int $stable = 8;

    public SetNewPasswordActivity() {
        throw new UnsupportedOperationException("Method not decompiled: finance.empower.android.app.password.SetNewPasswordActivity.<init>():void");
    }

    public SetNewPasswordActivity(String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
        this((i & 1) != 0 ? "SetNewPasswordScreen" : str);
    }

    @Override
    protected String getPageName() {
        return this.pageName;
    }

    public SetNewPasswordActivity(String str) {
        Intrinsics.checkNotNullParameter(str, "pageName");
        this.pageName = str;
        this.code = LazyKt.lazy(new Function0<String>() {
            {
                super(0);
            }

            public final String invoke() {
                return SetNewPasswordActivity.this.getIntent().getStringExtra("finance.empower.278b5e0d-5ff7-4a8e-8942-8a3908766a44");
            }
        });
        this.presenter = LazyKt.lazy(new Function0<SetNewPasswordPresenter>() {
            {
                super(0);
            }

            public final SetNewPasswordPresenter m816invoke() {
                String code;
                SetNewPasswordPresenter.Factory presenterFactory = SetNewPasswordActivity.this.getPresenterFactory();
                code = SetNewPasswordActivity.this.getCode();
                Intrinsics.checkNotNull(code);
                return presenterFactory.create(code);
            }
        });
        Presenter.LoadingViewState.ContentWrapper contentWrapper = null;
        this.viewState = SnapshotStateKt.mutableStateOf$default(new Presenter.LoadingViewState.Loading.NonBlocking(contentWrapper, 1, contentWrapper), (SnapshotMutationPolicy) null, 2, (Object) null);
    }

    @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u001a\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\b2\n\b\u0002\u0010\t\u001a\u0004\u0018\u00010\u0004R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T¢\u0006\u0002\n\u0000¨\u0006\n"}, d2 = {"Lfinance/empower/android/app/password/SetNewPasswordActivity$Companion;", "", "()V", "EXTRA_CODE", "", "newIntent", "Landroid/content/Intent;", "context", "Landroid/content/Context;", "code", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
    public static final class Companion {
        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public static Intent newIntent$default(Companion companion, Context context, String str, int i, Object obj) {
            if ((i & 2) != 0) {
                str = null;
            }
            return companion.newIntent(context, str);
        }

        public final Intent newIntent(Context context, String code) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intent createIntent = Internals.createIntent(context, SetNewPasswordActivity.class, new Pair[0]);
            if (code != null) {
                createIntent.putExtra(SetNewPasswordActivity.EXTRA_CODE, code);
            }
            return createIntent;
        }
    }

    public final String getCode() {
        return (String) this.code.getValue();
    }

    public final SetNewPasswordPresenter.Factory getPresenterFactory() {
        SetNewPasswordPresenter.Factory factory = this.presenterFactory;
        if (factory != null) {
            return factory;
        }
        Intrinsics.throwUninitializedPropertyAccessException("presenterFactory");
        return null;
    }

    @Inject
    public final void setPresenterFactory(SetNewPasswordPresenter.Factory factory) {
        Intrinsics.checkNotNullParameter(factory, "<set-?>");
        this.presenterFactory = factory;
    }

    private final SetNewPasswordPresenter getPresenter() {
        return (SetNewPasswordPresenter) this.presenter.getValue();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ComponentActivityKt.setContent$default((ComponentActivity) this, (CompositionContext) null, ComposableLambdaKt.composableLambdaInstance(-635174282, true, new Function2<Composer, Integer, Unit>() {
            {
                super(2);
            }

            public Object invoke(Object obj, Object obj2) {
                invoke((Composer) obj, ((Number) obj2).intValue());
                return Unit.INSTANCE;
            }

            public final void invoke(Composer composer, int i) {
                if ((i & 11) == 2 && composer.getSkipping()) {
                    composer.skipToGroupEnd();
                    return;
                }
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventStart(-635174282, i, -1, "finance.empower.android.app.password.SetNewPasswordActivity.onCreate.<anonymous> (SetNewPasswordActivity.kt:80)");
                }
                SetNewPasswordActivity setNewPasswordActivity = SetNewPasswordActivity.this;
                ComposerKt.sourceInformationMarkerStart(composer, -492369756, "CC(remember):Composables.kt#9igjgp");
                Object rememberedValue = composer.rememberedValue();
                if (rememberedValue == Composer.Companion.getEmpty()) {
                    rememberedValue = setNewPasswordActivity.viewState;
                    composer.updateRememberedValue(rememberedValue);
                }
                ComposerKt.sourceInformationMarkerEnd(composer);
                SetNewPasswordActivityKt.Content((Presenter.LoadingViewState) ((MutableState) rememberedValue).getValue(), null, composer, 0, 2);
                if (ComposerKt.isTraceInProgress()) {
                    ComposerKt.traceEventEnd();
                }
            }
        }), 1, (Object) null);
    }

    @Override
    protected void onStart() {
        super.onStart();
        getPresenter().onStart();
    }

    @Override
    protected void onStop() {
        getPresenter().onStop();
        super.onStop();
    }

    @Override
    public void render(Presenter.LoadingViewState<SetNewPasswordPresenter.ViewContract.Content> viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        this.viewState.setValue(viewState);
    }
}