正在查看: PrestaMax v1.0.9 应用的 HomeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestaMax v1.0.9 应用的 HomeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.prestamx.max.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.MotionEvent;
import android.view.View;
import androidx.appcompat.widget.LinearLayoutCompat;
import androidx.core.view.kheskwzd;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.prestamx.max.R$color;
import com.prestamx.max.R$id;
import com.prestamx.max.R$layout;
import com.prestamx.max.activity.HomeActivity;
import com.prestamx.max.bean.AppVersionBean;
import com.prestamx.max.bean.AuthBean;
import com.prestamx.max.bean.BankListBean;
import com.prestamx.max.bean.HomeBean;
import com.prestamx.max.bean.HttpBean;
import com.prestamx.max.bean.ListDataBean;
import com.prestamx.max.bean.ShapeBean;
import com.prestamx.max.java_calss.ActivityUtil;
import com.prestamx.max.java_calss.AppUtil;
import com.prestamx.max.java_calss.DevicesService;
import com.prestamx.max.java_calss.vpqvb;
import com.prestamx.max.room.PointEnum;
import com.prestamx.max.service.MaxMessagingEnum;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import kitld.gdlglvuk;
import kitld.imtveu;
import kitld.okynidv;
import kitld.tfcj;
import kitld.xhtwr;
import kitld.zgjogoc;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class HomeActivity extends MaxActivity {
public jwzpdeim.nmqbnjf f13396jzzsan;
public jwzpdeim.pzetpkg f13399nqymzx;
public kitld.okynidv f13400nzpf;
public jwzpdeim.hanydiwz f13403qwppmv;
public AuthBean f13404sjdatecqy;
public HomeBean f13406vpqvb;
public Fragment f13408wdmirpab;
public kitld.aiyptt f13410yvxno;
public LinearLayoutCompat f13405vikxvh = null;
public LinearLayoutCompat f13397ksocihbb = null;
public LinearLayoutCompat f13407wavzltwms = null;
public boolean f13401ogbxud = false;
public int f13402pzetpkg = 1000;
public String f13411yyqsz = "";
public final View.OnClickListener f13395imtveu = new View.OnClickListener() {
@Override
public final void onClick(View view) {
HomeActivity.this.gtqexqrj(view);
}
};
public androidx.appcompat.app.ogbxud f13409xhtwr = null;
public androidx.appcompat.app.ogbxud f13398lcivfdpk = null;
public enum FragmentTag {
Home,
Lists,
My
}
public enum OrderStatusType {
View(Arrays.asList(22, 11, 12, 32, 31, 10)),
Fail(Arrays.asList(-10, -12, -30, -32)),
Success(Collections.singletonList(21)),
Overdue(Collections.singletonList(40));
private final List<Integer> array;
OrderStatusType(List list) {
this.array = list;
}
public List zppskyagv() {
return this.array;
}
}
public class emazevgh implements Callback {
public emazevgh() {
}
public void onFailure(Call call, Throwable th) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.rubjtuopd(homeActivity.f13410yvxno, th);
}
public void onResponse(Call call, Response response) {
HomeActivity.this.f13410yvxno.dismiss();
if (!response.isSuccessful() || response.body() == null) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.momzvk(homeActivity.f13410yvxno, response);
return;
}
HttpBean httpBean = (HttpBean) response.body();
if (!"200".equals(httpBean.tqbmypjx)) {
AppUtil.slyvsmo(HomeActivity.this);
return;
}
HomeActivity homeActivity2 = HomeActivity.this;
AuthBean authBean = (AuthBean) httpBean.bdwwtyzq;
homeActivity2.f13404sjdatecqy = authBean;
if (authBean == null) {
AppUtil.slyvsmo(homeActivity2);
}
}
}
public class etol implements Callback {
public etol() {
}
public void onFailure(Call call, Throwable th) {
HomeActivity.this.vehppha(null);
}
public void onResponse(Call call, Response response) {
if (response.isSuccessful() && response.body() != null && Objects.equals(((HttpBean) response.body()).tqbmypjx, "200")) {
AppVersionBean appVersionBean = (AppVersionBean) ((HttpBean) response.body()).bdwwtyzq;
if (appVersionBean == null || appVersionBean.mwowwskti() == null || appVersionBean.mwowwskti().compareTo("1.0.9") <= 0) {
HomeActivity.this.vehppha(null);
return;
}
new kitld.emazevgh(HomeActivity.this, appVersionBean).show();
if (appVersionBean.zwfgajm().intValue() != 1) {
HomeActivity.this.vehppha(null);
}
}
}
}
public class mwowwskti implements Callback {
public final FragmentTag f13424mwowwskti;
public mwowwskti(FragmentTag fragmentTag) {
this.f13424mwowwskti = fragmentTag;
}
public void onFailure(Call call, Throwable th) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.rubjtuopd(homeActivity.f13410yvxno, th);
}
public void onResponse(Call call, Response response) {
if (response.isSuccessful() && response.body() != null) {
HttpBean httpBean = (HttpBean) response.body();
if ("200".equals(httpBean.tqbmypjx)) {
HomeActivity homeActivity = HomeActivity.this;
HomeBean homeBean = (HomeBean) httpBean.bdwwtyzq;
homeActivity.f13406vpqvb = homeBean;
if (homeBean != null) {
hzmc.mwowwskti.nmqbnjf(homeActivity).hanydiwz(HomeActivity.this.f13406vpqvb.zwfgajm());
HomeActivity homeActivity2 = HomeActivity.this;
homeActivity2.iyrvexjv(this.f13424mwowwskti, homeActivity2.f13406vpqvb);
HomeActivity homeActivity3 = HomeActivity.this;
com.prestamx.max.java_calss.vpqvb.zppskyagv(homeActivity3, homeActivity3.f13406vpqvb);
HomeActivity homeActivity4 = HomeActivity.this;
homeActivity4.oqow(homeActivity4.f13406vpqvb);
com.prestamx.max.java_calss.vikxvh.zppskyagv().aiyptt(com.prestamx.max.java_calss.vikxvh.mwowwskti(HomeActivity.this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
if (HomeActivity.this.f13406vpqvb.nmqbnjf() == null) {
HomeActivity homeActivity5 = HomeActivity.this;
homeActivity5.vehppha(homeActivity5.f13406vpqvb);
return;
}
return;
}
}
}
HomeActivity homeActivity6 = HomeActivity.this;
homeActivity6.momzvk(homeActivity6.f13410yvxno, response);
}
}
public class nmqbnjf implements Callback {
public nmqbnjf() {
}
public void onFailure(Call call, Throwable th) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.rubjtuopd(homeActivity.f13410yvxno, th);
}
public void onResponse(Call call, Response response) {
HomeActivity.this.f13410yvxno.dismiss();
if (!response.isSuccessful() || response.body() == null) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.momzvk(homeActivity.f13410yvxno, response);
return;
}
HttpBean httpBean = (HttpBean) response.body();
if (!"200".equals(httpBean.tqbmypjx)) {
AppUtil.slyvsmo(HomeActivity.this);
return;
}
ListDataBean listDataBean = (ListDataBean) httpBean.bdwwtyzq;
if (listDataBean != null) {
HomeActivity.this.f13399nqymzx.gkkrxd(listDataBean);
} else {
AppUtil.slyvsmo(HomeActivity.this);
}
}
}
public class slyvsmo implements gdlglvuk.mwowwskti {
public slyvsmo() {
}
@Override
public void emazevgh(kitld.gdlglvuk gdlglvukVar) {
gdlglvukVar.dismiss();
ActivityUtil.zckadicr(HomeActivity.this);
}
@Override
public void mwowwskti(kitld.gdlglvuk gdlglvukVar) {
gdlglvukVar.dismiss();
}
}
public class zppskyagv implements Callback {
public zppskyagv() {
}
public void onFailure(Call call, Throwable th) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.rubjtuopd(homeActivity.f13410yvxno, th);
}
public void onResponse(Call call, Response response) {
BankListBean bankListBean;
BankListBean.Tcjhhf tcjhhf;
HomeActivity.this.f13410yvxno.dismiss();
if (response.isSuccessful() && response.body() != null && (bankListBean = (BankListBean) ((HttpBean) response.body()).bdwwtyzq) != null && !bankListBean.mwowwskti().isEmpty()) {
Iterator it = bankListBean.mwowwskti().iterator();
while (true) {
if (!it.hasNext()) {
tcjhhf = null;
break;
} else {
tcjhhf = (BankListBean.Tcjhhf) it.next();
if (tcjhhf.zwfgajm().intValue() == 1) {
break;
}
}
}
if (tcjhhf != null) {
HomeActivity.this.f13396jzzsan.izhfubty(tcjhhf);
return;
}
}
HomeActivity homeActivity = HomeActivity.this;
homeActivity.momzvk(homeActivity.f13410yvxno, response);
}
}
public class zwfgajm implements Callback {
public final HomeBean f13429mwowwskti;
public zwfgajm(HomeBean homeBean) {
this.f13429mwowwskti = homeBean;
}
public void onFailure(Call call, Throwable th) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.rubjtuopd(homeActivity.f13410yvxno, th);
}
public void onResponse(Call call, Response response) {
HomeActivity.this.f13410yvxno.dismiss();
if (!response.isSuccessful() || response.body() == null) {
HomeActivity homeActivity = HomeActivity.this;
homeActivity.momzvk(homeActivity.f13410yvxno, response);
return;
}
HttpBean httpBean = (HttpBean) response.body();
if (!"200".equals(httpBean.tqbmypjx)) {
AppUtil.slyvsmo(HomeActivity.this);
return;
}
ListDataBean listDataBean = (ListDataBean) httpBean.bdwwtyzq;
if (listDataBean == null) {
AppUtil.slyvsmo(HomeActivity.this);
} else {
HomeActivity.this.f13399nqymzx.uekr(this.f13429mwowwskti, listDataBean);
com.prestamx.max.java_calss.vikxvh.zppskyagv().zckadicr(com.prestamx.max.java_calss.vikxvh.mwowwskti(HomeActivity.this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
}
}
}
public class zybqm implements Callback {
public final HomeBean f13431mwowwskti;
public zybqm(HomeBean homeBean) {
this.f13431mwowwskti = homeBean;
}
public void nmqbnjf(kitld.xhtwr xhtwrVar) {
HomeActivity.this.pazucrocd();
xhtwrVar.dismiss();
}
public void slyvsmo(kitld.tfcj tfcjVar) {
HomeActivity.this.pazucrocd();
tfcjVar.dismiss();
}
public void zppskyagv(kitld.imtveu imtveuVar) {
imtveuVar.dismiss();
HomeActivity.this.nlhgs();
}
public void onFailure(Call call, Throwable th) {
}
public void onResponse(Call call, Response response) {
ShapeBean shapeBean;
HomeBean homeBean;
if (response.isSuccessful() && response.body() != null && Objects.equals(((HttpBean) response.body()).tqbmypjx, "200") && (shapeBean = (ShapeBean) ((HttpBean) response.body()).bdwwtyzq) != null && shapeBean.mwowwskti().intValue() == 1) {
if (!hzmc.mwowwskti.nmqbnjf(HomeActivity.this).nqymzx()) {
HomeActivity.this.f13398lcivfdpk = new kitld.imtveu(HomeActivity.this).sjdatecqy(new imtveu.mwowwskti() {
@Override
public final void mwowwskti(kitld.imtveu imtveuVar) {
HomeActivity.zybqm.this.zppskyagv(imtveuVar);
}
});
HomeActivity.this.f13398lcivfdpk.show();
return;
}
if (HomeActivity.this.f13409xhtwr != null || (homeBean = this.f13431mwowwskti) == null || homeBean.nmqbnjf() != null || shapeBean.emazevgh() == null || shapeBean.emazevgh().emazevgh() == null || shapeBean.emazevgh().emazevgh().longValue() <= 0) {
return;
}
if (hzmc.mwowwskti.nmqbnjf(HomeActivity.this).etol(-1) != 0) {
HomeActivity.this.f13409xhtwr = new kitld.tfcj(HomeActivity.this).sjdatecqy(shapeBean.emazevgh().zwfgajm(), shapeBean.emazevgh().mwowwskti(), shapeBean.emazevgh().emazevgh().longValue(), new tfcj.emazevgh() {
@Override
public final void mwowwskti(kitld.tfcj tfcjVar) {
HomeActivity.zybqm.this.slyvsmo(tfcjVar);
}
});
HomeActivity.this.f13409xhtwr.show();
} else {
hzmc.mwowwskti.nmqbnjf(HomeActivity.this).wdmirpab(1);
HomeActivity.this.f13409xhtwr = new kitld.xhtwr(HomeActivity.this).sjdatecqy(shapeBean.emazevgh().emazevgh().longValue(), new xhtwr.emazevgh() {
@Override
public final void mwowwskti(kitld.xhtwr xhtwrVar) {
HomeActivity.zybqm.this.nmqbnjf(xhtwrVar);
}
});
HomeActivity.this.f13409xhtwr.show();
}
}
}
}
public void dpvu(HomeBean homeBean) {
try {
kitld.okynidv ogbxud2 = new kitld.okynidv(this).yvxno(homeBean).ogbxud(new okynidv.mwowwskti() {
@Override
public final void mwowwskti(kitld.okynidv okynidvVar) {
HomeActivity.this.rbxfetppi(okynidvVar);
}
});
this.f13400nzpf = ogbxud2;
ogbxud2.show();
} catch (Exception e) {
e.printStackTrace();
}
}
public void gagkjk(final HomeBean homeBean, long j) {
if (j > 1000) {
new Handler(Looper.getMainLooper()).postDelayed(new Runnable() {
@Override
public final void run() {
HomeActivity.this.dpvu(homeBean);
}
}, 200L);
}
}
public void gtqexqrj(View view) {
if (!hzmc.mwowwskti.nmqbnjf(this).nqymzx()) {
nlhgs();
return;
}
LinearLayoutCompat linearLayoutCompat = this.f13405vikxvh;
linearLayoutCompat.setSelected(linearLayoutCompat.getId() == view.getId());
LinearLayoutCompat linearLayoutCompat2 = this.f13397ksocihbb;
linearLayoutCompat2.setSelected(linearLayoutCompat2.getId() == view.getId());
LinearLayoutCompat linearLayoutCompat3 = this.f13407wavzltwms;
linearLayoutCompat3.setSelected(linearLayoutCompat3.getId() == view.getId());
if (this.f13397ksocihbb.getId() == view.getId()) {
qpcdhxz.nmqbnjf.etol(PointEnum.POINT_LIST, this);
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_CENTER);
FragmentTag fragmentTag = FragmentTag.Lists;
ejsu(fragmentTag, this.f13399nqymzx);
xodtgxpxb(fragmentTag);
return;
}
if (this.f13407wavzltwms.getId() == view.getId()) {
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_LIST);
qpcdhxz.nmqbnjf.etol(PointEnum.POINT_CENTER, this);
ejsu(FragmentTag.My, this.f13403qwppmv);
} else {
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_LIST);
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_CENTER);
FragmentTag fragmentTag2 = FragmentTag.Home;
ejsu(fragmentTag2, this.f13396jzzsan);
xodtgxpxb(fragmentTag2);
}
}
public void rbxfetppi(kitld.okynidv okynidvVar) {
okynidvVar.dismiss();
pazucrocd();
}
public void yvuwlzzb(kitld.zgjogoc zgjogocVar, List list) {
zgjogocVar.dismiss();
if (list == null || list.isEmpty()) {
AppUtil.slyvsmo(this);
} else {
ActivityUtil.exkcc(this, (ArrayList) list, 2);
}
}
public final void aociu(HomeBean homeBean) {
if (homeBean == null) {
AppUtil.slyvsmo(this);
return;
}
HomeBean.Aoarsxy mwowwskti2 = homeBean.mwowwskti();
if (mwowwskti2 == null || !Boolean.FALSE.equals(mwowwskti2.mwowwskti())) {
if (homeBean.zppskyagv() == null) {
AppUtil.slyvsmo(this);
return;
}
if (Boolean.FALSE.equals(homeBean.zppskyagv().emazevgh())) {
HomeBean.Iruzzb nmqbnjf2 = homeBean.nmqbnjf();
if (nmqbnjf2 != null) {
Integer nmqbnjf3 = nmqbnjf2.nmqbnjf();
if (OrderStatusType.Fail.zppskyagv().contains(nmqbnjf3) && mwowwskti2 != null && mwowwskti2.emazevgh() != null && !mwowwskti2.emazevgh().isEmpty()) {
if (!(this.f13396jzzsan instanceof jwzpdeim.zwfgajm)) {
this.f13396jzzsan = new jwzpdeim.zwfgajm();
}
com.prestamx.max.java_calss.vikxvh.zppskyagv().okynidv(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
} else if (OrderStatusType.View.zppskyagv().contains(nmqbnjf3)) {
if (!(this.f13396jzzsan instanceof jwzpdeim.zckadicr)) {
this.f13396jzzsan = new jwzpdeim.zckadicr();
}
gdlglvuk();
} else if (OrderStatusType.Success.zppskyagv().contains(nmqbnjf3)) {
if (!(this.f13396jzzsan instanceof jwzpdeim.momzvk)) {
this.f13396jzzsan = new jwzpdeim.momzvk();
}
com.prestamx.max.java_calss.vikxvh.zppskyagv().nzpf(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
} else if (OrderStatusType.Overdue.zppskyagv().contains(nmqbnjf3)) {
if (!(this.f13396jzzsan instanceof jwzpdeim.aiyptt)) {
this.f13396jzzsan = new jwzpdeim.aiyptt();
}
com.prestamx.max.java_calss.vikxvh.zppskyagv().yyqsz(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
} else if (homeBean.zppskyagv().mwowwskti() == null || homeBean.zppskyagv().mwowwskti().isEmpty()) {
if (!(this.f13396jzzsan instanceof jwzpdeim.bhwkhnew)) {
this.f13396jzzsan = new jwzpdeim.bhwkhnew();
}
} else if (!(this.f13396jzzsan instanceof jwzpdeim.zybqm)) {
this.f13396jzzsan = new jwzpdeim.zybqm();
}
} else if (homeBean.zppskyagv().mwowwskti() == null || homeBean.zppskyagv().mwowwskti().isEmpty()) {
if (!(this.f13396jzzsan instanceof jwzpdeim.bhwkhnew)) {
this.f13396jzzsan = new jwzpdeim.bhwkhnew();
}
} else if (!(this.f13396jzzsan instanceof jwzpdeim.zybqm)) {
this.f13396jzzsan = new jwzpdeim.zybqm();
}
} else if (homeBean.zppskyagv().mwowwskti() == null || homeBean.zppskyagv().mwowwskti().isEmpty()) {
if (!(this.f13396jzzsan instanceof jwzpdeim.bhwkhnew)) {
this.f13396jzzsan = new jwzpdeim.bhwkhnew();
}
com.prestamx.max.java_calss.vikxvh.zppskyagv().xyrcey(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
} else if (!(this.f13396jzzsan instanceof jwzpdeim.zybqm)) {
this.f13396jzzsan = new jwzpdeim.zybqm();
com.prestamx.max.java_calss.vikxvh.zppskyagv().ogbxud(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
}
} else if (!(this.f13396jzzsan instanceof jwzpdeim.exkcc)) {
this.f13396jzzsan = new jwzpdeim.exkcc();
com.prestamx.max.java_calss.vikxvh.zppskyagv().zppskyagv(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
}
ejsu(FragmentTag.Home, this.f13396jzzsan);
this.f13396jzzsan.nwgkddbb(homeBean);
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
Fragment fragment = this.f13408wdmirpab;
if (fragment instanceof jwzpdeim.pzetpkg) {
qpcdhxz.nmqbnjf.vikxvh(PointEnum.POINT_LIST, motionEvent);
} else if (fragment instanceof jwzpdeim.hanydiwz) {
qpcdhxz.nmqbnjf.vikxvh(PointEnum.POINT_CENTER, motionEvent);
}
return super.dispatchTouchEvent(motionEvent);
}
public final void ejsu(FragmentTag fragmentTag, Fragment fragment) {
FragmentManager jzzsan2 = jzzsan();
Fragment xodtgxpxb2 = jzzsan2.xodtgxpxb(fragmentTag.name());
Fragment fragment2 = this.f13408wdmirpab;
if (xodtgxpxb2 == fragment2 && xodtgxpxb2 == fragment) {
return;
}
if (xodtgxpxb2 != null) {
if (fragment2 == null) {
this.f13408wdmirpab = fragment;
}
if (fragmentTag != FragmentTag.Home || xodtgxpxb2 == fragment) {
jzzsan2.nqymzx().qwppmv(true).vpqvb(this.f13408wdmirpab).yvxno(xodtgxpxb2).etol();
this.f13408wdmirpab = xodtgxpxb2;
} else {
androidx.fragment.app.lcivfdpk nqymzx2 = jzzsan2.nqymzx();
nqymzx2.qwppmv(true).vpqvb(this.f13408wdmirpab).sjdatecqy(xodtgxpxb2);
if (jzzsan2.kinq(fragment.lcivfdpk()) == null) {
nqymzx2.emazevgh(R$id.fragmentContainerView, fragment, fragmentTag.name()).etol();
} else {
nqymzx2.yvxno(fragment).etol();
}
this.f13408wdmirpab = fragment;
}
} else {
androidx.fragment.app.lcivfdpk nqymzx3 = jzzsan2.nqymzx();
nqymzx3.qwppmv(true);
Fragment fragment3 = this.f13408wdmirpab;
if (fragment3 != null) {
nqymzx3.vpqvb(fragment3);
}
if (jzzsan2.kinq(fragment.lcivfdpk()) == null) {
nqymzx3.emazevgh(R$id.fragmentContainerView, fragment, fragmentTag.name()).etol();
} else {
nqymzx3.yvxno(fragment).etol();
}
this.f13408wdmirpab = fragment;
}
if (this.f13408wdmirpab instanceof jwzpdeim.pzetpkg) {
getWindow().setStatusBarColor(-1);
kheskwzd.mwowwskti(getWindow(), findViewById(R$id.toolbar)).mwowwskti(true);
} else {
getWindow().setStatusBarColor(rubjtuopd.mwowwskti.zwfgajm(this, R$color.theme));
kheskwzd.mwowwskti(getWindow(), findViewById(R$id.toolbar)).mwowwskti(false);
}
xmltt();
}
public final void gdlglvuk() {
this.f13410yvxno.show();
com.prestamx.max.java_calss.vikxvh.zppskyagv().nmqbnjf(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(new zppskyagv());
}
public final void ijuky() {
HashMap hashMap = new HashMap();
hashMap.put("ovqslfn", "com.prestamx.max");
com.prestamx.max.java_calss.vikxvh.zppskyagv().kbpjcqc(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, hashMap)).enqueue(new etol());
}
public final void iyrvexjv(FragmentTag fragmentTag, HomeBean homeBean) {
if (homeBean == null) {
this.f13410yvxno.dismiss();
AppUtil.slyvsmo(this);
return;
}
if (fragmentTag == FragmentTag.Home) {
aociu(homeBean);
ufluaas();
} else if (fragmentTag == FragmentTag.Lists) {
punms(homeBean);
} else {
ufluaas();
}
String str = this.f13411yyqsz;
if (str == null || str.isEmpty()) {
return;
}
try {
yzchl(FragmentTag.Lists);
} catch (Exception e) {
e.printStackTrace();
}
}
public final void kinq(Intent intent) {
if (com.prestamx.max.java_calss.zppskyagv.nmqbnjf(this, intent) == MaxMessagingEnum.LOGIN) {
nlhgs();
return;
}
String stringExtra = intent.getStringExtra("sdjflcno");
if (stringExtra == null || stringExtra.isEmpty()) {
return;
}
this.f13411yyqsz = stringExtra;
}
public final void krmk() {
HomeBean homeBean = this.f13406vpqvb;
if (homeBean == null || homeBean.zppskyagv() == null) {
AppUtil.slyvsmo(this);
xodtgxpxb(FragmentTag.Home);
return;
}
List mwowwskti2 = this.f13406vpqvb.zppskyagv().mwowwskti();
if (mwowwskti2.isEmpty()) {
AppUtil.slyvsmo(this);
return;
}
ArrayList arrayList = new ArrayList();
arrayList.add((HomeBean.Tpqdbmc.Ejpheui) mwowwskti2.get(0));
ActivityUtil.exkcc(this, arrayList, 1);
}
public final void nclqza() {
AppUtil.zwfgajm(this, 13);
if (this.f13406vpqvb != null) {
AuthBean authBean = this.f13404sjdatecqy;
if (authBean == null) {
AppUtil.slyvsmo(this);
ufluaas();
} else if (authBean.emazevgh().intValue() != 100) {
ptyq();
} else if (Boolean.TRUE.equals(this.f13406vpqvb.zppskyagv().emazevgh())) {
new kitld.zgjogoc(this).wdmirpab(this.f13406vpqvb.zppskyagv().mwowwskti()).nzpf(this.f13406vpqvb.slyvsmo().intValue()).xyrcey(new zgjogoc.emazevgh() {
@Override
public final void mwowwskti(kitld.zgjogoc zgjogocVar, List list) {
HomeActivity.this.yvuwlzzb(zgjogocVar, list);
}
}).show();
} else {
krmk();
}
} else {
AppUtil.slyvsmo(this);
xodtgxpxb(FragmentTag.Home);
}
DevicesService.slyvsmo(this, null);
}
public void nlhgs() {
startActivity(ActivityUtil.vpqvb(this));
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R$layout.activity_home);
if (bundle != null) {
FragmentManager jzzsan2 = jzzsan();
if (!jzzsan2.aociu().isEmpty()) {
androidx.fragment.app.lcivfdpk nqymzx2 = jzzsan().nqymzx();
Iterator it = jzzsan2.aociu().iterator();
while (it.hasNext()) {
nqymzx2.sjdatecqy((Fragment) it.next());
}
nqymzx2.zppskyagv();
}
}
this.f13410yvxno = new kitld.aiyptt(this);
com.prestamx.max.java_calss.zppskyagv.slyvsmo(this);
kinq(getIntent());
this.f13396jzzsan = new jwzpdeim.zybqm();
this.f13399nqymzx = new jwzpdeim.pzetpkg();
this.f13403qwppmv = new jwzpdeim.hanydiwz();
xuuuvdsc();
ejsu(FragmentTag.Home, this.f13396jzzsan);
ijuky();
com.prestamx.max.java_calss.vikxvh.zppskyagv().pzetpkg(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(com.prestamx.max.java_calss.vikxvh.nmqbnjf());
ActivityUtil.tfcj(this);
}
@Override
public void onDestroy() {
kitld.okynidv okynidvVar = this.f13400nzpf;
if (okynidvVar != null) {
okynidvVar.dismiss();
}
super.onDestroy();
}
@Override
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
kinq(intent);
}
@Override
public void onPause() {
super.onPause();
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_LIST);
qpcdhxz.nmqbnjf.mwowwskti(PointEnum.POINT_CENTER);
}
@Override
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i, strArr, iArr);
if (i == this.f13402pzetpkg) {
StringBuilder sb = new StringBuilder();
for (String str : AppUtil.mwowwskti()) {
if (!"android.permission.READ_SMS".equals(str) && rubjtuopd.mwowwskti.mwowwskti(this, str) != 0) {
if (sb.length() > 0) {
sb.append("\n");
}
sb.append(str.replace(com.prestamx.max.java_calss.yyqsz.zppskyagv("WHH4uAcHAlvtzJFdtixvPzjO2JFid8clyDaAwXJyzcw="), ""));
}
}
if (sb.length() == 0) {
nclqza();
} else {
new kitld.gdlglvuk(this).nqymzx(new slyvsmo()).qwppmv(sb.toString()).show();
}
}
}
@Override
public void onResume() {
super.onResume();
if (hzmc.mwowwskti.nmqbnjf(this).nqymzx()) {
if (!this.f13401ogbxud) {
Fragment fragment = this.f13408wdmirpab;
if (fragment instanceof jwzpdeim.pzetpkg) {
qpcdhxz.nmqbnjf.etol(PointEnum.POINT_LIST, this);
xodtgxpxb(FragmentTag.Lists);
} else if (fragment instanceof jwzpdeim.hanydiwz) {
qpcdhxz.nmqbnjf.etol(PointEnum.POINT_CENTER, this);
xodtgxpxb(FragmentTag.My);
} else {
xodtgxpxb(FragmentTag.Home);
}
}
androidx.appcompat.app.ogbxud ogbxudVar = this.f13398lcivfdpk;
if (ogbxudVar != null) {
ogbxudVar.dismiss();
}
}
this.f13401ogbxud = AppUtil.nmqbnjf(this);
}
@Override
public void onStart() {
super.onStart();
xmltt();
}
@Override
public void onStop() {
super.onStop();
ActivityUtil.etol(this);
}
public final void oqow(final HomeBean homeBean) {
if (this.f13400nzpf == null) {
com.prestamx.max.java_calss.vpqvb.wavzltwms(new vpqvb.zwfgajm() {
@Override
public final void mwowwskti(long j) {
HomeActivity.this.gagkjk(homeBean, j);
}
});
}
}
public void pazucrocd() {
ArrayList arrayList = new ArrayList();
for (String str : AppUtil.mwowwskti()) {
if (rubjtuopd.mwowwskti.mwowwskti(this, str) != 0) {
arrayList.add(str);
}
}
if (arrayList.isEmpty()) {
nclqza();
} else {
this.f13401ogbxud = true;
momzvk.emazevgh.wdmirpab(this, AppUtil.mwowwskti(), this.f13402pzetpkg);
}
}
public final void ptyq() {
ActivityUtil.yebtjpgtd(this, 1);
}
public final void punms(HomeBean homeBean) {
this.f13410yvxno.show();
com.prestamx.max.java_calss.vikxvh.zppskyagv().etol(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(new zwfgajm(homeBean));
}
public final void ufluaas() {
this.f13410yvxno.show();
com.prestamx.max.java_calss.vikxvh.zppskyagv().exkcc(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(new emazevgh());
}
public final void vehppha(HomeBean homeBean) {
com.prestamx.max.java_calss.vikxvh.zppskyagv().zves(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(new zybqm(homeBean));
}
public final void xmltt() {
Fragment fragment = this.f13408wdmirpab;
if (fragment instanceof jwzpdeim.pzetpkg) {
((jwzpdeim.pzetpkg) fragment).vjdicu();
} else if (fragment instanceof jwzpdeim.hanydiwz) {
ActivityUtil.nzpf(this, 9);
} else {
ActivityUtil.nzpf(this, 5);
}
}
public void xodtgxpxb(FragmentTag fragmentTag) {
this.f13410yvxno.show();
com.prestamx.max.java_calss.vikxvh.zppskyagv().lcivfdpk(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, new HashMap())).enqueue(new mwowwskti(fragmentTag));
}
public final void xuuuvdsc() {
this.f13405vikxvh = (LinearLayoutCompat) findViewById(R$id.homeLayout);
this.f13397ksocihbb = (LinearLayoutCompat) findViewById(R$id.ordersLayout);
this.f13407wavzltwms = (LinearLayoutCompat) findViewById(R$id.miLayout);
this.f13405vikxvh.setSelected(true);
this.f13397ksocihbb.setSelected(false);
this.f13407wavzltwms.setSelected(false);
this.f13405vikxvh.setOnClickListener(this.f13395imtveu);
this.f13397ksocihbb.setOnClickListener(this.f13395imtveu);
this.f13407wavzltwms.setOnClickListener(this.f13395imtveu);
}
public void yyxafd() {
this.f13410yvxno.show();
HashMap hashMap = new HashMap();
hashMap.put("vxvpju", "1");
hashMap.put("brqlfb", "20");
com.prestamx.max.java_calss.vikxvh.zppskyagv().azijqjj(com.prestamx.max.java_calss.vikxvh.mwowwskti(this, hashMap)).enqueue(new nmqbnjf());
}
public void yzchl(FragmentTag fragmentTag) {
if (fragmentTag == FragmentTag.Home) {
this.f13395imtveu.onClick(this.f13405vikxvh);
} else if (fragmentTag == FragmentTag.Lists) {
this.f13395imtveu.onClick(this.f13397ksocihbb);
} else if (fragmentTag == FragmentTag.My) {
this.f13395imtveu.onClick(this.f13407wavzltwms);
}
}
}