得物.apk(点击下载) / FootMeasureSplashActivity.java
package com.shizhuang.duapp.modules.productv2.foot.activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
import androidx.annotation.Keep;
import androidx.appcompat.widget.AppCompatTextView;
import cd.c;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.productv2.api.ProductFacadeV2;
import com.shizhuang.duapp.modules.productv2.api.ProductService;
import com.shizhuang.duapp.modules.productv2.foot.fragment.SelectSexDialog;
import com.shizhuang.duapp.modules.productv2.foot.model.FootMeasureInfoModel;
import df.q;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.TuplesKt;
import kotlin.Unit;
import kotlin.jvm.JvmField;
import org.jetbrains.annotations.Nullable;
import rd.l;
import td.j;
import td.s;
import v51.e;
@Route(path = "/product/footMeasureSplash")
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/shizhuang/duapp/modules/productv2/foot/activity/FootMeasureSplashActivity;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "<init>", "()V", "du_product_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: FootMeasureSplashActivity.kt */
public final class FootMeasureSplashActivity extends BaseLeftBackActivity {
public static ChangeQuickRedirect changeQuickRedirect;
@Autowired
@JvmField
@Nullable
/* renamed from: c reason: collision with root package name */
public String f23806c;
@Autowired
@JvmField
@Nullable
public String d;
public int e;
public final Handler f = new Handler(Looper.getMainLooper());
/* renamed from: g reason: collision with root package name */
public final SelectSexDialog f23807g;
/* renamed from: h reason: collision with root package name */
public String f23808h;
public boolean i;
public HashMap j;
public class _boostWeave {
public static ChangeQuickRedirect changeQuickRedirect;
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onCreate")
@Keep
public static void ActivityMethodWeaver_onCreate(@androidx.annotation.Nullable FootMeasureSplashActivity footMeasureSplashActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{footMeasureSplashActivity, bundle}, null, changeQuickRedirect, true, 296893, new Class[]{FootMeasureSplashActivity.class, Bundle.class}, Void.TYPE).isSupported) {
jn.b bVar = jn.b.f34396a;
if (!bVar.b()) {
bVar.d(true);
}
long currentTimeMillis = System.currentTimeMillis();
FootMeasureSplashActivity.d(footMeasureSplashActivity, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (footMeasureSplashActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.foot.activity.FootMeasureSplashActivity")) {
bVar.activityOnCreateMethod(footMeasureSplashActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void ActivityMethodWeaver_onResume(FootMeasureSplashActivity footMeasureSplashActivity) {
if (!PatchProxy.proxy(new Object[]{footMeasureSplashActivity}, null, changeQuickRedirect, true, 296895, new Class[]{FootMeasureSplashActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
FootMeasureSplashActivity.f(footMeasureSplashActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (footMeasureSplashActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.foot.activity.FootMeasureSplashActivity")) {
jn.b.f34396a.activityOnResumeMethod(footMeasureSplashActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void ActivityMethodWeaver_onStart(FootMeasureSplashActivity footMeasureSplashActivity) {
if (!PatchProxy.proxy(new Object[]{footMeasureSplashActivity}, null, changeQuickRedirect, true, 296894, new Class[]{FootMeasureSplashActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
FootMeasureSplashActivity.e(footMeasureSplashActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (footMeasureSplashActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.productv2.foot.activity.FootMeasureSplashActivity")) {
jn.b.f34396a.activityOnStartMethod(footMeasureSplashActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: FootMeasureSplashActivity.kt */
public static final class a extends s<Unit> {
public static ChangeQuickRedirect changeQuickRedirect;
@Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
public void onSuccess(Object obj) {
Unit unit = (Unit) obj;
if (!PatchProxy.proxy(new Object[]{unit}, this, changeQuickRedirect, false, 296898, new Class[]{Unit.class}, Void.TYPE).isSupported) {
super.onSuccess(unit);
}
}
}
/* compiled from: FootMeasureSplashActivity.kt */
public static final class b extends s<FootMeasureInfoModel> {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ FootMeasureSplashActivity b;
/* JADX WARN: Incorrect args count in method signature: ()V */
public b(FootMeasureSplashActivity footMeasureSplashActivity) {
this.b = footMeasureSplashActivity;
}
@Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.s, td.a
public void onBzError(@Nullable l<FootMeasureInfoModel> lVar) {
if (!PatchProxy.proxy(new Object[]{lVar}, this, changeQuickRedirect, false, 296900, new Class[]{l.class}, Void.TYPE).isSupported) {
super.onBzError(lVar);
q.r(lVar != null ? lVar.c() : null);
this.b.finish();
}
}
@Override // com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
public void onSuccess(Object obj) {
FootMeasureInfoModel footMeasureInfoModel = (FootMeasureInfoModel) obj;
if (!PatchProxy.proxy(new Object[]{footMeasureInfoModel}, this, changeQuickRedirect, false, 296899, new Class[]{FootMeasureInfoModel.class}, Void.TYPE).isSupported) {
super.onSuccess(footMeasureInfoModel);
if (cd.b.a(footMeasureInfoModel)) {
this.b.f.postDelayed(new a(this), 5000);
return;
}
FootMeasureSplashActivity footMeasureSplashActivity = this.b;
String reportId = footMeasureInfoModel.getReportId();
if (!PatchProxy.proxy(new Object[]{reportId}, footMeasureSplashActivity, FootMeasureSplashActivity.changeQuickRedirect, false, 296878, new Class[]{String.class}, Void.TYPE).isSupported && reportId != null) {
footMeasureSplashActivity.f23808h = reportId;
((AppCompatTextView) footMeasureSplashActivity._$_findCachedViewById(R.id.goReport)).setVisibility(0);
footMeasureSplashActivity.h();
if (!footMeasureSplashActivity.i && footMeasureSplashActivity.e != 0) {
footMeasureSplashActivity.g();
footMeasureSplashActivity.i = true;
}
}
}
}
}
public FootMeasureSplashActivity() {
SelectSexDialog selectSexDialog = new SelectSexDialog();
selectSexDialog.x(new FootMeasureSplashActivity$$special$$inlined$apply$lambda$1(this));
Unit unit = Unit.INSTANCE;
this.f23807g = selectSexDialog;
}
public static void d(FootMeasureSplashActivity footMeasureSplashActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, footMeasureSplashActivity, changeQuickRedirect, false, 296886, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void e(FootMeasureSplashActivity footMeasureSplashActivity) {
if (!PatchProxy.proxy(new Object[0], footMeasureSplashActivity, changeQuickRedirect, false, 296888, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static void f(FootMeasureSplashActivity footMeasureSplashActivity) {
if (!PatchProxy.proxy(new Object[0], footMeasureSplashActivity, changeQuickRedirect, false, 296890, new Class[0], Void.TYPE).isSupported) {
super.onResume();
}
}
public View _$_findCachedViewById(int i3) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 296883, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.j == null) {
this.j = new HashMap();
}
View view = (View) this.j.get(Integer.valueOf(i3));
if (view != null) {
return view;
}
View findViewById = findViewById(i3);
this.j.put(Integer.valueOf(i3), findViewById);
return findViewById;
}
public final void fetchData() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296877, new Class[0], Void.TYPE).isSupported) {
ProductFacadeV2.f23068a.t(true, new b(this));
}
}
public final void g() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296879, new Class[0], Void.TYPE).isSupported) {
ProductFacadeV2.f23068a.s(this.f23808h, this.e, new a());
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public int getLayout() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296874, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_foot_measure_splash;
}
public final void h() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296881, new Class[0], Void.TYPE).isSupported) {
this.f.removeCallbacksAndMessages(null);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initData() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296875, new Class[0], Void.TYPE).isSupported) {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296876, new Class[0], Void.TYPE).isSupported) {
ProductFacadeV2 productFacadeV2 = ProductFacadeV2.f23068a;
String str = this.f23806c;
String str2 = this.d;
e eVar = new e(this);
if (!PatchProxy.proxy(new Object[]{str, str2, eVar}, productFacadeV2, ProductFacadeV2.changeQuickRedirect, false, 285301, new Class[]{String.class, String.class, s.class}, Void.TYPE).isSupported) {
j.doRequest(((ProductService) j.getJavaGoApi(ProductService.class)).footScan(c.b(TuplesKt.to("deviceNum", str), TuplesKt.to("loginSign", str2))), eVar);
}
}
this.f23807g.k(getSupportFragmentManager());
co.c i3 = ((DuImageLoaderView) _$_findCachedViewById(R.id.loadingImg)).i("https://cdn.poizon.com/node-common/461f995200c5d86385ce85f65af4e963.png");
i3.C = true;
i3.x();
((AppCompatTextView) _$_findCachedViewById(R.id.goReport)).setOnClickListener(new FootMeasureSplashActivity$initData$1(this));
}
}
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 296885, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onDestroy() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296880, new Class[0], Void.TYPE).isSupported) {
super.onDestroy();
h();
}
}
@Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296889, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onResume(this);
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 296887, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onStart(this);
}
}
}