导航菜单

页面标题

页面副标题

Empower MX v1.29.4.340 - LockScreenActivity.java 源代码

正在查看: Empower MX v1.29.4.340 应用的 LockScreenActivity.java JAVA 源代码文件

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


package finance.empower.android.app.lockscreen;

import Jd.r;
import Ke.C0859m;
import Vd.n;
import Vd.p;
import ac.C0995g;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.LinearLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import finance.empower.android.app.lockscreen.LockScreenActivity;
import finance.empower.android.app.lockscreen.d;
import java.util.ArrayList;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import sf.l;
import sf.m;

@Metadata(d1 = {"\u0000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\b\b\u0007\u0018\u0000 52\u00020\u00012\u00020\u0002:\u00016B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u0019\u0010\b\u001a\u00020\u00072\b\u0010\u0006\u001a\u0004\u0018\u00010\u0005H\u0014¢\u0006\u0004\b\b\u0010\tJ\u000f\u0010\n\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\n\u0010\u0004J\u0017\u0010\r\u001a\u00020\u00072\u0006\u0010\f\u001a\u00020\u000bH\u0014¢\u0006\u0004\b\r\u0010\u000eJ\u000f\u0010\u000f\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u000f\u0010\u0004J!\u0010\u0015\u001a\u00020\u00142\u0006\u0010\u0011\u001a\u00020\u00102\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u000f\u0010\u0017\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\u0017\u0010\u0004J\u0017\u0010\u001a\u001a\u00020\u00072\u0006\u0010\u0019\u001a\u00020\u0018H\u0016¢\u0006\u0004\b\u001a\u0010\u001bR\u001b\u0010!\u001a\u00020\u001c8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 R*\u0010*\u001a\u00020\"2\u0006\u0010#\u001a\u00020\"8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b$\u0010%\u001a\u0004\b&\u0010'\"\u0004\b(\u0010)R\u001b\u0010.\u001a\u00020+8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0017\u0010\u001e\u001a\u0004\b,\u0010-R\u001c\u00104\u001a\u0004\u0018\u00010/8\u0014X\u0094\u0004¢\u0006\f\n\u0004\b0\u00101\u001a\u0004\b2\u00103¨\u00067"}, d2 = {"Lfinance/empower/android/app/lockscreen/LockScreenActivity;", "Lbc/m;", "Lfinance/empower/android/app/lockscreen/d$a;", "<init>", "()V", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "Landroid/content/Intent;", "intent", "onNewIntent", "(Landroid/content/Intent;)V", "onStop", "", "keyCode", "Landroid/view/KeyEvent;", "event", "", "onKeyUp", "(ILandroid/view/KeyEvent;)Z", "k0", "Lfinance/empower/android/app/lockscreen/d$a$a;", "viewState", "S1", "(Lfinance/empower/android/app/lockscreen/d$a$a;)V", "LJd/r;", "i0", "Lsf/l;", "N1", "()LJd/r;", "loadingDialog", "Lfinance/empower/android/app/lockscreen/d;", "value", "j0", "Lfinance/empower/android/app/lockscreen/d;", "O1", "()Lfinance/empower/android/app/lockscreen/d;", "T1", "(Lfinance/empower/android/app/lockscreen/d;)V", "presenter", "LKe/m;", "M1", "()LKe/m;", "binding", "", "l0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "m0", "a", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class LockScreenActivity extends a implements d.a {

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

    public d presenter;

    private final String pageName;

    private final l loadingDialog = m.a(new Function0() {
        @Override
        public final Object invoke() {
            Jd.r P1;
            P1 = LockScreenActivity.P1(LockScreenActivity.this);
            return P1;
        }
    });

    private final l binding = m.a(new Function0() {
        @Override
        public final Object invoke() {
            C0859m L1;
            L1 = LockScreenActivity.L1(LockScreenActivity.this);
            return L1;
        }
    });

    public static final class Companion {
        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public final Intent a(Context context) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intent addFlags = C0995g.a(context, LockScreenActivity.class, new Pair[0]).addFlags(131072);
            Intrinsics.checkNotNullExpressionValue(addFlags, "addFlags(...)");
            return addFlags;
        }

        private Companion() {
        }
    }

    public static final class b implements r.a {
        final r a;

        b(r rVar) {
            this.a = rVar;
        }

        @Override
        public void a(r dialog) {
            Intrinsics.checkNotNullParameter(dialog, "dialog");
            this.a.dismiss();
        }
    }

    public static final C0859m L1(LockScreenActivity lockScreenActivity) {
        return C0859m.c(lockScreenActivity.getLayoutInflater());
    }

    private final C0859m M1() {
        return (C0859m) this.binding.getValue();
    }

    private final r N1() {
        return (r) this.loadingDialog.getValue();
    }

    public static final r P1(LockScreenActivity lockScreenActivity) {
        r rVar = new r(lockScreenActivity, 0, 2, null);
        rVar.d(new b(rVar));
        return rVar;
    }

    public static final Unit Q1(LockScreenActivity lockScreenActivity, View it) {
        Intrinsics.checkNotNullParameter(it, "it");
        lockScreenActivity.O1().u();
        return Unit.a;
    }

    public static final Unit R1(LockScreenActivity lockScreenActivity, View it) {
        Intrinsics.checkNotNullParameter(it, "it");
        lockScreenActivity.O1().v();
        return Unit.a;
    }

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

    public final d O1() {
        d dVar = this.presenter;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.x("presenter");
        return null;
    }

    @Override
    public void E(d.a.AbstractC0381a viewState) {
        Intrinsics.checkNotNullParameter(viewState, "viewState");
        if (viewState instanceof d.a.AbstractC0381a.C0382a) {
            N1().dismiss();
        } else {
            if (!(viewState instanceof d.a.AbstractC0381a.b)) {
                throw new NoWhenBranchMatchedException();
            }
            N1().show();
        }
    }

    public final void T1(d dVar) {
        Intrinsics.checkNotNullParameter(dVar, "<set-?>");
        this.presenter = dVar;
    }

    @Override
    public void k0() {
        ArrayList parcelableArrayList;
        LinearLayout lockScreenBtnSection = M1().e;
        Intrinsics.checkNotNullExpressionValue(lockScreenBtnSection, "lockScreenBtnSection");
        n.c(lockScreenBtnSection);
        Bundle extras = getIntent().getExtras();
        if (extras != null && (parcelableArrayList = extras.getParcelableArrayList("finance.empower.4f93dee7-01d7-4365-b16c-d87a738ea010")) != null) {
            if (parcelableArrayList.isEmpty()) {
                parcelableArrayList = null;
            }
            if (parcelableArrayList != null) {
                startActivities((Intent[]) parcelableArrayList.toArray(new Intent[0]));
            }
        }
        finish();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        C0859m M1 = M1();
        setContentView(M1.getRoot());
        Window window = getWindow();
        Intrinsics.checkNotNullExpressionValue(window, "getWindow(...)");
        CoordinatorLayout root = M1.getRoot();
        Intrinsics.checkNotNullExpressionValue(root, "getRoot(...)");
        p.c(window, root, false, 2, null);
        Button btnUnlock = M1.c;
        Intrinsics.checkNotNullExpressionValue(btnUnlock, "btnUnlock");
        Wd.c.c(btnUnlock, new Function1() {
            @Override
            public final Object invoke(Object obj) {
                Unit Q1;
                Q1 = LockScreenActivity.Q1(LockScreenActivity.this, (View) obj);
                return Q1;
            }
        });
        Button btnLogOut = M1.b;
        Intrinsics.checkNotNullExpressionValue(btnLogOut, "btnLogOut");
        Wd.c.c(btnLogOut, new Function1() {
            @Override
            public final Object invoke(Object obj) {
                Unit R1;
                R1 = LockScreenActivity.R1(LockScreenActivity.this, (View) obj);
                return R1;
            }
        });
    }

    public boolean onKeyUp(int keyCode, KeyEvent event) {
        if (keyCode != 4) {
            return super/*android.app.Activity*/.onKeyUp(keyCode, event);
        }
        moveTaskToBack(true);
        return true;
    }

    protected void onNewIntent(Intent intent) {
        Intrinsics.checkNotNullParameter(intent, "intent");
        super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
        setIntent(intent);
    }

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

    protected void onStop() {
        O1().f();
        super.onStop();
    }
}