导航菜单

页面标题

页面副标题

Cashalo v2.25.0.0 - ResetPasswordActivity.java 源代码

正在查看: Cashalo v2.25.0.0 应用的 ResetPasswordActivity.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.ResetPasswordPresenter;
import finance.empower.android.kotlin.extensions.content.Internals;
import finance.empower.android.view.Presenter;
import javax.inject.Inject;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\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 \u001a2\u00020\u00012\u00020\u0002:\u0001\u001aB\u000f\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0012\u0010\u0013\u001a\u00020\u00142\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0014J\b\u0010\u0017\u001a\u00020\u0014H\u0014J\b\u0010\u0018\u001a\u00020\u0014H\u0014J\u0016\u0010\u0019\u001a\u00020\u00142\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00120\u0011H\u0016R\u0014\u0010\u0003\u001a\u00020\u0004X\u0094\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R$\u0010\n\u001a\u00020\t2\u0006\u0010\b\u001a\u00020\t@GX\u0086.¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000eR\u001a\u0010\u000f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00120\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001b"}, d2 = {"Lfinance/empower/android/app/password/ResetPasswordActivity;", "Lfinance/empower/android/app/BaseComponentActivity;", "Lfinance/empower/android/app/password/ResetPasswordPresenter$ViewContract;", "pageName", "", "(Ljava/lang/String;)V", "getPageName", "()Ljava/lang/String;", "<set-?>", "Lfinance/empower/android/app/password/ResetPasswordPresenter;", "presenter", "getPresenter", "()Lfinance/empower/android/app/password/ResetPasswordPresenter;", "setPresenter", "(Lfinance/empower/android/app/password/ResetPasswordPresenter;)V", "viewState", "Landroidx/compose/runtime/MutableState;", "Lfinance/empower/android/view/Presenter$LoadingViewState;", "Lfinance/empower/android/app/password/ResetPasswordPresenter$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 ResetPasswordActivity extends BaseComponentActivity implements ResetPasswordPresenter.ViewContract {
    private final String pageName;
    public ResetPasswordPresenter presenter;
    private final MutableState<Presenter.LoadingViewState<ResetPasswordPresenter.ViewContract.Content>> viewState;

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

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

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

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

    public ResetPasswordActivity(String str) {
        Intrinsics.checkNotNullParameter(str, "pageName");
        this.pageName = str;
        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\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\u0007"}, d2 = {"Lfinance/empower/android/app/password/ResetPasswordActivity$Companion;", "", "()V", "newIntent", "Landroid/content/Intent;", "context", "Landroid/content/Context;", "empower-app_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
    public static final class Companion {
        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public final Intent newIntent(Context context) {
            Intrinsics.checkNotNullParameter(context, "context");
            return Internals.createIntent(context, ResetPasswordActivity.class, new Pair[0]);
        }
    }

    public final ResetPasswordPresenter getPresenter() {
        ResetPasswordPresenter resetPasswordPresenter = this.presenter;
        if (resetPasswordPresenter != null) {
            return resetPasswordPresenter;
        }
        Intrinsics.throwUninitializedPropertyAccessException("presenter");
        return null;
    }

    @Inject
    public final void setPresenter(ResetPasswordPresenter resetPasswordPresenter) {
        Intrinsics.checkNotNullParameter(resetPasswordPresenter, "<set-?>");
        this.presenter = resetPasswordPresenter;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ComponentActivityKt.setContent$default((ComponentActivity) this, (CompositionContext) null, ComposableLambdaKt.composableLambdaInstance(1697475776, 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(1697475776, i, -1, "finance.empower.android.app.password.ResetPasswordActivity.onCreate.<anonymous> (ResetPasswordActivity.kt:66)");
                }
                ResetPasswordActivity resetPasswordActivity = ResetPasswordActivity.this;
                ComposerKt.sourceInformationMarkerStart(composer, -492369756, "CC(remember):Composables.kt#9igjgp");
                Object rememberedValue = composer.rememberedValue();
                if (rememberedValue == Composer.Companion.getEmpty()) {
                    rememberedValue = resetPasswordActivity.viewState;
                    composer.updateRememberedValue(rememberedValue);
                }
                ComposerKt.sourceInformationMarkerEnd(composer);
                ResetPasswordActivityKt.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<ResetPasswordPresenter.ViewContract.Content> viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        this.viewState.setValue(viewState);
    }
}