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


package com.shizhuang.duapp.modules.du_mall_common.remark_float;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.core.os.BundleKt;
import androidx.fragment.app.FragmentManager;
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.dialog.BaseDialogFragment;
import com.shizhuang.duapp.common.widget.font.IconFontTextView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuScaleType;
import com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog;
import com.shizhuang.duapp.modules.du_mall_common.extension.LifecycleExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.model.RemarkFloatLayerModel;
import com.shizhuang.duapp.modules.du_mall_common.utils.KeyboardHeightListener;
import j60.r;
import java.util.HashMap;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.TuplesKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u0001:\u0001\u0006B\u0007¢\u0006\u0004\b\u0004\u0010\u0005J\b\u0010\u0003\u001a\u00020\u0002H\u0016¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/modules/du_mall_common/remark_float/RemarkFloatLayerDialog;", "Lcom/shizhuang/duapp/modules/du_mall_common/dialog/MallBaseBottomDialog;", "", "onResume", "<init>", "()V", "a", "du_mall_common_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: RemarkFloatLayerDialog.kt */
public final class RemarkFloatLayerDialog extends MallBaseBottomDialog {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull
    public static final a n = new a(null);
    @Nullable
    public RemarkFloatLayerCallback i;
    public final Lazy j = LazyKt__LazyJVMKt.lazy(new RemarkFloatLayerDialog$model$2(this));
    public final Lazy k = LazyKt__LazyJVMKt.lazy(new RemarkFloatLayerDialog$orderId$2(this));
    public final TextWatcher l = new c(this);
    public HashMap m;

    public class _boostWeave {
        public static ChangeQuickRedirect changeQuickRedirect;

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreate")
        @Keep
        public static void FragmentMethodWeaver_onCreate(RemarkFloatLayerDialog remarkFloatLayerDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{remarkFloatLayerDialog, bundle}, null, changeQuickRedirect, true, 123498, new Class[]{RemarkFloatLayerDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                RemarkFloatLayerDialog.P(remarkFloatLayerDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (remarkFloatLayerDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_mall_common.remark_float.RemarkFloatLayerDialog")) {
                    jn.b.f34396a.fragmentOnCreateMethod(remarkFloatLayerDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onCreateView")
        @Keep
        public static View FragmentMethodWeaver_onCreateView(@NonNull RemarkFloatLayerDialog remarkFloatLayerDialog, @androidx.annotation.Nullable LayoutInflater layoutInflater, @androidx.annotation.Nullable ViewGroup viewGroup, Bundle bundle) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{remarkFloatLayerDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 123500, new Class[]{RemarkFloatLayerDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
            if (proxy.isSupported) {
                return (View) proxy.result;
            }
            long currentTimeMillis = System.currentTimeMillis();
            View R = RemarkFloatLayerDialog.R(remarkFloatLayerDialog, layoutInflater, viewGroup, bundle);
            long currentTimeMillis2 = System.currentTimeMillis();
            if (remarkFloatLayerDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_mall_common.remark_float.RemarkFloatLayerDialog")) {
                jn.b.f34396a.fragmentOnCreateViewMethod(remarkFloatLayerDialog, currentTimeMillis, currentTimeMillis2);
            }
            return R;
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void FragmentMethodWeaver_onResume(RemarkFloatLayerDialog remarkFloatLayerDialog) {
            if (!PatchProxy.proxy(new Object[]{remarkFloatLayerDialog}, null, changeQuickRedirect, true, 123497, new Class[]{RemarkFloatLayerDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                RemarkFloatLayerDialog.O(remarkFloatLayerDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (remarkFloatLayerDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_mall_common.remark_float.RemarkFloatLayerDialog")) {
                    jn.b.f34396a.fragmentOnResumeMethod(remarkFloatLayerDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void FragmentMethodWeaver_onStart(RemarkFloatLayerDialog remarkFloatLayerDialog) {
            if (!PatchProxy.proxy(new Object[]{remarkFloatLayerDialog}, null, changeQuickRedirect, true, 123499, new Class[]{RemarkFloatLayerDialog.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                RemarkFloatLayerDialog.Q(remarkFloatLayerDialog);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (remarkFloatLayerDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_mall_common.remark_float.RemarkFloatLayerDialog")) {
                    jn.b.f34396a.fragmentOnStartMethod(remarkFloatLayerDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
        @Insert(mayCreateSuper = true, value = "onViewCreated")
        @Keep
        public static void FragmentMethodWeaver_onViewCreated(@NonNull RemarkFloatLayerDialog remarkFloatLayerDialog, @androidx.annotation.Nullable View view, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{remarkFloatLayerDialog, view, bundle}, null, changeQuickRedirect, true, 123501, new Class[]{RemarkFloatLayerDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                RemarkFloatLayerDialog.S(remarkFloatLayerDialog, view, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (remarkFloatLayerDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_mall_common.remark_float.RemarkFloatLayerDialog")) {
                    jn.b.f34396a.fragmentOnViewCreatedMethod(remarkFloatLayerDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    /* compiled from: RemarkFloatLayerDialog.kt */
    public static final class a {
        public static ChangeQuickRedirect changeQuickRedirect;

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }

        @NotNull
        public final RemarkFloatLayerDialog a(@NotNull FragmentManager fragmentManager, @NotNull RemarkFloatLayerModel remarkFloatLayerModel, @Nullable String str) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{fragmentManager, remarkFloatLayerModel, str}, this, changeQuickRedirect, false, 123496, new Class[]{FragmentManager.class, RemarkFloatLayerModel.class, String.class}, RemarkFloatLayerDialog.class);
            if (proxy.isSupported) {
                return (RemarkFloatLayerDialog) proxy.result;
            }
            RemarkFloatLayerDialog remarkFloatLayerDialog = new RemarkFloatLayerDialog();
            remarkFloatLayerDialog.setArguments(BundleKt.bundleOf(TuplesKt.to("KEY_DATA", remarkFloatLayerModel), TuplesKt.to("orderId", str)));
            ChangeQuickRedirect changeQuickRedirect2 = BaseDialogFragment.changeQuickRedirect;
            remarkFloatLayerDialog.show(fragmentManager, "BaseDialogFragment");
            return remarkFloatLayerDialog;
        }
    }

    /* compiled from: RemarkFloatLayerDialog.kt */
    public static final class b implements KeyboardHeightListener {
        public static ChangeQuickRedirect changeQuickRedirect;

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ RemarkFloatLayerDialog f13576a;

        /* JADX WARN: Incorrect args count in method signature: ()V */
        public b(RemarkFloatLayerDialog remarkFloatLayerDialog) {
            this.f13576a = remarkFloatLayerDialog;
        }

        @Override // com.shizhuang.duapp.modules.du_mall_common.utils.KeyboardHeightListener
        public void onKeyboardHeightChanged(int i) {
            LinearLayout linearLayout;
            if (!PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 123507, new Class[]{Integer.TYPE}, Void.TYPE).isSupported && (linearLayout = (LinearLayout) this.f13576a._$_findCachedViewById(R.id.submitView)) != null) {
                ViewExtensionKt.r(linearLayout, null, null, null, Integer.valueOf(i), null, null, 55);
            }
        }
    }

    /* compiled from: RemarkFloatLayerDialog.kt */
    public static final class c implements TextWatcher {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ RemarkFloatLayerDialog b;

        /* JADX WARN: Incorrect args count in method signature: ()V */
        public c(RemarkFloatLayerDialog remarkFloatLayerDialog) {
            this.b = remarkFloatLayerDialog;
        }

        @SuppressLint({"SetTextI18n"})
        public void afterTextChanged(@NotNull Editable editable) {
            if (!PatchProxy.proxy(new Object[]{editable}, this, changeQuickRedirect, false, 123513, new Class[]{Editable.class}, Void.TYPE).isSupported) {
                ((TextView) this.b._$_findCachedViewById(R.id.tvWordCount)).setText(String.valueOf(((EditText) this.b._$_findCachedViewById(R.id.etRemarkText)).getText().length()) + "/");
            }
        }

        public void beforeTextChanged(@NotNull CharSequence charSequence, int i, int i3, int i12) {
            Object[] objArr = {charSequence, new Integer(i), new Integer(i3), new Integer(i12)};
            ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
            Class cls = Integer.TYPE;
            boolean z = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 123511, new Class[]{CharSequence.class, cls, cls, cls}, Void.TYPE).isSupported;
        }

        public void onTextChanged(@NotNull CharSequence charSequence, int i, int i3, int i12) {
            Object[] objArr = {charSequence, new Integer(i), new Integer(i3), new Integer(i12)};
            ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
            Class cls = Integer.TYPE;
            boolean z = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 123512, new Class[]{CharSequence.class, cls, cls, cls}, Void.TYPE).isSupported;
        }
    }

    public static void O(RemarkFloatLayerDialog remarkFloatLayerDialog) {
        if (!PatchProxy.proxy(new Object[0], remarkFloatLayerDialog, changeQuickRedirect, false, 123484, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
            LifecycleExtensionKt.l(remarkFloatLayerDialog, 100, new RemarkFloatLayerDialog$onResume$1(remarkFloatLayerDialog));
        }
    }

    public static void P(RemarkFloatLayerDialog remarkFloatLayerDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, remarkFloatLayerDialog, changeQuickRedirect, false, 123489, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void Q(RemarkFloatLayerDialog remarkFloatLayerDialog) {
        if (!PatchProxy.proxy(new Object[0], remarkFloatLayerDialog, changeQuickRedirect, false, 123491, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static View R(RemarkFloatLayerDialog remarkFloatLayerDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, remarkFloatLayerDialog, changeQuickRedirect, false, 123493, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
    }

    public static void S(RemarkFloatLayerDialog remarkFloatLayerDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, remarkFloatLayerDialog, changeQuickRedirect, false, 123495, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

    @Nullable
    public final RemarkFloatLayerCallback T() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123476, new Class[0], RemarkFloatLayerCallback.class);
        return proxy.isSupported ? (RemarkFloatLayerCallback) proxy.result : this.i;
    }

    public final RemarkFloatLayerModel U() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123478, new Class[0], RemarkFloatLayerModel.class);
        return (RemarkFloatLayerModel) (proxy.isSupported ? proxy.result : this.j.getValue());
    }

    public final String V() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123479, new Class[0], String.class);
        return (String) (proxy.isSupported ? proxy.result : this.k.getValue());
    }

    public final void W(@Nullable RemarkFloatLayerCallback remarkFloatLayerCallback) {
        if (!PatchProxy.proxy(new Object[]{remarkFloatLayerCallback}, this, changeQuickRedirect, false, 123477, new Class[]{RemarkFloatLayerCallback.class}, Void.TYPE).isSupported) {
            this.i = remarkFloatLayerCallback;
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog
    public void _$_clearFindViewByIdCache() {
        HashMap hashMap;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123487, new Class[0], Void.TYPE).isSupported && (hashMap = this.m) != null) {
            hashMap.clear();
        }
    }

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

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 123488, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, this, changeQuickRedirect, false, 123492, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle);
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123485, new Class[0], Void.TYPE).isSupported) {
            super.onDestroyView();
            r.f34211a.e(requireActivity());
            EditText editText = (EditText) _$_findCachedViewById(R.id.etRemarkText);
            if (editText != null) {
                editText.removeTextChangedListener(this.l);
            }
            _$_clearFindViewByIdCache();
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123483, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123490, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 123494, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseBottomDialog, com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public int p() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123480, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.style.RemarkSizeBottomDialog;
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public int q() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 123481, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dialog_remark_float_layer;
    }

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    @SuppressLint({"SetTextI18n"})
    public void r(@Nullable View view) {
        String content;
        int i3 = 0;
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 123482, new Class[]{View.class}, Void.TYPE).isSupported) {
            TextView textView = (TextView) _$_findCachedViewById(R.id.dialogTitle);
            RemarkFloatLayerModel U = U();
            String str = null;
            String title = U != null ? U.getTitle() : null;
            String str2 = "";
            if (title == null) {
                title = str2;
            }
            textView.setText(title);
            EditText editText = (EditText) _$_findCachedViewById(R.id.etRemarkText);
            RemarkFloatLayerModel U2 = U();
            String darkText = U2 != null ? U2.getDarkText() : null;
            if (darkText == null) {
                darkText = str2;
            }
            if (!PatchProxy.proxy(new Object[]{editText, darkText}, null, cp.b.changeQuickRedirect, true, 34315, new Class[]{TextView.class, String.class}, Void.TYPE).isSupported) {
                editText.setHint(darkText);
            }
            EditText editText2 = (EditText) _$_findCachedViewById(R.id.etRemarkText);
            RemarkFloatLayerModel U3 = U();
            String content2 = U3 != null ? U3.getContent() : null;
            if (content2 == null) {
                content2 = str2;
            }
            editText2.setText(content2);
            TextView textView2 = (TextView) _$_findCachedViewById(R.id.tvWordCount);
            StringBuilder sb2 = new StringBuilder();
            RemarkFloatLayerModel U4 = U();
            if (!(U4 == null || (content = U4.getContent()) == null)) {
                i3 = content.length();
            }
            sb2.append(String.valueOf(i3));
            sb2.append("/");
            textView2.setText(sb2.toString());
            TextView textView3 = (TextView) _$_findCachedViewById(R.id.tvExplanationTitle);
            RemarkFloatLayerModel U5 = U();
            String explanationTitle = U5 != null ? U5.getExplanationTitle() : null;
            if (explanationTitle == null) {
                explanationTitle = str2;
            }
            textView3.setText(explanationTitle);
            DuImageLoaderView duImageLoaderView = (DuImageLoaderView) _$_findCachedViewById(R.id.ivRemarkIcon);
            RemarkFloatLayerModel U6 = U();
            duImageLoaderView.i(U6 != null ? U6.getExplanationPicUrl() : null).p0(DuScaleType.FIT_X_CROP_TOP).x();
            TextView textView4 = (TextView) _$_findCachedViewById(R.id.tvTips);
            RemarkFloatLayerModel U7 = U();
            if (U7 != null) {
                str = U7.getTips();
            }
            if (str != null) {
                str2 = str;
            }
            textView4.setText(str2);
            ((DuImageLoaderView) _$_findCachedViewById(R.id.ivSeeMore)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/order/icon_see_more.png").p0(DuScaleType.FIT_XY).x();
            com.shizhuang.duapp.common.extension.ViewExtensionKt.j((FrameLayout) _$_findCachedViewById(R.id.seeMoreContainerView), 0, new RemarkFloatLayerDialog$initView$1(this), 1);
            com.shizhuang.duapp.common.extension.ViewExtensionKt.h((IconFontTextView) _$_findCachedViewById(R.id.closeIcon), new RemarkFloatLayerDialog$initView$2(this));
            ((EditText) _$_findCachedViewById(R.id.etRemarkText)).addTextChangedListener(this.l);
            com.shizhuang.duapp.common.extension.ViewExtensionKt.j((TextView) _$_findCachedViewById(R.id.btnConfirm), 0, new RemarkFloatLayerDialog$initView$3(this), 1);
            r.f34211a.d(requireActivity(), new b(this));
        }
    }
}