得物.apk(点击下载) / MySizeActivityV2.java


package com.shizhuang.duapp.modules.userv2.setting.mysizev2;

import a40.j;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.Space;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.core.content.ContextCompat;
import cd.c;
import cd.f;
import cd.i;
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.base.inter.IViewController;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.common.widget.font.IconFontTextView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuRequestOptions;
import com.shizhuang.duapp.modules.router.ServiceManager;
import com.shizhuang.duapp.modules.user.sensor.AccountSensorPointMethod;
import com.shizhuang.duapp.modules.userv2.http.AccountService;
import com.shizhuang.duapp.modules.userv2.model.BodyModelDTO;
import com.shizhuang.duapp.modules.userv2.model.ClickAreaModel;
import com.shizhuang.duapp.modules.userv2.model.ModelClickPositionDTOS;
import com.shizhuang.duapp.modules.userv2.model.MySizeV2Model;
import com.shizhuang.duapp.modules.userv2.model.Result;
import com.shizhuang.duapp.modules.userv2.model.SizeBasicInfo;
import com.shizhuang.duapp.modules.userv2.model.Standard;
import com.shizhuang.duapp.modules.userv2.model.UserBodyAggregateData;
import com.shizhuang.duapp.modules.userv2.setting.mysizev2.fragment.SizeSelectBasicDialogFragment;
import com.shizhuang.duapp.modules.userv2.setting.mysizev2.fragment.SizeSelectDialogFragmentV2;
import com.shizhuang.duapp.modules.userv2.widget.DuExpandableLinearLayout;
import df.r0;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import jn.b;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.JvmField;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
import kotlin.properties.ReadWriteProperty;
import kotlin.reflect.KProperty;
import kotlin.text.StringsKt__StringsJVMKt;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import td.r;
import td.s;

@Route(path = "/account/MySizePageV2")
@Metadata(bv = {}, d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0006\u0010\u0007J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0007¨\u0006\b"}, d2 = {"Lcom/shizhuang/duapp/modules/userv2/setting/mysizev2/MySizeActivityV2;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "", "result", "", "onAiSkinNewResult", "<init>", "()V", "du_account_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: MySizeActivityV2.kt */
public final class MySizeActivityV2 extends BaseLeftBackActivity {
    public static ChangeQuickRedirect changeQuickRedirect;
    public static final /* synthetic */ KProperty[] l = {g.a.o(MySizeActivityV2.class, "hasAutoShowBasicDialog", "getHasAutoShowBasicDialog()Z", 0)};
    @Autowired(name = "selectTab")
    @JvmField
    @Nullable

    /* renamed from: c  reason: collision with root package name */
    public String f25657c;
    public boolean d = true;
    public final ReadWriteProperty e = i.a("account_key_has_auto_show_size_dialog", Boolean.FALSE, null);
    public final HashMap<Integer, Boolean> f = new HashMap<>();

    /* renamed from: g  reason: collision with root package name */
    public boolean f25658g;

    /* renamed from: h  reason: collision with root package name */
    public final List<Pair<Integer, Standard>> f25659h = new ArrayList();
    public Context i;
    public boolean j;
    public HashMap k;

    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 MySizeActivityV2 mySizeActivityV2, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{mySizeActivityV2, bundle}, null, changeQuickRedirect, true, 329174, new Class[]{MySizeActivityV2.class, Bundle.class}, Void.TYPE).isSupported) {
                b bVar = b.f34396a;
                if (!bVar.b()) {
                    bVar.d(true);
                }
                long currentTimeMillis = System.currentTimeMillis();
                MySizeActivityV2.e(mySizeActivityV2, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (mySizeActivityV2.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.userv2.setting.mysizev2.MySizeActivityV2")) {
                    bVar.activityOnCreateMethod(mySizeActivityV2, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void ActivityMethodWeaver_onResume(MySizeActivityV2 mySizeActivityV2) {
            if (!PatchProxy.proxy(new Object[]{mySizeActivityV2}, null, changeQuickRedirect, true, 329173, new Class[]{MySizeActivityV2.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MySizeActivityV2.d(mySizeActivityV2);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (mySizeActivityV2.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.userv2.setting.mysizev2.MySizeActivityV2")) {
                    b.f34396a.activityOnResumeMethod(mySizeActivityV2, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void ActivityMethodWeaver_onStart(MySizeActivityV2 mySizeActivityV2) {
            if (!PatchProxy.proxy(new Object[]{mySizeActivityV2}, null, changeQuickRedirect, true, 329175, new Class[]{MySizeActivityV2.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                MySizeActivityV2.f(mySizeActivityV2);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (mySizeActivityV2.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.userv2.setting.mysizev2.MySizeActivityV2")) {
                    b.f34396a.activityOnStartMethod(mySizeActivityV2, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    /* compiled from: MySizeActivityV2.kt */
    public static final class a extends r<MySizeV2Model> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ MySizeActivityV2 b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(MySizeActivityV2 mySizeActivityV2, IViewController iViewController, boolean z) {
            super(iViewController, z);
            this.b = mySizeActivityV2;
        }

        /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
        /* JADX DEBUG: Failed to insert an additional move for type inference into block B:467:0x0695 */
        /* JADX DEBUG: Multi-variable search result rejected for r2v4, resolved type: int */
        /* JADX DEBUG: Multi-variable search result rejected for r8v4, resolved type: int */
        /* JADX WARN: Multi-variable type inference failed */
        /* JADX WARN: Type inference failed for: r2v1, types: [boolean] */
        /* JADX WARN: Type inference failed for: r2v5 */
        /* JADX WARN: Type inference failed for: r2v6 */
        /* JADX WARN: Type inference failed for: r8v3 */
        /* JADX WARN: Type inference failed for: r2v9 */
        /* JADX WARN: Type inference failed for: r8v5 */
        /* JADX WARN: Type inference failed for: r2v44 */
        /* JADX WARNING: Code restructure failed: missing block: B:166:0x03f0, code lost:
            if (r4 != null) goto L_0x0415;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:177:0x0410, code lost:
            if (r4 != null) goto L_0x0415;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:213:0x047f, code lost:
            if (r4 != null) goto L_0x04a4;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:224:0x049f, code lost:
            if (r4 != null) goto L_0x04a4;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:261:0x0513, code lost:
            if (r3 != null) goto L_0x0515;
         */
        /* JADX WARNING: Code restructure failed: missing block: B:272:0x0530, code lost:
            if (r3 != null) goto L_0x0515;
         */
        /* JADX WARNING: Unknown variable types count: 1 */
        @Override // td.r, com.shizhuang.duapp.common.helper.net.facade.IViewHandler, td.a
        public void onSuccess(MySizeV2Model mySizeV2Model) {
            MySizeV2Model mySizeV2Model2;
            a aVar;
            ?? r22;
            char c5;
            int i;
            UserBodyAggregateData userBodyAggregateData;
            List<Result> userBodyStandardModels;
            boolean z;
            float f;
            UserBodyAggregateData userBodyAggregateData2;
            int i3;
            char c12;
            int i12;
            int i13;
            MySizeActivityV2 mySizeActivityV2;
            UserBodyAggregateData userBodyAggregateData3;
            List<Result> userBodyStandardModels2;
            Iterator<T> it2;
            MySizeV2Model mySizeV2Model3;
            float f12;
            int i14;
            MySizeActivityV2 mySizeActivityV22;
            int i15;
            List<Standard> standardUnitDTOList;
            IconFontTextView iconFontTextView;
            MySizeActivityV2 mySizeActivityV23;
            List<Result> userBodyStandardModels3;
            Boolean bool;
            T t;
            int i16;
            String str;
            StringBuilder sb2;
            String str2;
            String str3;
            StringBuilder sb3;
            String str4;
            String str5;
            String unit;
            List<SizeBasicInfo> standardItemDetailDTOS;
            T t4;
            boolean z4;
            List<ModelClickPositionDTOS> modelClickPositionDTOS;
            ClickAreaModel leftUp;
            Float pointY;
            ClickAreaModel leftUp2;
            Float pointX;
            Float imgHeight;
            Float imgWidth;
            MySizeV2Model mySizeV2Model4 = mySizeV2Model;
            boolean z5 = false;
            if (!PatchProxy.proxy(new Object[]{mySizeV2Model4}, this, changeQuickRedirect, false, 329176, new Class[]{MySizeV2Model.class}, Void.TYPE).isSupported) {
                super.onSuccess(mySizeV2Model4);
                MySizeActivityV2 mySizeActivityV24 = this.b;
                int i17 = 2;
                if (PatchProxy.proxy(new Object[]{mySizeV2Model4}, mySizeActivityV24, MySizeActivityV2.changeQuickRedirect, false, 329151, new Class[]{MySizeV2Model.class}, Void.TYPE).isSupported) {
                    i = 2;
                    c5 = 1;
                    r22 = 0;
                    aVar = this;
                    mySizeV2Model2 = mySizeV2Model4;
                } else {
                    String str6 = null;
                    if (PatchProxy.proxy(new Object[]{mySizeV2Model4}, mySizeActivityV24, MySizeActivityV2.changeQuickRedirect, false, 329153, new Class[]{MySizeV2Model.class}, Void.TYPE).isSupported) {
                        f = o5.i.f36333a;
                    } else {
                        UserBodyAggregateData userBodyAggregateData4 = mySizeV2Model4 != null ? mySizeV2Model4.getUserBodyAggregateData() : null;
                        BodyModelDTO bodyModelDTO = userBodyAggregateData4 != null ? userBodyAggregateData4.getBodyModelDTO() : null;
                        DuImageLoaderView duImageLoaderView = (DuImageLoaderView) mySizeActivityV24._$_findCachedViewById(R.id.ivModel);
                        FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) duImageLoaderView.getLayoutParams();
                        layoutParams.width = (bodyModelDTO == null || (imgWidth = bodyModelDTO.getImgWidth()) == null) ? 0 : fi.b.b(imgWidth.floatValue());
                        layoutParams.height = (bodyModelDTO == null || (imgHeight = bodyModelDTO.getImgHeight()) == null) ? 0 : fi.b.b(imgHeight.floatValue());
                        duImageLoaderView.setLayoutParams(layoutParams);
                        ((DuImageLoaderView) mySizeActivityV24._$_findCachedViewById(R.id.ivModel)).i(bodyModelDTO != null ? bodyModelDTO.getModelUrl() : null).x();
                        Ref.FloatRef floatRef = new Ref.FloatRef();
                        floatRef.element = o5.i.f36333a;
                        Ref.FloatRef floatRef2 = new Ref.FloatRef();
                        floatRef2.element = o5.i.f36333a;
                        ((DuImageLoaderView) mySizeActivityV24._$_findCachedViewById(R.id.ivModel)).setOnTouchListener(new fd1.b(floatRef, floatRef2));
                        if (!(bodyModelDTO == null || (modelClickPositionDTOS = bodyModelDTO.getModelClickPositionDTOS()) == null)) {
                            Iterator<T> it3 = modelClickPositionDTOS.iterator();
                            while (it3.hasNext()) {
                                T next = it3.next();
                                if (StringsKt__StringsJVMKt.equals$default(next != null ? next.getKey() : str6, "footLength", z5, i17, str6)) {
                                    int d = f.d(mySizeActivityV24, (int) ((next == null || (leftUp2 = next.getLeftUp()) == null || (pointX = leftUp2.getPointX()) == null) ? o5.i.f36333a : pointX.floatValue()));
                                    int d12 = f.d(mySizeActivityV24, (int) ((next == null || (leftUp = next.getLeftUp()) == null || (pointY = leftUp.getPointY()) == null) ? o5.i.f36333a : pointY.floatValue()));
                                    int i18 = fi.b.f32351a;
                                    int i19 = fi.b.b;
                                    FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) ((TextView) mySizeActivityV24._$_findCachedViewById(R.id.tv_measure_foot_guide)).getLayoutParams();
                                    layoutParams2.width = (int) (((float) i18) * 0.19950125f);
                                    layoutParams2.height = (int) (((float) i19) * 0.034188036f);
                                    layoutParams2.topMargin = d12 - 80;
                                    layoutParams2.leftMargin = d - 40;
                                    ((TextView) mySizeActivityV24._$_findCachedViewById(R.id.tv_measure_foot_guide)).setLayoutParams(layoutParams2);
                                    ((TextView) mySizeActivityV24._$_findCachedViewById(R.id.tv_measure_foot_guide)).setVisibility(8);
                                    if (ServiceManager.b().checkAiMeasureFootResource(mySizeActivityV24.i)) {
                                        hd1.a.getLastMeasureInfo(new fd1.a(mySizeActivityV24));
                                    }
                                }
                                str6 = null;
                                i17 = 2;
                                z5 = false;
                            }
                        }
                        ViewExtensionKt.j((DuImageLoaderView) mySizeActivityV24._$_findCachedViewById(R.id.ivModel), 0, new MySizeActivityV2$renderImageView$4(mySizeActivityV24, floatRef, floatRef2, bodyModelDTO, userBodyAggregateData4, mySizeV2Model4), 1);
                        f = o5.i.f36333a;
                    }
                    ((LinearLayout) mySizeActivityV24._$_findCachedViewById(R.id.layoutInfos)).removeAllViews();
                    mySizeActivityV24.f25659h.clear();
                    if (mySizeV2Model4 == null || (userBodyAggregateData3 = mySizeV2Model4.getUserBodyAggregateData()) == null || (userBodyStandardModels2 = userBodyAggregateData3.getUserBodyStandardModels()) == null) {
                        mySizeActivityV2 = mySizeActivityV24;
                        mySizeV2Model2 = mySizeV2Model4;
                        i13 = 2;
                        i12 = 1;
                        c12 = 0;
                        i3 = 8;
                        userBodyAggregateData2 = null;
                        mySizeV2Model4 = mySizeV2Model2;
                    } else {
                        Iterator<T> it4 = userBodyStandardModels2.iterator();
                        int i22 = 0;
                        MySizeV2Model mySizeV2Model5 = mySizeV2Model4;
                        int i23 = 1;
                        while (it4.hasNext()) {
                            T next2 = it4.next();
                            int i24 = i22 + 1;
                            if (i22 < 0) {
                                CollectionsKt__CollectionsKt.throwIndexOverflow();
                            }
                            T t12 = next2;
                            if (t12.getTitle() != null) {
                                List<Standard> standardUnitDTOList2 = t12.getStandardUnitDTOList();
                                if (!(standardUnitDTOList2 == null || standardUnitDTOList2.isEmpty())) {
                                    String str7 = "";
                                    if (t12.isBasicInfo()) {
                                        String headImg = mySizeV2Model4.getUserBodyAggregateData().getHeadImg();
                                        Object[] objArr = new Object[2];
                                        objArr[0] = t12;
                                        objArr[i23] = headImg;
                                        ChangeQuickRedirect changeQuickRedirect2 = MySizeActivityV2.changeQuickRedirect;
                                        Class[] clsArr = new Class[2];
                                        clsArr[0] = Result.class;
                                        clsArr[i23] = String.class;
                                        if (!PatchProxy.proxy(objArr, mySizeActivityV24, changeQuickRedirect2, false, 329164, clsArr, Void.TYPE).isSupported) {
                                            ((DuImageLoaderView) mySizeActivityV24._$_findCachedViewById(R.id.ivAvatar)).i(headImg).x();
                                            GradientDrawable d13 = j.d(-1);
                                            d13.setStroke(i23, Color.parseColor("#C7C7D7"));
                                            float f13 = (float) 2;
                                            d13.setCornerRadius((float) fi.b.b(f13));
                                            Unit unit2 = Unit.INSTANCE;
                                            ((TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvEdit)).setBackground(d13);
                                            GradientDrawable d14 = j.d(-1);
                                            d14.setCornerRadius((float) fi.b.b(f13));
                                            ((LinearLayout) mySizeActivityV24._$_findCachedViewById(R.id.layoutBasicInfo)).setBackground(d14);
                                            List<Standard> standardUnitDTOList3 = t12.getStandardUnitDTOList();
                                            Standard standard = standardUnitDTOList3 != null ? (Standard) CollectionsKt___CollectionsKt.firstOrNull((List) standardUnitDTOList3) : null;
                                            ViewExtensionKt.j((LinearLayout) mySizeActivityV24._$_findCachedViewById(R.id.layoutBasicInfo), 0, new MySizeActivityV2$renderBasicView$3(mySizeActivityV24, t12), i23);
                                            if (standard == null || (standardItemDetailDTOS = standard.getStandardItemDetailDTOS()) == null) {
                                                t = null;
                                            } else {
                                                Iterator<T> it5 = standardItemDetailDTOS.iterator();
                                                while (true) {
                                                    if (!it5.hasNext()) {
                                                        t4 = null;
                                                        break;
                                                    }
                                                    t4 = it5.next();
                                                    String value = t4.getValue();
                                                    if (value == null || value.length() == 0) {
                                                        z4 = true;
                                                        continue;
                                                    } else {
                                                        z4 = false;
                                                        continue;
                                                    }
                                                    if (z4) {
                                                        break;
                                                    }
                                                }
                                                t = t4;
                                            }
                                            if (t != null) {
                                                Class cls = Boolean.TYPE;
                                                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], mySizeActivityV24, MySizeActivityV2.changeQuickRedirect, false, 329141, new Class[0], cls);
                                                if (!((Boolean) (proxy.isSupported ? proxy.result : mySizeActivityV24.e.getValue(mySizeActivityV24, MySizeActivityV2.l[0]))).booleanValue()) {
                                                    ((TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvEdit)).performClick();
                                                    Object[] objArr2 = new Object[i23];
                                                    objArr2[0] = new Byte((byte) i23);
                                                    ChangeQuickRedirect changeQuickRedirect3 = MySizeActivityV2.changeQuickRedirect;
                                                    Class[] clsArr2 = new Class[i23];
                                                    clsArr2[0] = cls;
                                                    if (!PatchProxy.proxy(objArr2, mySizeActivityV24, changeQuickRedirect3, false, 329142, clsArr2, Void.TYPE).isSupported) {
                                                        mySizeActivityV24.e.setValue(mySizeActivityV24, MySizeActivityV2.l[0], Boolean.TRUE);
                                                    }
                                                }
                                            }
                                            List<SizeBasicInfo> standardItemDetailDTOS2 = standard != null ? standard.getStandardItemDetailDTOS() : null;
                                            if (standardItemDetailDTOS2 == null || standardItemDetailDTOS2.size() != 3) {
                                                i16 = 0;
                                                fo.a.m("基础信息必须为 3 个,服务端出错", new Object[0]);
                                            } else {
                                                i16 = 0;
                                            }
                                            mySizeActivityV24.j(i16, "基础信息");
                                            SizeBasicInfo sizeBasicInfo = standardItemDetailDTOS2 != null ? (SizeBasicInfo) CollectionsKt___CollectionsKt.firstOrNull((List) standardItemDetailDTOS2) : null;
                                            TextView textView = (TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvHeightTitle);
                                            String name = sizeBasicInfo != null ? sizeBasicInfo.getName() : null;
                                            if (name == null || name.length() == 0) {
                                                str = "身高";
                                            } else {
                                                str = sizeBasicInfo != null ? sizeBasicInfo.getName() : null;
                                                if (str == null) {
                                                    str = str7;
                                                }
                                            }
                                            textView.setText(str);
                                            TextView textView2 = (TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvHeight);
                                            String value2 = sizeBasicInfo != null ? sizeBasicInfo.getValue() : null;
                                            if (value2 == null || value2.length() == 0) {
                                                sb2 = a.f.h("--");
                                                str2 = sizeBasicInfo != null ? sizeBasicInfo.getUnit() : null;
                                            } else {
                                                sb2 = new StringBuilder();
                                                String value3 = sizeBasicInfo != null ? sizeBasicInfo.getValue() : null;
                                                if (value3 == null) {
                                                    value3 = str7;
                                                }
                                                sb2.append(value3);
                                                str2 = sizeBasicInfo != null ? sizeBasicInfo.getUnit() : null;
                                            }
                                            str2 = str7;
                                            a0.b.k(sb2, str2, textView2);
                                            SizeBasicInfo sizeBasicInfo2 = standardItemDetailDTOS2 != null ? (SizeBasicInfo) CollectionsKt___CollectionsKt.getOrNull(standardItemDetailDTOS2, i23) : null;
                                            TextView textView3 = (TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvWeightTitle);
                                            String name2 = sizeBasicInfo2 != null ? sizeBasicInfo2.getName() : null;
                                            if (name2 == null || name2.length() == 0) {
                                                str3 = "体重";
                                            } else {
                                                str3 = sizeBasicInfo2 != null ? sizeBasicInfo2.getName() : null;
                                                if (str3 == null) {
                                                    str3 = str7;
                                                }
                                            }
                                            textView3.setText(str3);
                                            TextView textView4 = (TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvWeight);
                                            String value4 = sizeBasicInfo2 != null ? sizeBasicInfo2.getValue() : null;
                                            if (value4 == null || value4.length() == 0) {
                                                sb3 = a.f.h("--");
                                                str4 = sizeBasicInfo2 != null ? sizeBasicInfo2.getUnit() : null;
                                            } else {
                                                sb3 = new StringBuilder();
                                                String value5 = sizeBasicInfo2 != null ? sizeBasicInfo2.getValue() : null;
                                                if (value5 == null) {
                                                    value5 = str7;
                                                }
                                                sb3.append(value5);
                                                str4 = sizeBasicInfo2 != null ? sizeBasicInfo2.getUnit() : null;
                                            }
                                            str4 = str7;
                                            a0.b.k(sb3, str4, textView4);
                                            SizeBasicInfo sizeBasicInfo3 = standardItemDetailDTOS2 != null ? (SizeBasicInfo) CollectionsKt___CollectionsKt.getOrNull(standardItemDetailDTOS2, 2) : null;
                                            TextView textView5 = (TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvFootTitle);
                                            String name3 = sizeBasicInfo3 != null ? sizeBasicInfo3.getName() : null;
                                            if (name3 == null || name3.length() == 0) {
                                                str5 = "鞋码";
                                            } else {
                                                str5 = sizeBasicInfo3 != null ? sizeBasicInfo3.getName() : null;
                                                if (str5 == null) {
                                                    str5 = str7;
                                                }
                                            }
                                            textView5.setText(str5);
                                            TextView textView6 = (TextView) mySizeActivityV24._$_findCachedViewById(R.id.tvFootSize);
                                            String value6 = sizeBasicInfo3 != null ? sizeBasicInfo3.getValue() : null;
                                            boolean z12 = value6 == null || value6.length() == 0;
                                            StringBuilder sb4 = new StringBuilder();
                                            if (z12) {
                                                sb4.append("--");
                                                unit = sizeBasicInfo3 != null ? sizeBasicInfo3.getUnit() : null;
                                            } else {
                                                String value7 = sizeBasicInfo3 != null ? sizeBasicInfo3.getValue() : null;
                                                if (value7 == null) {
                                                    value7 = str7;
                                                }
                                                sb4.append(value7);
                                                unit = sizeBasicInfo3 != null ? sizeBasicInfo3.getUnit() : null;
                                            }
                                            str7 = unit;
                                            a0.b.k(sb4, str7, textView6);
                                        }
                                    } else {
                                        Object[] objArr3 = new Object[3];
                                        objArr3[0] = t12;
                                        objArr3[i23] = new Integer(i22);
                                        objArr3[2] = mySizeV2Model5;
                                        ChangeQuickRedirect changeQuickRedirect4 = MySizeActivityV2.changeQuickRedirect;
                                        Class[] clsArr3 = new Class[3];
                                        clsArr3[0] = Result.class;
                                        Class cls2 = Integer.TYPE;
                                        clsArr3[i23] = cls2;
                                        clsArr3[2] = MySizeV2Model.class;
                                        if (!PatchProxy.proxy(objArr3, mySizeActivityV24, changeQuickRedirect4, false, 329154, clsArr3, Void.TYPE).isSupported) {
                                            View inflate = LayoutInflater.from(mySizeActivityV24).inflate(R.layout.layout_my_size_v2_module, (ViewGroup) ((LinearLayout) mySizeActivityV24._$_findCachedViewById(R.id.layoutInfos)), false);
                                            DuExpandableLinearLayout duExpandableLinearLayout = (DuExpandableLinearLayout) inflate.findViewById(R.id.layoutItems);
                                            GradientDrawable gradientDrawable = new GradientDrawable();
                                            float f14 = (float) 2;
                                            gradientDrawable.setCornerRadius((float) fi.b.b(f14));
                                            gradientDrawable.setColor(-1);
                                            Unit unit3 = Unit.INSTANCE;
                                            ((LinearLayout) inflate.findViewById(R.id.layoutContainer)).setBackground(gradientDrawable);
                                            inflate.setTag(t12);
                                            IconFontTextView iconFontTextView2 = (IconFontTextView) inflate.findViewById(R.id.tvExpand);
                                            Integer classId = t12.getClassId();
                                            boolean z13 = classId != null && classId.intValue() == 102;
                                            List<Standard> standardUnitDTOList4 = t12.getStandardUnitDTOList();
                                            int size = standardUnitDTOList4 != null ? standardUnitDTOList4.size() : 0;
                                            if (z13) {
                                                it2 = it4;
                                                i15 = 2;
                                            } else {
                                                it2 = it4;
                                                i15 = 1;
                                            }
                                            boolean z14 = size > i15;
                                            iconFontTextView2.setVisibility(z14 ? 0 : 8);
                                            if (z14) {
                                                i14 = i24;
                                                if (mySizeActivityV24.f.containsKey(Integer.valueOf(i22))) {
                                                    bool = mySizeActivityV24.f.get(Integer.valueOf(i22));
                                                    if (bool == null) {
                                                        bool = Boolean.FALSE;
                                                    }
                                                } else {
                                                    bool = Boolean.FALSE;
                                                }
                                                boolean booleanValue = bool.booleanValue();
                                                duExpandableLinearLayout.d(booleanValue, fi.b.b((float) (z13 ? 64 : 32)));
                                                iconFontTextView2.setText(mySizeActivityV24.getString(booleanValue ? R.string.icon_font_arrow_up : R.string.icon_font_arrow_down));
                                            } else {
                                                i14 = i24;
                                            }
                                            byte b2 = z14 ? (byte) 1 : 0;
                                            byte b5 = z14 ? (byte) 1 : 0;
                                            byte b12 = z14 ? (byte) 1 : 0;
                                            byte b13 = z13 ? (byte) 1 : 0;
                                            byte b14 = z13 ? (byte) 1 : 0;
                                            byte b15 = z13 ? (byte) 1 : 0;
                                            byte b16 = z13 ? (byte) 1 : 0;
                                            byte b17 = z13 ? (byte) 1 : 0;
                                            Object[] objArr4 = {duExpandableLinearLayout, t12, mySizeV2Model5, new Integer(i22), new Byte(b2), new Byte(b13)};
                                            ChangeQuickRedirect changeQuickRedirect5 = MySizeActivityV2.changeQuickRedirect;
                                            Class cls3 = Boolean.TYPE;
                                            if (!PatchProxy.proxy(objArr4, mySizeActivityV24, changeQuickRedirect5, false, 329156, new Class[]{DuExpandableLinearLayout.class, Result.class, MySizeV2Model.class, cls2, cls3, cls3}, Void.TYPE).isSupported && (standardUnitDTOList = t12.getStandardUnitDTOList()) != null) {
                                                Iterator<T> it6 = standardUnitDTOList.iterator();
                                                int i25 = 0;
                                                iconFontTextView2 = iconFontTextView2;
                                                while (it6.hasNext()) {
                                                    T next3 = it6.next();
                                                    int i26 = i25 + 1;
                                                    if (i25 < 0) {
                                                        CollectionsKt__CollectionsKt.throwIndexOverflow();
                                                    }
                                                    T t13 = next3;
                                                    View inflate2 = LayoutInflater.from(mySizeActivityV24).inflate(R.layout.layout_my_size_v2_module_item, (ViewGroup) duExpandableLinearLayout, false);
                                                    if (i25 == 0) {
                                                        GradientDrawable gradientDrawable2 = new GradientDrawable();
                                                        float b18 = (float) fi.b.b(f14);
                                                        iconFontTextView = iconFontTextView2;
                                                        gradientDrawable2.setCornerRadii(new float[]{b18, b18, b18, b18, f, f, f, f});
                                                        Unit unit4 = Unit.INSTANCE;
                                                        inflate2.setBackground(gradientDrawable2);
                                                    } else {
                                                        iconFontTextView = iconFontTextView2;
                                                    }
                                                    TextView textView7 = (TextView) inflate2.findViewById(R.id.tvTitle);
                                                    String label = t13 != null ? t13.getLabel() : null;
                                                    if (label == null) {
                                                        label = str7;
                                                    }
                                                    textView7.setText(label);
                                                    TextView textView8 = (TextView) inflate2.findViewById(R.id.tvContent);
                                                    String remark = t13 != null ? t13.getRemark() : null;
                                                    if (remark == null || remark.length() == 0) {
                                                        textView8.setText("未设定");
                                                        textView8.setTypeface(Typeface.DEFAULT);
                                                        textView8.setTextColor(ContextCompat.getColor(mySizeActivityV24.getContext(), R.color.color_gray_aaaabb));
                                                    } else {
                                                        String remark2 = t13 != null ? t13.getRemark() : null;
                                                        if (remark2 == null) {
                                                            remark2 = str7;
                                                        }
                                                        textView8.setText(remark2);
                                                        textView8.setTypeface(Typeface.DEFAULT_BOLD);
                                                        textView8.setTextColor(ContextCompat.getColor(mySizeActivityV24.getContext(), R.color.color_gray_2b2c3c));
                                                    }
                                                    duExpandableLinearLayout.addView(inflate2);
                                                    ViewExtensionKt.j(inflate2, 0, new MySizeActivityV2$renderItems$$inlined$forEachIndexed$lambda$1(t13, mySizeActivityV24, duExpandableLinearLayout, mySizeV2Model4, i22, z14, z13), 1);
                                                    if (!z14) {
                                                        mySizeActivityV23 = mySizeActivityV24;
                                                        mySizeActivityV23.k(i22, t13);
                                                    } else if (!z13) {
                                                        mySizeActivityV23 = mySizeActivityV24;
                                                        if (i25 == 0) {
                                                            mySizeActivityV23.k(i22, t13);
                                                        }
                                                    } else if (i25 < 2) {
                                                        mySizeActivityV23 = mySizeActivityV24;
                                                        mySizeActivityV23.k(i22, t13);
                                                    } else {
                                                        mySizeActivityV23 = mySizeActivityV24;
                                                    }
                                                    mySizeActivityV24 = mySizeActivityV23;
                                                    iconFontTextView2 = iconFontTextView;
                                                    i25 = i26;
                                                    it6 = it6;
                                                    f14 = f14;
                                                    boolean z15 = z13 ? 1 : 0;
                                                    boolean z16 = z13 ? 1 : 0;
                                                    boolean z17 = z13 ? 1 : 0;
                                                    boolean z18 = z13 ? 1 : 0;
                                                    boolean z19 = z13 ? 1 : 0;
                                                    z13 = z15;
                                                    f = f;
                                                    duExpandableLinearLayout = duExpandableLinearLayout;
                                                    mySizeV2Model4 = mySizeV2Model4;
                                                }
                                            }
                                            f12 = f;
                                            mySizeActivityV22 = mySizeActivityV24;
                                            mySizeV2Model3 = mySizeV2Model4;
                                            inflate.setTag(t12);
                                            xd1.i.b(iconFontTextView2, new Rect(0, fi.b.b(f14), 0, fi.b.b((float) 6)));
                                            GradientDrawable gradientDrawable3 = new GradientDrawable();
                                            float b19 = (float) fi.b.b(f14);
                                            gradientDrawable3.setCornerRadii(new float[]{f12, f12, f12, f12, b19, b19, b19, b19});
                                            Unit unit5 = Unit.INSTANCE;
                                            iconFontTextView2.setBackground(gradientDrawable3);
                                            ViewExtensionKt.j(iconFontTextView2, 0, new MySizeActivityV2$renderDetails$3(mySizeActivityV22, i22, duExpandableLinearLayout, t12, inflate, z13), 1);
                                            duExpandableLinearLayout.setOnToggleExpandListener(new MySizeActivityV2$renderDetails$4(mySizeActivityV22, iconFontTextView2));
                                            if (!PatchProxy.proxy(new Object[]{new Integer(i22), mySizeV2Model3}, mySizeActivityV22, MySizeActivityV2.changeQuickRedirect, false, 329155, new Class[]{Integer.TYPE, MySizeV2Model.class}, Void.TYPE).isSupported) {
                                                UserBodyAggregateData userBodyAggregateData5 = mySizeV2Model3.getUserBodyAggregateData();
                                                if (i22 == ((userBodyAggregateData5 == null || (userBodyStandardModels3 = userBodyAggregateData5.getUserBodyStandardModels()) == null) ? 0 : userBodyStandardModels3.size()) - 1) {
                                                    Space space = new Space(mySizeActivityV22);
                                                    LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(-2, -2);
                                                    layoutParams3.weight = 1.0f;
                                                    ((LinearLayout) mySizeActivityV22._$_findCachedViewById(R.id.layoutInfos)).addView(space, layoutParams3);
                                                } else if (i22 != 1) {
                                                    ((LinearLayout) mySizeActivityV22._$_findCachedViewById(R.id.layoutInfos)).addView(new Space(mySizeActivityV22), new LinearLayout.LayoutParams(-2, fi.b.b((float) 20)));
                                                }
                                            }
                                            ((LinearLayout) mySizeActivityV22._$_findCachedViewById(R.id.layoutInfos)).addView(inflate);
                                            mySizeV2Model5 = mySizeV2Model3;
                                            i23 = 1;
                                            it4 = it2;
                                            mySizeActivityV24 = mySizeActivityV22;
                                            i22 = i14;
                                            f = f12;
                                            mySizeV2Model4 = mySizeV2Model3;
                                        }
                                    }
                                }
                            }
                            f12 = f;
                            it2 = it4;
                            i14 = i24;
                            mySizeActivityV22 = mySizeActivityV24;
                            mySizeV2Model3 = mySizeV2Model4;
                            i23 = 1;
                            it4 = it2;
                            mySizeActivityV24 = mySizeActivityV22;
                            i22 = i14;
                            f = f12;
                            mySizeV2Model4 = mySizeV2Model3;
                        }
                        mySizeActivityV2 = mySizeActivityV24;
                        mySizeV2Model2 = mySizeV2Model4;
                        i13 = 2;
                        i3 = 8;
                        userBodyAggregateData2 = null;
                        mySizeV2Model4 = mySizeV2Model5;
                        i12 = 1;
                        c12 = 0;
                    }
                    if (mySizeV2Model4 != null) {
                        userBodyAggregateData2 = mySizeV2Model2.getUserBodyAggregateData();
                    }
                    Object[] objArr5 = new Object[i12];
                    objArr5[c12] = userBodyAggregateData2;
                    ChangeQuickRedirect changeQuickRedirect6 = MySizeActivityV2.changeQuickRedirect;
                    Class[] clsArr4 = new Class[i12];
                    clsArr4[c12] = UserBodyAggregateData.class;
                    if (!PatchProxy.proxy(objArr5, mySizeActivityV2, changeQuickRedirect6, false, 329152, clsArr4, Void.TYPE).isSupported) {
                        if (userBodyAggregateData2 == null) {
                            ((DuImageLoaderView) mySizeActivityV2._$_findCachedViewById(R.id.aiSkinEntrance)).setVisibility(i3);
                        } else {
                            ((DuImageLoaderView) mySizeActivityV2._$_findCachedViewById(R.id.aiSkinEntrance)).setVisibility((userBodyAggregateData2.getHasAiReport() ^ i12) != 0 ? 0 : 8);
                            if (!userBodyAggregateData2.getHasAiReport()) {
                                mySizeActivityV2.f25658g = i12;
                                AccountSensorPointMethod.f25427a.g();
                                ((DuImageLoaderView) mySizeActivityV2._$_findCachedViewById(R.id.aiSkinEntrance)).i(userBodyAggregateData2.getAiReportIconUrl()).x();
                                mySizeActivityV2._$_findCachedViewById(R.id.aiSkinTouchDelegate).setOnClickListener(new MySizeActivityV2$renderAiSkinEntrance$$inlined$clickWithThrottle$1(500, mySizeActivityV2, userBodyAggregateData2));
                            }
                        }
                    }
                    i = i13;
                    c5 = i12;
                    r22 = c12;
                    aVar = this;
                }
                MySizeActivityV2 mySizeActivityV25 = aVar.b;
                String str8 = mySizeActivityV25.f25657c;
                Object[] objArr6 = new Object[i];
                char c13 = r22 == true ? 1 : 0;
                char c14 = r22 == true ? 1 : 0;
                char c15 = r22 == true ? 1 : 0;
                objArr6[c13] = str8;
                objArr6[c5] = mySizeV2Model4;
                ChangeQuickRedirect changeQuickRedirect7 = MySizeActivityV2.changeQuickRedirect;
                Class[] clsArr5 = new Class[i];
                clsArr5[r22] = String.class;
                clsArr5[c5] = MySizeV2Model.class;
                if (!PatchProxy.proxy(objArr6, mySizeActivityV25, changeQuickRedirect7, false, 329150, clsArr5, Void.TYPE).isSupported && mySizeActivityV25.d) {
                    if (!((str8 == null || str8.length() == 0) || mySizeV2Model4 == null || (userBodyAggregateData = mySizeV2Model2.getUserBodyAggregateData()) == null || (userBodyStandardModels = userBodyAggregateData.getUserBodyStandardModels()) == null)) {
                        for (T t14 : userBodyStandardModels) {
                            if (t14.getTitle() != null) {
                                List<Standard> standardUnitDTOList5 = t14.getStandardUnitDTOList();
                                if (!(standardUnitDTOList5 == null || standardUnitDTOList5.isEmpty())) {
                                    if (t14.isBasicInfo()) {
                                        List<Standard> standardUnitDTOList6 = t14.getStandardUnitDTOList();
                                        if (!(standardUnitDTOList6 instanceof Collection) || !standardUnitDTOList6.isEmpty()) {
                                            Iterator<T> it7 = standardUnitDTOList6.iterator();
                                            while (true) {
                                                if (!it7.hasNext()) {
                                                    break;
                                                }
                                                List<String> groups = it7.next().getGroups();
                                                if (groups == null) {
                                                    groups = CollectionsKt__CollectionsKt.emptyList();
                                                }
                                                if (groups.contains(str8)) {
                                                    z = true;
                                                    break;
                                                }
                                            }
                                        }
                                        z = false;
                                        if (z) {
                                            mySizeActivityV25.h(t14);
                                        }
                                    }
                                    Iterator<T> it8 = t14.getStandardUnitDTOList().iterator();
                                    while (true) {
                                        if (!it8.hasNext()) {
                                            break;
                                        }
                                        T next4 = it8.next();
                                        List<String> groups2 = next4.getGroups();
                                        if (groups2 == null) {
                                            groups2 = CollectionsKt__CollectionsKt.emptyList();
                                        }
                                        if (groups2.contains(str8)) {
                                            mySizeActivityV25.i(mySizeV2Model4, next4);
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                        mySizeActivityV25.d = r22;
                    }
                }
            }
        }
    }

    public static void d(MySizeActivityV2 mySizeActivityV2) {
        if (!PatchProxy.proxy(new Object[0], mySizeActivityV2, changeQuickRedirect, false, 329161, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
            List<Pair<Integer, Standard>> list = mySizeActivityV2.f25659h;
            if (!(list == null || list.isEmpty())) {
                mySizeActivityV2.j(0, "基础信息");
                for (T t : mySizeActivityV2.f25659h) {
                    int intValue = ((Number) t.getFirst()).intValue();
                    Standard standard = (Standard) t.getSecond();
                    String label = standard != null ? standard.getLabel() : null;
                    if (label == null) {
                        label = "";
                    }
                    mySizeActivityV2.j(intValue, label);
                }
                if (mySizeActivityV2.f25658g) {
                    AccountSensorPointMethod.f25427a.g();
                }
                if (mySizeActivityV2.j) {
                    mySizeActivityV2.j = false;
                    mySizeActivityV2.fetchData();
                }
            }
        }
    }

    public static void e(MySizeActivityV2 mySizeActivityV2, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, mySizeActivityV2, changeQuickRedirect, false, 329169, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void f(MySizeActivityV2 mySizeActivityV2) {
        if (!PatchProxy.proxy(new Object[0], mySizeActivityV2, changeQuickRedirect, false, 329171, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public View _$_findCachedViewById(int i3) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 329166, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.k == null) {
            this.k = new HashMap();
        }
        View view = (View) this.k.get(Integer.valueOf(i3));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i3);
        this.k.put(Integer.valueOf(i3), findViewById);
        return findViewById;
    }

    public final void fetchData() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 329149, new Class[0], Void.TYPE).isSupported) {
            bd1.a aVar = bd1.a.f1639a;
            a aVar2 = new a(this, this, true);
            if (!PatchProxy.proxy(new Object[]{aVar2}, aVar, bd1.a.changeQuickRedirect, false, 328274, new Class[]{s.class}, Void.TYPE).isSupported) {
                td.j.doRequest(((AccountService) td.j.getJavaGoApi(AccountService.class)).getMySizeV3(c.b(new Pair[0])), aVar2);
            }
        }
    }

    public final void g(Result result) {
        List<Standard> standardUnitDTOList;
        int i3 = 0;
        if (!(PatchProxy.proxy(new Object[]{result}, this, changeQuickRedirect, false, 329159, new Class[]{Result.class}, Void.TYPE).isSupported || result == null || (standardUnitDTOList = result.getStandardUnitDTOList()) == null)) {
            for (T t : standardUnitDTOList) {
                int i12 = i3 + 1;
                if (i3 < 0) {
                    CollectionsKt__CollectionsKt.throwIndexOverflow();
                }
                T t4 = t;
                Integer classId = result.getClassId();
                if (i3 >= ((classId != null && classId.intValue() == 102) ? 2 : 1)) {
                    CollectionsKt__MutableCollectionsKt.removeAll((List) this.f25659h, (Function1) new MySizeActivityV2$removeUselessExpose$1$1(t4));
                }
                i3 = i12;
            }
        }
    }

    @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, 329145, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_my_size_v2;
    }

    public final void h(Result result) {
        if (!PatchProxy.proxy(new Object[]{result}, this, changeQuickRedirect, false, 329163, new Class[]{Result.class}, Void.TYPE).isSupported) {
            List<Standard> standardUnitDTOList = result.getStandardUnitDTOList();
            Standard standard = standardUnitDTOList != null ? (Standard) CollectionsKt___CollectionsKt.firstOrNull((List) standardUnitDTOList) : null;
            List<String> groups = standard != null ? standard.getGroups() : null;
            if (groups == null) {
                groups = CollectionsKt__CollectionsKt.emptyList();
            }
            SizeSelectBasicDialogFragment a5 = SizeSelectBasicDialogFragment.m.a((ArrayList) CollectionsKt___CollectionsKt.filterNotNull(groups), null);
            a5.z(new MySizeActivityV2$showBasicDialog$1(this));
            a5.k(getSupportFragmentManager());
        }
    }

    public final void i(MySizeV2Model mySizeV2Model, Standard standard) {
        SizeSelectDialogFragmentV2 sizeSelectDialogFragmentV2;
        List<Result> userBodyStandardModels;
        if (!PatchProxy.proxy(new Object[]{mySizeV2Model, standard}, this, changeQuickRedirect, false, 329162, new Class[]{MySizeV2Model.class, Standard.class}, Void.TYPE).isSupported) {
            ArrayList<? extends Parcelable> arrayList = new ArrayList<>();
            UserBodyAggregateData userBodyAggregateData = mySizeV2Model.getUserBodyAggregateData();
            if (!(userBodyAggregateData == null || (userBodyStandardModels = userBodyAggregateData.getUserBodyStandardModels()) == null)) {
                ArrayList<Result> arrayList2 = new ArrayList();
                for (T t : userBodyStandardModels) {
                    if (!t.isBasicInfo()) {
                        arrayList2.add(t);
                    }
                }
                for (Result result : arrayList2) {
                    List<Standard> standardUnitDTOList = result.getStandardUnitDTOList();
                    if (standardUnitDTOList == null) {
                        standardUnitDTOList = CollectionsKt__CollectionsKt.emptyList();
                    }
                    arrayList.addAll(standardUnitDTOList);
                }
            }
            int max = Math.max(arrayList.indexOf(standard), 0);
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{arrayList, new Integer(max)}, SizeSelectDialogFragmentV2.j, SizeSelectDialogFragmentV2.a.changeQuickRedirect, false, 329264, new Class[]{ArrayList.class, Integer.TYPE}, SizeSelectDialogFragmentV2.class);
            if (proxy.isSupported) {
                sizeSelectDialogFragmentV2 = (SizeSelectDialogFragmentV2) proxy.result;
            } else {
                Bundle bundle = new Bundle();
                bundle.putParcelableArrayList("standard_list", arrayList);
                bundle.putInt("index", max);
                sizeSelectDialogFragmentV2 = new SizeSelectDialogFragmentV2();
                sizeSelectDialogFragmentV2.setArguments(bundle);
            }
            MySizeActivityV2$showModifyDialog$3 mySizeActivityV2$showModifyDialog$3 = new MySizeActivityV2$showModifyDialog$3(this);
            if (!PatchProxy.proxy(new Object[]{mySizeActivityV2$showModifyDialog$3}, sizeSelectDialogFragmentV2, SizeSelectDialogFragmentV2.changeQuickRedirect, false, 329247, new Class[]{Function0.class}, Void.TYPE).isSupported) {
                sizeSelectDialogFragmentV2.f25665g = mySizeActivityV2$showModifyDialog$3;
            }
            sizeSelectDialogFragmentV2.k(getSupportFragmentManager());
        }
    }

    @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, 329147, new Class[0], Void.TYPE).isSupported) {
            fetchData();
        }
    }

    @Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initStatusBar() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 329146, new Class[0], Void.TYPE).isSupported) {
            super.initStatusBar();
            r0.x(this, 0, this.toolbar);
            this.toolbar.setBackground(new ColorDrawable(0));
        }
    }

    @Override // com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initView(@Nullable Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 329148, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.initView(bundle);
            this.i = this;
            ((DuRequestOptions) mn.a.f35714a.g("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/merchant/img_bg@3x.png").u(new MySizeActivityV2$initView$1(this))).y();
        }
    }

    public final void j(int i3, String str) {
        if (!PatchProxy.proxy(new Object[]{new Integer(i3), str}, this, changeQuickRedirect, false, 329158, new Class[]{Integer.TYPE, String.class}, Void.TYPE).isSupported) {
            AccountSensorPointMethod.f25427a.h(Integer.valueOf(i3 + 1), "", str);
        }
    }

    public final void k(int i3, Standard standard) {
        if (!PatchProxy.proxy(new Object[]{new Integer(i3), standard}, this, changeQuickRedirect, false, 329157, new Class[]{Integer.TYPE, Standard.class}, Void.TYPE).isSupported) {
            this.f25659h.add(new Pair<>(Integer.valueOf(i3), standard));
            String label = standard != null ? standard.getLabel() : null;
            if (label == null) {
                label = "";
            }
            j(i3, label);
        }
    }

    @Subscribe(threadMode = ThreadMode.MAIN)
    public final void onAiSkinNewResult(@NotNull String str) {
        if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 329165, new Class[]{String.class}, Void.TYPE).isSupported && Intrinsics.areEqual(str, "AiSkinNewResult")) {
            this.j = true;
        }
    }

    @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, 329168, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
        }
    }

    @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, 329160, 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, 329170, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onStart(this);
        }
    }
}