正在查看: Easycash v3.75.13 应用的 SignLoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Easycash v3.75.13 应用的 SignLoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.lingyue.easycash.activity;
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.lingyue.easycash.R;
import com.lingyue.easycash.activity.SignLoadingActivity;
import com.lingyue.easycash.commom.EasyCashCommonActivity;
import com.lingyue.easycash.models.SignatureAccountProviderType;
import com.lingyue.easycash.models.home.SendContractResponse;
import com.lingyue.easycash.net.EasyCashResponseCode;
import com.lingyue.easycash.net.IApiRoutes;
import com.lingyue.easycash.widght.EasycashSingleButtonDialog;
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.BizCheckResultInfo;
import com.veda.android.bananalibrary.net.ICallBack;
import io.reactivex.disposables.Disposable;
public class SignLoadingActivity extends EasyCashCommonActivity {
private BizCheckResultInfo B;
private String C;
@BindView(R.id.lav_run_cycle)
LottieAnimationView lavRunCycle;
@BindView(R.id.tv_title)
TextView tvTitle;
class AnonymousClass1 extends IdnObserver<SendContractResponse> {
AnonymousClass1(ICallBack iCallBack) {
super(iCallBack);
}
public void f(DialogInterface dialogInterface) {
SignLoadingActivity signLoadingActivity = SignLoadingActivity.this;
signLoadingActivity.jumpToWebPage(signLoadingActivity.B.privyInfo.loginUrl);
SignLoadingActivity.this.finish();
}
public void h(DialogInterface dialogInterface) {
SignLoadingActivity.this.finish();
}
@Override
public void onError(Throwable th, SendContractResponse sendContractResponse) {
super.onError(th, (Throwable) sendContractResponse);
IdnBaseResult.Status status = sendContractResponse.status;
int i = status.code;
if (i == EasyCashResponseCode.SIGNATURE_EMPTY_MAGIC_LINK.code) {
EasycashSingleButtonDialog l = EasycashSingleButtonDialog.d(SignLoadingActivity.this).h(sendContractResponse.status.detail).f(2131886194).l(new EasycashSingleButtonDialog.OnDialogButtonClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i2) {
dialogInterface.dismiss();
}
});
l.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public final void onDismiss(DialogInterface dialogInterface) {
SignLoadingActivity.AnonymousClass1.this.f(dialogInterface);
}
});
l.show();
} else {
if (i == EasyCashResponseCode.SIGNATURE_THIRD_PARTY_RESPONSE_ERROR.code) {
SignLoadingActivity.this.tvTitle.setText(status.detail);
return;
}
EasycashSingleButtonDialog l2 = EasycashSingleButtonDialog.d(SignLoadingActivity.this).h(sendContractResponse.status.detail).f(2131886194).l(new EasycashSingleButtonDialog.OnDialogButtonClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i2) {
dialogInterface.dismiss();
}
});
l2.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public final void onDismiss(DialogInterface dialogInterface) {
SignLoadingActivity.AnonymousClass1.this.h(dialogInterface);
}
});
l2.show();
}
}
@Override
public void onSuccess(SendContractResponse sendContractResponse) {
?? r0 = SignLoadingActivity.this;
PrivyIdWebActivity.startPrivyIdWebActivity(r0, sendContractResponse.body.magicLink, ((SignLoadingActivity) r0).B);
SignLoadingActivity.this.finish();
}
@Override
protected boolean superShowErrorToast() {
return false;
}
}
private void R() {
IApiRoutes a = this.apiHelper.a();
String name = SignatureAccountProviderType.PRIVY.name();
String str = this.C;
BizCheckResultInfo bizCheckResultInfo = this.B;
a.k(name, str, bizCheckResultInfo.businessId, bizCheckResultInfo.businessType, bizCheckResultInfo.checkType).a(new AnonymousClass1(this));
}
public static void startSignLoadingActivity(Activity activity, String str, BizCheckResultInfo bizCheckResultInfo) {
Intent intent = new Intent(activity, (Class<?>) SignLoadingActivity.class);
intent.putExtra("privyId", str);
intent.putExtra("orderCheckInfo", bizCheckResultInfo);
activity.startActivity(intent);
}
@Override
protected void B(@NonNull Bundle bundle) {
super.B(bundle);
this.C = bundle.getString("privyId");
this.B = (BizCheckResultInfo) bundle.getSerializable("orderCheckInfo");
}
@Override
protected void N(@NonNull Bundle bundle) {
super.N(bundle);
bundle.putString("privyId", this.C);
bundle.putSerializable("orderCheckInfo", this.B);
}
@Override
public int getLayoutID() {
return R.layout.easycash_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 z() {
super.z();
R();
}
}