正在查看: klikUMKM v2.0.1 应用的 MyLogoutActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 MyLogoutActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.yx.credit.indonesia.ui.my;
import android.content.Intent;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.widget.r2;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import cb.b;
import com.yx.credit.base.YxApplication;
import com.yx.credit.base.activity.BaseFragmentActivity;
import com.yx.credit.base.net.k;
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.http.entity.LogoutQuestionRsp;
import com.yx.credit.indonesia.ui.my.MyLogoutActivity;
import com.yx.credit.indonesia.ui.my.MyLogoutSecondLevelActivity;
import com.yx.credit.indonesia.view.LoadingErrorView;
import com.yx.credit.indonesia.view.LoadingView;
import h4.h;
import j4.d;
import j4.j;
import j4.m;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import qa.l;
import qa.n;
public class MyLogoutActivity extends BaseFragmentActivity {
public static final int U = 0;
public ImageView K;
public TextView L;
public LoadingView M;
public LoadingErrorView N;
public RecyclerView O;
public n P;
public TextView Q;
public TextView R;
public TextView S;
public EditText T;
public final boolean M() {
n nVar;
if (TextUtils.isEmpty(this.T.getText().toString().trim()) || (nVar = this.P) == null || !h.v(nVar.f8894c)) {
return false;
}
Iterator it = this.P.f8894c.iterator();
while (it.hasNext()) {
if (((LogoutQuestionRsp.Data.Option) it.next()).getChecked()) {
return true;
}
}
return false;
}
public final void N() {
this.M.setVisibility(0);
this.N.setVisibility(8);
HashMap hashMap = new HashMap();
k.a.w("https://api.klikumkm.co.id/api/indo/user/cancel/questions", hashMap, LogoutQuestionRsp.class, true).M(b.a()).R(new l(this));
}
public final void O() {
this.S.setText(this.T.getText().toString().length() + "/300");
}
@Override
public final void onCreate(Bundle bundle) {
final int i10 = 1;
final int i11 = 0;
super.onCreate(bundle);
setContentView(R$layout.activity_logout);
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 = (RecyclerView) findViewById(R$id.rv_list);
this.Q = (TextView) findViewById(R$id.tv_confirm);
this.R = (TextView) findViewById(R$id.tv_question_tile);
this.S = (TextView) findViewById(R$id.tv_fill_content_number);
this.T = (EditText) findViewById(R$id.et_fill_content);
this.K.setOnClickListener(new View.OnClickListener(this) {
public final MyLogoutActivity f11234b;
{
this.f11234b = this;
}
@Override
public final void onClick(View view) {
MyLogoutActivity myLogoutActivity = this.f11234b;
switch (i11) {
case 0:
int i12 = MyLogoutActivity.U;
myLogoutActivity.finish();
break;
case 1:
int i13 = MyLogoutActivity.U;
myLogoutActivity.N();
break;
default:
int i14 = MyLogoutActivity.U;
if (myLogoutActivity.M()) {
ArrayList<String> arrayList = new ArrayList<>();
n nVar = myLogoutActivity.P;
if (nVar != null && h4.h.v(nVar.f8894c)) {
Iterator it = myLogoutActivity.P.f8894c.iterator();
while (it.hasNext()) {
LogoutQuestionRsp.Data.Option option = (LogoutQuestionRsp.Data.Option) it.next();
if (option.getChecked()) {
arrayList.add(option.getReasonId());
}
}
}
String trim = myLogoutActivity.T.getText().toString().trim();
BaseFragmentActivity baseFragmentActivity = myLogoutActivity.F;
Intent intent = new Intent(baseFragmentActivity, (Class<?>) MyLogoutSecondLevelActivity.class);
intent.putStringArrayListExtra("reason_list", arrayList);
intent.putExtra("other_reason", trim);
baseFragmentActivity.startActivity(intent);
break;
}
break;
}
}
});
this.N.setRetryListener(new View.OnClickListener(this) {
public final MyLogoutActivity f11234b;
{
this.f11234b = this;
}
@Override
public final void onClick(View view) {
MyLogoutActivity myLogoutActivity = this.f11234b;
switch (i10) {
case 0:
int i12 = MyLogoutActivity.U;
myLogoutActivity.finish();
break;
case 1:
int i13 = MyLogoutActivity.U;
myLogoutActivity.N();
break;
default:
int i14 = MyLogoutActivity.U;
if (myLogoutActivity.M()) {
ArrayList<String> arrayList = new ArrayList<>();
n nVar = myLogoutActivity.P;
if (nVar != null && h4.h.v(nVar.f8894c)) {
Iterator it = myLogoutActivity.P.f8894c.iterator();
while (it.hasNext()) {
LogoutQuestionRsp.Data.Option option = (LogoutQuestionRsp.Data.Option) it.next();
if (option.getChecked()) {
arrayList.add(option.getReasonId());
}
}
}
String trim = myLogoutActivity.T.getText().toString().trim();
BaseFragmentActivity baseFragmentActivity = myLogoutActivity.F;
Intent intent = new Intent(baseFragmentActivity, (Class<?>) MyLogoutSecondLevelActivity.class);
intent.putStringArrayListExtra("reason_list", arrayList);
intent.putExtra("other_reason", trim);
baseFragmentActivity.startActivity(intent);
break;
}
break;
}
}
});
final int i12 = 2;
this.Q.setOnClickListener(new View.OnClickListener(this) {
public final MyLogoutActivity f11234b;
{
this.f11234b = this;
}
@Override
public final void onClick(View view) {
MyLogoutActivity myLogoutActivity = this.f11234b;
switch (i12) {
case 0:
int i122 = MyLogoutActivity.U;
myLogoutActivity.finish();
break;
case 1:
int i13 = MyLogoutActivity.U;
myLogoutActivity.N();
break;
default:
int i14 = MyLogoutActivity.U;
if (myLogoutActivity.M()) {
ArrayList<String> arrayList = new ArrayList<>();
n nVar = myLogoutActivity.P;
if (nVar != null && h4.h.v(nVar.f8894c)) {
Iterator it = myLogoutActivity.P.f8894c.iterator();
while (it.hasNext()) {
LogoutQuestionRsp.Data.Option option = (LogoutQuestionRsp.Data.Option) it.next();
if (option.getChecked()) {
arrayList.add(option.getReasonId());
}
}
}
String trim = myLogoutActivity.T.getText().toString().trim();
BaseFragmentActivity baseFragmentActivity = myLogoutActivity.F;
Intent intent = new Intent(baseFragmentActivity, (Class<?>) MyLogoutSecondLevelActivity.class);
intent.putStringArrayListExtra("reason_list", arrayList);
intent.putExtra("other_reason", trim);
baseFragmentActivity.startActivity(intent);
break;
}
break;
}
}
});
((ViewGroup) findViewById(R$id.ll_back)).setPadding(0, m.o(YxApplication.f7325c), 0, 0);
this.L.setText(j.m(R$string.keamanan_akun, new Object[0]));
n nVar = new n(this);
this.P = nVar;
this.O.setAdapter(nVar);
this.O.setLayoutManager(new LinearLayoutManager(1));
this.O.g(new qa.k(i11));
d.w(this.Q, M());
this.T.setFilters(new InputFilter[]{new InputFilter.LengthFilter(300)});
this.T.setHint(j.m(R$string.silakan_pilih_alasan_tertentu_hingga_karakter_replace, "300"));
O();
this.T.addTextChangedListener(new r2(this, 4));
N();
}
}