正在查看: Crédito Express v1.0.3 应用的 ExpSetPActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crédito Express v1.0.3 应用的 ExpSetPActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.creditoexpress.creditloan.gloam.palfrey;
import a3.b;
import android.app.Activity;
import android.content.Intent;
import android.text.method.HideReturnsTransformationMethod;
import android.text.method.PasswordTransformationMethod;
import android.view.View;
import com.creditoexpress.creditloan.R$color;
import com.creditoexpress.creditloan.R$drawable;
import com.creditoexpress.creditloan.R$raw;
import com.creditoexpress.creditloan.bunked.BaseActivity;
import com.creditoexpress.creditloan.gloam.palfrey.ExpSetPActivity;
import com.creditoexpress.creditloan.retable.response.UserResponse;
import com.creditoexpress.creditloan.vowels.ExpressImageView;
import com.creditoexpress.creditloan.vowels.ExpressTextView;
import d3.q;
import g3.c;
import java.util.HashMap;
import n2.l;
import okhttp3.HttpUrl;
public class ExpSetPActivity extends BaseActivity {
public l K;
public String L;
public String M;
public boolean N = false;
public boolean O = false;
public class a implements b.InterfaceC0000b {
public a() {
}
@Override
public void a(String str) {
ExpSetPActivity.this.s0();
}
@Override
public void onSuccess(UserResponse userResponse) {
ExpSetPActivity.this.s0();
if (userResponse != null) {
q.f().E(userResponse.getRqhp(), userResponse.getBbbm());
ExpSetPActivity.this.finish();
}
}
}
public static void c1(Activity activity, String str) {
Intent intent = new Intent(activity, (Class<?>) ExpSetPActivity.class);
intent.putExtra("jabirus", str);
activity.startActivity(intent);
}
public final void U0() {
ExpressTextView expressTextView;
int i7;
String str = this.M;
if (str == null || str.length() < 8 || this.M.length() > 16) {
this.O = false;
this.K.f9335i.setBackgroundResource(R$drawable.shape_gray_btn_r50);
expressTextView = this.K.f9335i;
i7 = R$color.white;
} else {
this.O = true;
this.K.f9335i.setBackgroundResource(R$drawable.shape_main_btn_r50);
expressTextView = this.K.f9335i;
i7 = R$color.main_text;
}
expressTextView.setTextColor(r0.a.getColor(this, i7));
}
public final void V0() {
ExpressImageView expressImageView;
int i7;
if (this.N) {
this.K.f9328b.setTransformationMethod(HideReturnsTransformationMethod.getInstance());
expressImageView = this.K.f9330d;
i7 = R$raw.exp_ic_password1;
} else {
this.K.f9328b.setTransformationMethod(PasswordTransformationMethod.getInstance());
expressImageView = this.K.f9330d;
i7 = R$raw.exp_ic_password0;
}
expressImageView.setImageResource(i7);
String str = this.M;
if (str == null || str.length() <= 0) {
return;
}
this.K.f9328b.setSelection(this.M.length());
}
public final void W0(String str) {
ExpressImageView expressImageView;
int i7;
this.M = str;
if (str.length() > 0) {
V0();
expressImageView = this.K.f9330d;
i7 = 0;
} else {
expressImageView = this.K.f9330d;
i7 = 8;
}
expressImageView.setVisibility(i7);
U0();
}
public final void X0(View view) {
this.K.f9328b.setText(HttpUrl.FRAGMENT_ENCODE_SET);
}
public final void Y0(View view) {
this.N = !this.N;
V0();
}
public final void Z0(View view) {
if (this.O) {
a1();
}
}
public final void a1() {
P0();
HashMap hashMap = new HashMap();
hashMap.put("fzazpyh", this.L);
hashMap.put("obii", this.M);
this.F.z("persons/replace-pwd", hashMap, new a());
}
public final void b1() {
l lVar = this.K;
lVar.f9328b.addTextChangedListener(new c(lVar.f9329c, new c.a() {
@Override
public final void a(String str) {
ExpSetPActivity.this.W0(str);
}
}));
this.K.f9329c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ExpSetPActivity.this.X0(view);
}
});
this.K.f9330d.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ExpSetPActivity.this.Y0(view);
}
});
this.K.f9335i.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ExpSetPActivity.this.Z0(view);
}
});
}
@Override
public void t0() {
if (getIntent() != null) {
this.L = getIntent().getStringExtra("jabirus");
}
b1();
}
@Override
public void w0() {
l d7 = l.d(getLayoutInflater());
this.K = d7;
setContentView(d7.a());
N0(this.K.a());
L0(this.K.f9333g);
}
}