导航菜单

页面标题

页面副标题

Easycash v3.75.13 - LenderSignLoadingActivity.java 源代码

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

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


package com.fintopia.lender.module.sign;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import butterknife.BindView;
import com.airbnb.lottie.LottieAnimationView;
import com.fintopia.lender.R;
import com.fintopia.lender.module.baseui.LenderCommonActivity;
import com.fintopia.lender.module.network.ILenderApiRoutes;
import com.fintopia.lender.module.network.LenderResponseCode;
import com.fintopia.lender.module.orders.models.TransferType;
import com.fintopia.lender.module.sign.LenderSignLoadingActivity;
import com.fintopia.lender.module.sign.models.SendContractResponse;
import com.fintopia.lender.module.sign.models.SignatureAccountProviderType;
import com.fintopia.lender.widget.LenderSingleButtonDialog;
import com.lingyue.idnbaselib.framework.lifecycle.LifecycleEvent;
import com.lingyue.idnbaselib.model.IdnBaseResult;
import com.lingyue.idnbaselib.model.IdnObserver;
import com.lingyue.idnbaselib.model.sign.BizCheckResultInfoV3;
import com.sensorsdata.analytics.android.autotrack.aop.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.veda.android.bananalibrary.net.ICallBack;
import com.yangqianguan.statistics.AutoTrackHelper;
import io.reactivex.disposables.Disposable;
import java.io.Serializable;

public class LenderSignLoadingActivity extends LenderCommonActivity {

    @BindView(5079)
    LottieAnimationView lavRunCycle;

    @BindView(5899)
    TextView tvTitle;

    private String f181u;

    private BizCheckResultInfoV3 f182v;

    private TransferType f183w;

    class AnonymousClass1 extends IdnObserver<SendContractResponse> {
        AnonymousClass1(ICallBack iCallBack) {
            super(iCallBack);
        }

        @SensorsDataInstrumented
        public static void e(DialogInterface dialogInterface, int i) {
            dialogInterface.dismiss();
            SensorsDataAutoTrackHelper.trackDialog(dialogInterface, i);
            AutoTrackHelper.trackViewOnClick(dialogInterface, i);
        }

        public void f(DialogInterface dialogInterface) {
            LenderSignLoadingActivity lenderSignLoadingActivity = LenderSignLoadingActivity.this;
            lenderSignLoadingActivity.jumpToWebPage(lenderSignLoadingActivity.f182v.obtainMultipleSignInfo().loginUrl);
            LenderSignLoadingActivity.this.finish();
        }

        @SensorsDataInstrumented
        public static void g(DialogInterface dialogInterface, int i) {
            dialogInterface.dismiss();
            SensorsDataAutoTrackHelper.trackDialog(dialogInterface, i);
            AutoTrackHelper.trackViewOnClick(dialogInterface, i);
        }

        public void h(DialogInterface dialogInterface) {
            LenderSignLoadingActivity.this.finish();
        }

        public void onError(Throwable th, SendContractResponse sendContractResponse) {
            super.onError(th, sendContractResponse);
            IdnBaseResult.Status status = ((IdnBaseResult) sendContractResponse).status;
            int i = status.code;
            if (i == LenderResponseCode.SIGNATURE_EMPTY_MAGIC_LINK.code) {
                LenderSingleButtonDialog i2 = LenderSingleButtonDialog.d(LenderSignLoadingActivity.this).g(((IdnBaseResult) sendContractResponse).status.detail).e(R.string.dialog_ok).i(new DialogInterface.OnClickListener() {
                    @Override
                    public final void onClick(DialogInterface dialogInterface, int i3) {
                        LenderSignLoadingActivity.AnonymousClass1.e(dialogInterface, i3);
                    }
                });
                i2.setOnDismissListener(new DialogInterface.OnDismissListener() {
                    @Override
                    public final void onDismiss(DialogInterface dialogInterface) {
                        LenderSignLoadingActivity.AnonymousClass1.this.f(dialogInterface);
                    }
                });
                i2.show();
            } else {
                if (i == LenderResponseCode.SIGNATURE_THIRD_PARTY_RESPONSE_ERROR.code) {
                    LenderSignLoadingActivity.this.tvTitle.setText(status.detail);
                    return;
                }
                LenderSingleButtonDialog i3 = LenderSingleButtonDialog.d(LenderSignLoadingActivity.this).g(((IdnBaseResult) sendContractResponse).status.detail).e(R.string.dialog_ok).i(new DialogInterface.OnClickListener() {
                    @Override
                    public final void onClick(DialogInterface dialogInterface, int i4) {
                        LenderSignLoadingActivity.AnonymousClass1.g(dialogInterface, i4);
                    }
                });
                i3.setOnDismissListener(new DialogInterface.OnDismissListener() {
                    @Override
                    public final void onDismiss(DialogInterface dialogInterface) {
                        LenderSignLoadingActivity.AnonymousClass1.this.h(dialogInterface);
                    }
                });
                i3.show();
            }
        }

        public void onSuccess(SendContractResponse sendContractResponse) {
            ?? r0 = LenderSignLoadingActivity.this;
            SendContractResponse.SendContractBody sendContractBody = sendContractResponse.body;
            LenderSignWebActivity.startLenderSignWebActivity(r0, sendContractBody.magicLink, sendContractBody.relatedId, ((LenderSignLoadingActivity) r0).f182v, LenderSignLoadingActivity.this.f183w);
            LenderSignLoadingActivity.this.finish();
        }

        protected boolean superShowErrorToast() {
            return false;
        }
    }

    private void M() {
        ILenderApiRoutes iLenderApiRoutes = (ILenderApiRoutes) this.apiHelper.a();
        String name = SignatureAccountProviderType.PRIVY.name();
        String str = this.f181u;
        BizCheckResultInfoV3 bizCheckResultInfoV3 = this.f182v;
        iLenderApiRoutes.k(name, str, bizCheckResultInfoV3.businessId, bizCheckResultInfoV3.businessType, bizCheckResultInfoV3.checkType).a(new AnonymousClass1(this));
    }

    public static void startLenderSignLoadingActivity(Activity activity, String str, BizCheckResultInfoV3 bizCheckResultInfoV3, TransferType transferType) {
        Intent intent = new Intent(activity, (Class<?>) LenderSignLoadingActivity.class);
        intent.putExtra("privyId", str);
        intent.putExtra("orderCheckInfo", (Serializable) bizCheckResultInfoV3);
        intent.putExtra("transferType", transferType == null ? null : transferType.name());
        activity.startActivity(intent);
    }

    @Override
    protected void G(@NonNull Bundle bundle) {
        super.G(bundle);
        bundle.putString("privyId", this.f181u);
        bundle.putSerializable("orderCheckInfo", this.f182v);
        TransferType transferType = this.f183w;
        bundle.putString("transferType", transferType == null ? null : transferType.name());
    }

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

    @Override
    protected void onPause() {
        super.onPause();
        if (this.lavRunCycle.p()) {
            this.lavRunCycle.h();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        if (this.lavRunCycle.p()) {
            return;
        }
        this.lavRunCycle.r();
    }

    @Override
    public Disposable runOnActiveEvent(Runnable runnable) {
        return com.lingyue.idnbaselib.framework.lifecycle.m.a(this, runnable);
    }

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

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

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

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

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

    @Override
    protected void y(@NonNull Bundle bundle) {
        super.y(bundle);
        this.f181u = bundle.getString("privyId");
        this.f182v = bundle.getSerializable("orderCheckInfo");
        this.f183w = TransferType.fromName(bundle.getString("transferType"));
    }
}