正在查看: klikUMKM v2.0.1 应用的 MyHistoryPdfActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 MyHistoryPdfActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.yx.credit.indonesia.ui.my;
import a1.g;
import a3.b;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.github.barteksc.pdfviewer.PDFView;
import com.yx.credit.base.YxApplication;
import com.yx.credit.base.activity.BaseFragmentActivity;
import com.yx.credit.indonesia.R$id;
import com.yx.credit.indonesia.R$layout;
import com.yx.credit.indonesia.R$string;
import com.yx.credit.indonesia.ui.my.MyHistoryPdfActivity;
import com.yx.credit.indonesia.view.LoadingErrorView;
import com.yx.credit.indonesia.view.LoadingView;
import io.reactivex.rxjava3.internal.operators.observable.d;
import j4.j;
import j4.m;
import qa.i;
public class MyHistoryPdfActivity extends BaseFragmentActivity {
public static final int Q = 0;
public ImageView K;
public TextView L;
public LoadingView M;
public LoadingErrorView N;
public PDFView O;
public String P;
public final void M() {
this.M.setVisibility(0);
this.N.setVisibility(8);
String J = g.J("https://api.klikumkm.co.id/api/indo/apply/contract/preview/", this.P);
new d(new b(14, J)).M(cb.b.a()).R(new i(this));
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R$layout.activity_my_history_pdf);
Intent intent = getIntent();
if (intent != null) {
this.P = intent.getStringExtra("apply_Id");
}
J();
G();
K();
this.K = (ImageView) findViewById(R$id.iv_back_base_title);
this.L = (TextView) findViewById(R$id.tv_title_base_title);
this.M = (LoadingView) findViewById(R$id.loading_view_activity);
this.N = (LoadingErrorView) findViewById(R$id.loading_error_view_activity);
this.O = (PDFView) findViewById(R$id.pdfView);
final int i10 = 0;
this.K.setOnClickListener(new View.OnClickListener(this) {
public final MyHistoryPdfActivity f11233b;
{
this.f11233b = this;
}
@Override
public final void onClick(View view) {
MyHistoryPdfActivity myHistoryPdfActivity = this.f11233b;
switch (i10) {
case 0:
int i11 = MyHistoryPdfActivity.Q;
myHistoryPdfActivity.finish();
break;
default:
int i12 = MyHistoryPdfActivity.Q;
myHistoryPdfActivity.M();
break;
}
}
});
final int i11 = 1;
this.N.setRetryListener(new View.OnClickListener(this) {
public final MyHistoryPdfActivity f11233b;
{
this.f11233b = this;
}
@Override
public final void onClick(View view) {
MyHistoryPdfActivity myHistoryPdfActivity = this.f11233b;
switch (i11) {
case 0:
int i112 = MyHistoryPdfActivity.Q;
myHistoryPdfActivity.finish();
break;
default:
int i12 = MyHistoryPdfActivity.Q;
myHistoryPdfActivity.M();
break;
}
}
});
((ViewGroup) findViewById(R$id.ll_back)).setPadding(0, m.o(YxApplication.f7325c), 0, 0);
this.L.setText(j.m(R$string.lihat_perjanjian, new Object[0]));
M();
}
}