导航菜单

页面标题

页面副标题

Easycash v3.75.13 - LiveRecognitionResultActivity.java 源代码

正在查看: Easycash v3.75.13 应用的 LiveRecognitionResultActivity.java JAVA 源代码文件

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


package com.fintopia.lender.module.livecheck;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import butterknife.BindView;
import butterknife.OnClick;
import com.fintopia.lender.R;
import com.fintopia.lender.module.baseui.LenderCommonActivity;
import com.fintopia.lender.module.livecheck.processor.LenderAuthRecognitionInfoProcessor;
import com.fintopia.lender.module.livecheck.processor.LenderDeleteAccountRecognitionInfoProcessor;
import com.fintopia.lender.module.livecheck.processor.LenderEkycRecognitionInfoProcessor;
import com.fintopia.lender.module.livecheck.processor.LenderGetFacePhotoRecognitionInfoProcessor;
import com.fintopia.lender.module.livecheck.processor.LenderLoginRiskDeviceRecognitionInfoProcessor;
import com.fintopia.lender.module.livecheck.processor.LenderSecureCheckRecognitionInfoProcessor;
import com.fintopia.lender.module.livecheck.processor.LenderSignRecognitionInfoProcessor;
import com.fintopia.lender.module.utils.AuthStepRationale;
import com.fintopia.livenessdetection.facev5.models.LiveDetectionArgs;
import com.lingyue.idnbaselib.framework.lifecycle.LifecycleEvent;
import com.lingyue.idnbaselib.framework.lifecycle.m;
import com.lingyue.idnbaselib.livecheck.RecognitionInfoProcessor;
import com.lingyue.idnbaselib.model.live.FaceIdCard;
import com.lingyue.supertoolkit.widgets.BaseUtils;
import com.veda.android.bananalibrary.infrastructure.BaseActivity;
import io.reactivex.disposables.Disposable;
import java.io.Serializable;

@AuthStepRationale
public class LiveRecognitionResultActivity extends LenderCommonActivity {

    private static String f86x = "faceIdCard";

    @BindView(4703)
    public Button btnReUploadIdentityInfo;

    @BindView(5872)
    public TextView tvSuccessHint;

    private FaceIdCard f87u;

    private LiveDetectionArgs f88v;

    private RecognitionInfoProcessor f89w;

    private void K() {
        LiveDetectionArgs liveDetectionArgs = this.f88v;
        int i = liveDetectionArgs.purpose;
        if (i != 0) {
            if (i == 1) {
                this.f89w = new LenderLoginRiskDeviceRecognitionInfoProcessor(this, this.f87u, liveDetectionArgs);
            } else if (i == 2) {
                this.f89w = new LenderSecureCheckRecognitionInfoProcessor(this, this.f87u, liveDetectionArgs);
            } else if (i == 4) {
                this.f89w = new LenderGetFacePhotoRecognitionInfoProcessor(this, this.f87u, liveDetectionArgs);
            } else if (i != 5) {
                if (i == 6) {
                    this.f89w = new LenderEkycRecognitionInfoProcessor(this, this.f87u, liveDetectionArgs);
                } else if (i == 8) {
                    this.f89w = new LenderSignRecognitionInfoProcessor(this, this.f87u, liveDetectionArgs);
                } else if (i == 40000108) {
                    this.f89w = new LenderDeleteAccountRecognitionInfoProcessor(this, this.f87u, liveDetectionArgs);
                }
            }
            this.f89w.a(false);
        }
        this.f89w = new LenderAuthRecognitionInfoProcessor(this, this.f87u, liveDetectionArgs);
        this.f89w.a(false);
    }

    public static void startRecognitionResultActivity(Activity activity, FaceIdCard faceIdCard, LiveDetectionArgs liveDetectionArgs) {
        Intent intent = new Intent(activity, (Class<?>) LiveRecognitionResultActivity.class);
        intent.putExtra(f86x, (Serializable) faceIdCard);
        intent.putExtra(LiveDetectionArgs.TAG, liveDetectionArgs);
        activity.startActivity(intent);
    }

    @Override
    protected void A() {
        ((BaseActivity) this).f.setBackgroundColor(0);
    }

    @Override
    protected void G(@NonNull Bundle bundle) {
        super.G(bundle);
        bundle.putSerializable(f86x, this.f87u);
        bundle.putParcelable(LiveDetectionArgs.TAG, this.f88v);
    }

    @Override
    public int getLayoutID() {
        return R.layout.layout_lender_liveness_recognition_result;
    }

    @OnClick({4703})
    public void reUploadIdentityInfo(View view) {
        if (BaseUtils.l()) {
            return;
        }
        this.f89w.a(true);
    }

    @Override
    public Disposable runOnActiveEvent(Runnable runnable) {
        return m.a(this, runnable);
    }

    @Override
    @SuppressLint({"CheckResult"})
    public Disposable runOnCreated(@NonNull Runnable runnable) {
        return m.b(this, runnable);
    }

    @Override
    @SuppressLint({"CheckResult"})
    public Disposable runOnDestroy(@NonNull Runnable runnable) {
        return m.c(this, runnable);
    }

    @Override
    @SuppressLint({"CheckResult"})
    public Disposable runOnEvent(@NonNull LifecycleEvent lifecycleEvent, @Nullable Runnable runnable) {
        return m.d(this, lifecycleEvent, runnable);
    }

    @Override
    public Disposable runOnEvents(@NonNull LifecycleEvent[] lifecycleEventArr, @Nullable Runnable runnable) {
        return m.e(this, lifecycleEventArr, runnable);
    }

    @Override
    protected void w() {
        super.w();
        K();
    }

    @Override
    protected void y(@NonNull Bundle bundle) {
        super.y(bundle);
        this.f87u = bundle.getSerializable(f86x);
        this.f88v = (LiveDetectionArgs) bundle.getParcelable(LiveDetectionArgs.TAG);
        if (this.f87u == null) {
            finish();
        }
    }
}