正在查看: klikUMKM v2.0.1 应用的 MyContactUsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: klikUMKM v2.0.1 应用的 MyContactUsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.yx.credit.indonesia.ui.my;
import android.content.Intent;
import android.net.Uri;
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.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.r2;
import cb.b;
import com.yx.credit.base.YxApplication;
import com.yx.credit.base.activity.BaseFragmentActivity;
import com.yx.credit.base.entity.Rsp;
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.ContactUsRsp;
import com.yx.credit.indonesia.ui.my.MyContactUsActivity;
import com.yx.credit.indonesia.view.LoadingErrorView;
import com.yx.credit.indonesia.view.LoadingView;
import j4.j;
import j4.m;
import java.util.HashMap;
public class MyContactUsActivity extends BaseFragmentActivity {
public static final int V = 0;
public ImageView K;
public TextView L;
public LoadingView M;
public LoadingErrorView N;
public TextView O;
public TextView P;
public EditText Q;
public LinearLayout R;
public TextView S;
public TextView T;
public ContactUsRsp.Data U;
public final void M() {
this.M.setVisibility(0);
this.N.setVisibility(8);
HashMap hashMap = new HashMap();
k.a.w("https://api.klikumkm.co.id/api/indo/user/infos/map", hashMap, ContactUsRsp.class, true).M(b.a()).R(new qa.b(this));
}
public final void N() {
this.P.setText(this.Q.getText().toString().length() + "/300");
}
@Override
public final void onCreate(Bundle bundle) {
final int i10 = 3;
final int i11 = 1;
final int i12 = 0;
super.onCreate(bundle);
setContentView(R$layout.activity_contact_us);
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 = (TextView) findViewById(R$id.tv_confirm);
this.P = (TextView) findViewById(R$id.tv_fill_content_number);
this.Q = (EditText) findViewById(R$id.et_fill_content);
this.R = (LinearLayout) findViewById(R$id.ll_phone);
this.S = (TextView) findViewById(R$id.tv_phone);
this.T = (TextView) findViewById(R$id.tv_email);
this.K.setOnClickListener(new View.OnClickListener(this) {
public final MyContactUsActivity f11227b;
{
this.f11227b = this;
}
@Override
public final void onClick(View view) {
MyContactUsActivity myContactUsActivity = this.f11227b;
switch (i12) {
case 0:
int i13 = MyContactUsActivity.V;
myContactUsActivity.finish();
break;
case 1:
int i14 = MyContactUsActivity.V;
myContactUsActivity.M();
break;
case 2:
if (!TextUtils.isEmpty(myContactUsActivity.Q.getText().toString().trim())) {
if (!j4.d.A()) {
String trim = myContactUsActivity.Q.getText().toString().trim();
if (!j4.d.A()) {
myContactUsActivity.L();
HashMap hashMap = new HashMap();
hashMap.put("feedbackContent", trim);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/user/feedback/submit", hashMap, Rsp.class, true).M(cb.b.a()).R(new k2.a(15, myContactUsActivity));
break;
}
}
} else {
uc.m.y(j4.j.m(R$string.please_input_text, new Object[0]));
break;
}
break;
default:
try {
myContactUsActivity.startActivity(new Intent("android.intent.action.DIAL", Uri.parse("tel:" + myContactUsActivity.U.getCustomerServiceTelepon())));
break;
} catch (Exception e10) {
e10.printStackTrace();
}
}
}
});
this.N.setRetryListener(new View.OnClickListener(this) {
public final MyContactUsActivity f11227b;
{
this.f11227b = this;
}
@Override
public final void onClick(View view) {
MyContactUsActivity myContactUsActivity = this.f11227b;
switch (i11) {
case 0:
int i13 = MyContactUsActivity.V;
myContactUsActivity.finish();
break;
case 1:
int i14 = MyContactUsActivity.V;
myContactUsActivity.M();
break;
case 2:
if (!TextUtils.isEmpty(myContactUsActivity.Q.getText().toString().trim())) {
if (!j4.d.A()) {
String trim = myContactUsActivity.Q.getText().toString().trim();
if (!j4.d.A()) {
myContactUsActivity.L();
HashMap hashMap = new HashMap();
hashMap.put("feedbackContent", trim);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/user/feedback/submit", hashMap, Rsp.class, true).M(cb.b.a()).R(new k2.a(15, myContactUsActivity));
break;
}
}
} else {
uc.m.y(j4.j.m(R$string.please_input_text, new Object[0]));
break;
}
break;
default:
try {
myContactUsActivity.startActivity(new Intent("android.intent.action.DIAL", Uri.parse("tel:" + myContactUsActivity.U.getCustomerServiceTelepon())));
break;
} catch (Exception e10) {
e10.printStackTrace();
}
}
}
});
final int i13 = 2;
this.O.setOnClickListener(new View.OnClickListener(this) {
public final MyContactUsActivity f11227b;
{
this.f11227b = this;
}
@Override
public final void onClick(View view) {
MyContactUsActivity myContactUsActivity = this.f11227b;
switch (i13) {
case 0:
int i132 = MyContactUsActivity.V;
myContactUsActivity.finish();
break;
case 1:
int i14 = MyContactUsActivity.V;
myContactUsActivity.M();
break;
case 2:
if (!TextUtils.isEmpty(myContactUsActivity.Q.getText().toString().trim())) {
if (!j4.d.A()) {
String trim = myContactUsActivity.Q.getText().toString().trim();
if (!j4.d.A()) {
myContactUsActivity.L();
HashMap hashMap = new HashMap();
hashMap.put("feedbackContent", trim);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/user/feedback/submit", hashMap, Rsp.class, true).M(cb.b.a()).R(new k2.a(15, myContactUsActivity));
break;
}
}
} else {
uc.m.y(j4.j.m(R$string.please_input_text, new Object[0]));
break;
}
break;
default:
try {
myContactUsActivity.startActivity(new Intent("android.intent.action.DIAL", Uri.parse("tel:" + myContactUsActivity.U.getCustomerServiceTelepon())));
break;
} catch (Exception e10) {
e10.printStackTrace();
}
}
}
});
this.R.setOnClickListener(new View.OnClickListener(this) {
public final MyContactUsActivity f11227b;
{
this.f11227b = this;
}
@Override
public final void onClick(View view) {
MyContactUsActivity myContactUsActivity = this.f11227b;
switch (i10) {
case 0:
int i132 = MyContactUsActivity.V;
myContactUsActivity.finish();
break;
case 1:
int i14 = MyContactUsActivity.V;
myContactUsActivity.M();
break;
case 2:
if (!TextUtils.isEmpty(myContactUsActivity.Q.getText().toString().trim())) {
if (!j4.d.A()) {
String trim = myContactUsActivity.Q.getText().toString().trim();
if (!j4.d.A()) {
myContactUsActivity.L();
HashMap hashMap = new HashMap();
hashMap.put("feedbackContent", trim);
com.yx.credit.base.net.k.a.w("https://api.klikumkm.co.id/api/indo/user/feedback/submit", hashMap, Rsp.class, true).M(cb.b.a()).R(new k2.a(15, myContactUsActivity));
break;
}
}
} else {
uc.m.y(j4.j.m(R$string.please_input_text, new Object[0]));
break;
}
break;
default:
try {
myContactUsActivity.startActivity(new Intent("android.intent.action.DIAL", Uri.parse("tel:" + myContactUsActivity.U.getCustomerServiceTelepon())));
break;
} catch (Exception e10) {
e10.printStackTrace();
}
}
}
});
((ViewGroup) findViewById(R$id.ll_back)).setPadding(0, m.o(YxApplication.f7325c), 0, 0);
this.L.setText(j.m(R$string.hubungi_kami, new Object[0]));
this.Q.setFilters(new InputFilter[]{new InputFilter.LengthFilter(300)});
this.Q.setHint(j.m(R$string.silakan_pilih_alasan_tertentu_hingga_karakter_replace, "300"));
N();
this.Q.addTextChangedListener(new r2(this, i10));
M();
}
}