正在查看: CreditNow v1.0.2 应用的 FillInfoGatewayActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CreditNow v1.0.2 应用的 FillInfoGatewayActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.cat.fillininfolibrary.view;
import android.annotation.SuppressLint;
import android.os.Bundle;
import com.aa.commonuilibrary.base.activity.BaseActivity;
import com.aa.foundation.R$string;
import com.cat.fillininfolibrary.databinding.ActivityFillInfoGatewayBinding;
import com.cat.fillininfolibrary.viewmodel.FillInInfoGatewayViewModel;
import defpackage.h40;
import defpackage.j40;
import defpackage.jp;
import defpackage.o52;
import defpackage.pm3;
import defpackage.td;
import defpackage.tp;
import defpackage.x30;
import defpackage.xj1;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
@Metadata
public final class FillInfoGatewayActivity extends BaseActivity<FillInInfoGatewayViewModel, ActivityFillInfoGatewayBinding> {
@Metadata
public static final class a extends jp<tp<xj1>> {
public a() {
}
@Override
public void b(Throwable th) {
FillInInfoGatewayViewModel fillInInfoGatewayViewModel = (FillInInfoGatewayViewModel) FillInfoGatewayActivity.this.O0();
fillInInfoGatewayViewModel.setMCountApiServiceResult(fillInInfoGatewayViewModel.getMCountApiServiceResult() + 1);
FillInfoGatewayActivity.this.r1();
j40.a.b(j40.a, FillInfoGatewayActivity.this.Q0(), FillInfoGatewayActivity.this.getResources().getString(R$string.str_network_error), 0, 4, null);
FillInfoGatewayActivity.this.finish();
}
@Override
public void a(tp<xj1> tpVar) {
FillInInfoGatewayViewModel fillInInfoGatewayViewModel = (FillInInfoGatewayViewModel) FillInfoGatewayActivity.this.O0();
fillInInfoGatewayViewModel.setMCountApiServiceResult(fillInInfoGatewayViewModel.getMCountApiServiceResult() + 1);
FillInfoGatewayActivity.this.r1();
td.a.a(FillInfoGatewayActivity.this.Q0(), tpVar);
FillInfoGatewayActivity.this.finish();
}
@Override
public void c(tp<xj1> tpVar) {
FillInInfoGatewayViewModel fillInInfoGatewayViewModel = (FillInInfoGatewayViewModel) FillInfoGatewayActivity.this.O0();
fillInInfoGatewayViewModel.setMCountApiServiceResult(fillInInfoGatewayViewModel.getMCountApiServiceResult() + 1);
FillInfoGatewayActivity.this.r1();
((FillInInfoGatewayViewModel) FillInfoGatewayActivity.this.O0()).setMGetFillInInfoStatus(tpVar != null ? tpVar.data : null);
FillInfoGatewayActivity.this.t1();
}
}
@Metadata
public static final class b extends jp<tp<List<? extends o52>>> {
public b() {
}
@Override
public void b(Throwable th) {
FillInInfoGatewayViewModel fillInInfoGatewayViewModel = (FillInInfoGatewayViewModel) FillInfoGatewayActivity.this.O0();
fillInInfoGatewayViewModel.setMCountApiServiceResult(fillInInfoGatewayViewModel.getMCountApiServiceResult() + 1);
FillInfoGatewayActivity.this.r1();
j40.a.b(j40.a, FillInfoGatewayActivity.this.Q0(), FillInfoGatewayActivity.this.getResources().getString(R$string.str_network_error), 0, 4, null);
FillInfoGatewayActivity.this.finish();
}
@Override
public void a(tp<List<o52>> tpVar) {
FillInInfoGatewayViewModel fillInInfoGatewayViewModel = (FillInInfoGatewayViewModel) FillInfoGatewayActivity.this.O0();
fillInInfoGatewayViewModel.setMCountApiServiceResult(fillInInfoGatewayViewModel.getMCountApiServiceResult() + 1);
FillInfoGatewayActivity.this.r1();
td.a.a(FillInfoGatewayActivity.this.Q0(), tpVar);
FillInfoGatewayActivity.this.finish();
}
@Override
public void c(tp<List<o52>> tpVar) {
List<o52> list;
FillInInfoGatewayViewModel fillInInfoGatewayViewModel = (FillInInfoGatewayViewModel) FillInfoGatewayActivity.this.O0();
fillInInfoGatewayViewModel.setMCountApiServiceResult(fillInInfoGatewayViewModel.getMCountApiServiceResult() + 1);
FillInfoGatewayActivity.this.r1();
if (tpVar == null || (list = tpVar.data) == null || list.isEmpty()) {
return;
}
List<o52> list2 = tpVar.data;
ArrayList arrayList = list2 instanceof ArrayList ? (ArrayList) list2 : null;
if (arrayList != null) {
FillInfoGatewayActivity fillInfoGatewayActivity = FillInfoGatewayActivity.this;
((FillInInfoGatewayViewModel) fillInfoGatewayActivity.O0()).getMEnumList().clear();
((FillInInfoGatewayViewModel) fillInfoGatewayActivity.O0()).getMEnumList().addAll(arrayList);
}
FillInfoGatewayActivity.this.t1();
}
}
private final void q1() {
((FillInInfoGatewayViewModel) O0()).dealWithListByTypeKeyListResp(new b());
}
private final void s1() {
l1();
q1();
p1();
}
@Override
@SuppressLint({"SourceLockedOrientationActivity"})
public void V0(Bundle bundle) {
h40.a.e(this);
s1();
}
@Override
public boolean W0() {
return true;
}
public final void p1() {
((FillInInfoGatewayViewModel) O0()).dealWithGetFullInfoStatusResp(new a());
}
public final void r1() {
if (((FillInInfoGatewayViewModel) O0()).getMCountApiServiceResult() < 2) {
return;
}
M0();
}
public final void t1() {
if (((FillInInfoGatewayViewModel) O0()).getMCountApiServiceResult() < 2) {
return;
}
if (((FillInInfoGatewayViewModel) O0()).getMEnumList().isEmpty()) {
j40.a.b(j40.a, Q0(), getResources().getString(R$string.str_network_error), 0, 4, null);
finish();
} else {
if (((FillInInfoGatewayViewModel) O0()).getMGetFillInInfoStatus() == null) {
j40.a.b(j40.a, Q0(), getResources().getString(R$string.str_network_error), 0, 4, null);
finish();
return;
}
Bundle bundle = new Bundle();
bundle.putSerializable("enumList", ((FillInInfoGatewayViewModel) O0()).getMEnumList());
bundle.putSerializable("fillInInfoStatus", ((FillInInfoGatewayViewModel) O0()).getMGetFillInInfoStatus());
x30.a().e(Q0(), pm3.a(Q0(), "fillInInfoDetail"), bundle);
finish();
}
}
}