正在查看: Easycash v3.75.13 应用的 JobIndustryInformationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Easycash v3.75.13 应用的 JobIndustryInformationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fintopia.lender.module.profile;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import butterknife.BindView;
import butterknife.OnClick;
import com.fintopia.lender.R;
import com.fintopia.lender.module.LabelBean;
import com.fintopia.lender.module.baseui.LenderCommonActivity;
import com.fintopia.lender.module.common.LenderLandingActivity;
import com.fintopia.lender.module.network.ILenderApiRoutes;
import com.fintopia.lender.module.rdl.model.LenderIndustryVocationResponse;
import com.fintopia.lender.widget.LenderTwoRowSelectCompanion;
import com.lingyue.idnbaselib.framework.lifecycle.LifecycleEvent;
import com.lingyue.idnbaselib.framework.lifecycle.m;
import com.lingyue.idnbaselib.model.IdnBaseResult;
import com.lingyue.idnbaselib.model.IdnObserver;
import com.lingyue.supertoolkit.widgets.BaseUtils;
import com.veda.android.bananalibrary.infrastructure.BaseActivity;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import java.util.HashMap;
public class JobIndustryInformationActivity extends LenderCommonActivity {
@BindView(4710)
Button btnSent;
@BindView(5678)
TextView tvIndustryVocation;
private LenderTwoRowSelectCompanion f144u;
private LabelBean f145v;
private LabelBean f146w;
private void O() {
LenderTwoRowSelectCompanion lenderTwoRowSelectCompanion = new LenderTwoRowSelectCompanion(getString(R.string.industry_vocation), this.tvIndustryVocation, this);
this.f144u = lenderTwoRowSelectCompanion;
lenderTwoRowSelectCompanion.e(new LenderTwoRowSelectCompanion.TwoRowSelectViewListener() {
@Override
public void a() {
JobIndustryInformationActivity.this.Q();
}
@Override
public void b(View view, LabelBean labelBean, LabelBean labelBean2) {
JobIndustryInformationActivity.this.f145v = labelBean;
JobIndustryInformationActivity.this.f146w = labelBean2;
JobIndustryInformationActivity.this.tvIndustryVocation.setText(labelBean.label + " " + labelBean2.label);
JobIndustryInformationActivity.this.btnSent.setEnabled(true);
}
});
}
private void P() {
if (this.f145v == null || this.f146w == null) {
return;
}
this.tvIndustryVocation.setText(this.f145v.label + " " + this.f146w.label);
this.btnSent.setEnabled(true);
}
public void Q() {
showLoadingDialog();
((ILenderApiRoutes) this.apiHelper.a()).x().K(AndroidSchedulers.a()).a(new IdnObserver<LenderIndustryVocationResponse>(this) {
public void onSuccess(LenderIndustryVocationResponse lenderIndustryVocationResponse) {
JobIndustryInformationActivity.this.dismissLoadingDialog();
JobIndustryInformationActivity.this.f144u.d(lenderIndustryVocationResponse.body);
JobIndustryInformationActivity.this.f144u.f();
}
});
}
private void R(HashMap<String, String> hashMap) {
showLoadingDialog();
((ILenderApiRoutes) this.apiHelper.a()).i1(hashMap).a(new IdnObserver<IdnBaseResult>(getCallBack()) {
public void onSuccess(IdnBaseResult idnBaseResult) {
JobIndustryInformationActivity.this.dismissLoadingDialog();
LenderLandingActivity.startLandingActivity(JobIndustryInformationActivity.this);
JobIndustryInformationActivity.this.finish();
}
});
}
public static void startJobIndustryInformationActivity(Activity activity) {
activity.startActivity(new Intent(activity, (Class<?>) JobIndustryInformationActivity.class));
}
@Override
protected void A() {
super.A();
((BaseActivity) this).e.setVisibility(8);
O();
}
@Override
protected void G(@NonNull Bundle bundle) {
super.G(bundle);
bundle.putSerializable("paramIndustry", this.f145v);
bundle.putSerializable("paramProfession", this.f146w);
}
@OnClick({4710})
public void clickConfirm() {
if (BaseUtils.l()) {
return;
}
HashMap<String, String> hashMap = new HashMap<>();
hashMap.put("industry", this.f145v.value);
hashMap.put("profession", this.f146w.value);
R(hashMap);
}
@Override
public int getLayoutID() {
return R.layout.lender_activity_job_industry_information;
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
return false;
}
@Override
public Disposable runOnActiveEvent(Runnable runnable) {
return m.a(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnCreated(@NonNull Runnable runnable) {
return m.b(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnDestroy(@NonNull Runnable runnable) {
return m.c(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnEvent(@NonNull LifecycleEvent lifecycleEvent, @Nullable Runnable runnable) {
return m.d(this, lifecycleEvent, runnable);
}
@Override
public Disposable runOnEvents(@NonNull LifecycleEvent[] lifecycleEventArr, @Nullable Runnable runnable) {
return m.e(this, lifecycleEventArr, runnable);
}
@OnClick({5678})
public void showIndustryVocation(View view) {
if (BaseUtils.l()) {
return;
}
this.f144u.c();
}
@Override
protected void w() {
super.w();
P();
}
@Override
protected void y(@NonNull Bundle bundle) {
super.y(bundle);
this.f145v = (LabelBean) bundle.getSerializable("paramIndustry");
this.f146w = (LabelBean) bundle.getSerializable("paramProfession");
}
}