正在查看: OVO v3.139.0 应用的 HVRetakeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 HVRetakeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package co.hyperverge.hypersnapsdk.activities;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import co.hyperverge.hypersnapsdk.activities.HVRetakeActivity;
import java.io.File;
import o.i.c4c;
import o.i.djj;
import o.i.dri;
import o.i.fvi;
import o.i.krj;
import o.i.lmi;
import o.i.n7c;
import o.i.ph6;
import o.i.vg6;
import o.i.z1d;
import ovo.id.wallet.withdrawal.ui.presentation.FailedWithdrawalPartnerFragment;
public class HVRetakeActivity extends c {
public ImageView G;
public String H;
public TextView I;
public TextView J;
public TextView K;
public TextView L;
public float P;
public double Q;
public vg6 R;
public String S;
public String V;
public String M = "";
public boolean N = false;
public boolean O = false;
public final krj T = new krj();
public final krj U = new krj();
@Override
public final vg6 B0() {
return this.R;
}
@Override
public final void E0() {
setResult(20);
finish();
}
@Override
public final boolean F0() {
return false;
}
@Override
public final void I0() {
}
public final String J0(String str) {
return Character.toUpperCase(str.charAt(0)) + str.substring(1);
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
krj krjVar = this.T;
krjVar.c();
this.V = getCallingActivity().getClassName();
setContentView(n7c.hv_activity_retake);
this.G = (ImageView) findViewById(c4c.review_image);
this.I = (TextView) findViewById(c4c.desc_text);
this.K = (TextView) findViewById(c4c.title_text);
this.L = (TextView) findViewById(c4c.hv_retake_button);
this.J = (TextView) findViewById(c4c.doc_desc_text);
final int i = 0;
this.L.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
int i2 = i;
Object obj = this;
switch (i2) {
case 0:
HVRetakeActivity hVRetakeActivity = (HVRetakeActivity) obj;
long longValue = hVRetakeActivity.U.b().longValue();
if (hVRetakeActivity.V.contains("Face")) {
if (djj.e().i()) {
djj.e().a(hVRetakeActivity.getApplicationContext()).l0((uh6) hVRetakeActivity.R, longValue);
}
xu6.c().getClass();
if (xu6.f6575b.isShouldUseSensorBiometrics() && djj.e().j != null) {
djj.e().j.e(System.currentTimeMillis(), "selfieRetakeClicked");
}
}
if (hVRetakeActivity.V.contains("Doc") && djj.e().i()) {
djj.e().a(hVRetakeActivity.getApplicationContext()).e0((yg6) hVRetakeActivity.R, longValue);
}
if (djj.e().i() && djj.e().h != null) {
djj.e().h.s0();
}
hVRetakeActivity.setResult(21);
hVRetakeActivity.finish();
return;
case 1:
default:
FailedWithdrawalPartnerFragment failedWithdrawalPartnerFragment = (FailedWithdrawalPartnerFragment) obj;
int i3 = FailedWithdrawalPartnerFragment.i;
vk7.f(failedWithdrawalPartnerFragment, "this$0");
FragmentActivity v = failedWithdrawalPartnerFragment.v();
if (v != null) {
sid sidVar = failedWithdrawalPartnerFragment.g;
if (sidVar == null) {
vk7.m("screenRouter");
throw null;
}
dx4 dx4Var = (dx4) ((gx4) failedWithdrawalPartnerFragment.h.getValue()).q.getValue();
w33.d(v, sidVar, dx4Var != null ? dx4Var.i : null, (Bundle) null, 12);
return;
}
return;
case 2:
xg7 xg7Var = (xg7) obj;
vk7.f(xg7Var, "this$0");
xg7Var.b.s.setValue((Object) null);
return;
}
}
});
if (bundle != null) {
finish();
}
if (djj.e().i() && djj.e().h != null) {
djj.e().h.A();
}
Intent intent = getIntent();
this.M = intent.getStringExtra("imageUri");
if (intent.hasExtra("extraPadding")) {
this.Q = intent.getDoubleExtra("extraPadding", 0.0d);
}
if (intent.hasExtra("setPadding")) {
this.N = intent.getBooleanExtra("setPadding", false);
}
if (intent.hasExtra("aspectRatio")) {
this.P = intent.getFloatExtra("aspectRatio", 0.0f);
}
if (intent.hasExtra("face")) {
this.O = intent.getBooleanExtra("face", false);
intent.getIntExtra("radius", 0);
}
this.R = (vg6) intent.getSerializableExtra("config");
if (intent.hasExtra("retryMessage")) {
this.S = intent.getStringExtra("retryMessage");
}
try {
if (this.R.getErrorReviewScreenTitleTypeface() > 0) {
this.K.setTypeface(z1d.c(getApplicationContext(), this.R.getErrorReviewScreenTitleTypeface()));
}
if (this.R.getErrorReviewScreenDescTypeface() > 0) {
this.I.setTypeface(z1d.c(getApplicationContext(), this.R.getErrorReviewScreenDescTypeface()));
this.J.setTypeface(z1d.c(getApplicationContext(), this.R.getErrorReviewScreenDescTypeface()));
}
if (this.R.getErroReviewScreenRetakeButtonTypeface() > 0) {
this.L.setTypeface(z1d.c(getApplicationContext(), this.R.getErroReviewScreenRetakeButtonTypeface()));
}
} catch (Exception e) {
fvi.d(e);
ph6 ph6Var = new ph6(2, fvi.d(e));
if (this.V.contains("Face") && djj.e().i()) {
djj.e().a(getApplicationContext()).j0(ph6Var);
}
if (this.V.contains("Doc") && djj.e().i()) {
djj.e().a(getApplicationContext()).a0(ph6Var);
}
if (djj.e().g != null) {
djj.e().g.a();
}
}
C0(this.R, null);
try {
if (this.R.getErrorReviewTitle() != null && !this.R.getErrorReviewTitle().isEmpty()) {
this.K.setText(this.R.getErrorReviewTitle());
}
if (this.R.getErrorReviewRetakeButton() != null && !this.R.getErrorReviewRetakeButton().isEmpty()) {
this.L.setText(this.R.getErrorReviewRetakeButton());
}
if (this.S != null) {
if (this.O) {
this.J.setVisibility(4);
this.I.setText(J0(this.S));
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.J.getLayoutParams();
layoutParams.setMargins(dri.a(40.0f, this), dri.a(30.0f, this), dri.a(40.0f, this), 0);
this.J.setLayoutParams(layoutParams);
this.J.requestLayout();
} else {
this.I.setVisibility(8);
this.J.setText(J0(this.S));
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.J.getLayoutParams();
if (this.P < 1.0f) {
layoutParams2.setMargins(dri.a(40.0f, this), dri.a(60.0f, this), dri.a(40.0f, this), dri.a(80.0f, this));
} else {
layoutParams2.setMargins(dri.a(40.0f, this), dri.a(6.0f, this), dri.a(40.0f, this), dri.a(10.0f, this));
}
this.J.setLayoutParams(layoutParams2);
this.J.requestLayout();
}
}
} catch (Exception e2) {
fvi.d(e2);
ph6 ph6Var2 = new ph6(2, fvi.d(e2));
if (this.V.contains("Face") && djj.e().i()) {
djj.e().a(getApplicationContext()).j0(ph6Var2);
}
if (this.V.contains("Doc") && djj.e().i()) {
djj.e().a(getApplicationContext()).a0(ph6Var2);
}
if (djj.e().g != null) {
djj.e().g.a();
}
}
long longValue = krjVar.b().longValue();
if (this.V.contains("Face")) {
this.H = "Error while processing the face image";
if (djj.e().i() && djj.e().h != null) {
djj.e().a(getApplicationContext()).p0(longValue);
djj.e().a(getApplicationContext()).r();
}
}
if (this.V.contains("Doc")) {
this.H = "Error while processing the document";
if (djj.e().i() && djj.e().h != null) {
djj.e().a(getApplicationContext()).l(longValue);
djj.e().a(getApplicationContext()).z0();
}
}
this.U.c();
}
@Override
public final void onResume() {
Bitmap b3;
super.onResume();
try {
Bitmap c = lmi.c(this.M);
if (c != null) {
new File(this.M);
if (this.O) {
b3 = dri.c(c);
} else {
b3 = dri.b(this, c, this.Q, this.P, dri.a(10.0f, this), this.N);
((RelativeLayout.LayoutParams) this.G.getLayoutParams()).addRule(13);
}
this.G.getLayoutParams().height = -2;
this.G.getLayoutParams().width = -2;
this.G.setAdjustViewBounds(true);
this.G.requestLayout();
this.G.setScaleType(ImageView.ScaleType.FIT_CENTER);
if (b3 != null) {
this.G.setImageBitmap(b3);
return;
}
ph6 ph6Var = new ph6(2, this.H);
Intent intent = new Intent();
intent.putExtra("hvError", ph6Var);
setResult(18, intent);
finish();
}
} catch (Exception e) {
fvi.d(e);
if (djj.e().g != null) {
djj.e().g.a();
}
}
}
@Override
public final void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
}
}