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


package com.shizhuang.duapp.modules.qsn_common.ui;

import a40.f;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.app.Dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.Window;
import android.view.WindowManager;
import android.widget.FrameLayout;
import androidx.annotation.Keep;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.core.view.ViewCompat;
import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
import com.facebook.drawee.generic.GenericDraweeHierarchy;
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.extension.ViewExtensionKt;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog;
import fi.c;
import j60.c0;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import l60.d;
import o5.i;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b&\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/shizhuang/duapp/modules/qsn_common/ui/QsnDetailBaseDialog;", "Lcom/shizhuang/duapp/modules/du_mall_common/dialog/MallBaseDialog;", "<init>", "()V", "du_qsn_common_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: QsnDetailBaseDialog.kt */
public abstract class QsnDetailBaseDialog extends MallBaseDialog {
    public static ChangeQuickRedirect changeQuickRedirect;

    /* renamed from: g  reason: collision with root package name */
    public int f24547g;

    /* renamed from: h  reason: collision with root package name */
    public b70.b f24548h;
    @Nullable
    public Function0<Unit> i;
    public final boolean j = true;
    public final boolean k = true;
    public Animator l;
    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(QsnDetailBaseDialog qsnDetailBaseDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{qsnDetailBaseDialog, bundle}, null, changeQuickRedirect, true, 309283, new Class[]{QsnDetailBaseDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                QsnDetailBaseDialog.E(qsnDetailBaseDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (qsnDetailBaseDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.qsn_common.ui.QsnDetailBaseDialog")) {
                    jn.b.f34396a.fragmentOnCreateMethod(qsnDetailBaseDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

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

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

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

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

    /* compiled from: View.kt */
    public static final class a implements View.OnLayoutChangeListener {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ QsnDetailBaseDialog b;

        public a(QsnDetailBaseDialog qsnDetailBaseDialog) {
            this.b = qsnDetailBaseDialog;
        }

        public void onLayoutChange(@NotNull View view, int i, int i3, int i12, int i13, int i14, int i15, int i16, int i17) {
            Object[] objArr = {view, new Integer(i), new Integer(i3), new Integer(i12), new Integer(i13), new Integer(i14), new Integer(i15), new Integer(i16), new Integer(i17)};
            ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
            Class cls = Integer.TYPE;
            if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 309290, new Class[]{View.class, cls, cls, cls, cls, cls, cls, cls, cls}, Void.TYPE).isSupported) {
                view.removeOnLayoutChangeListener(this);
                this.b.Q();
            }
        }
    }

    /* compiled from: QsnDetailBaseDialog.kt */
    public static final class b implements Runnable {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final /* synthetic */ QsnDetailBaseDialog b;

        public b(QsnDetailBaseDialog qsnDetailBaseDialog) {
            this.b = qsnDetailBaseDialog;
        }

        public final void run() {
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309294, new Class[0], Void.TYPE).isSupported) {
                this.b.dismiss();
            }
        }
    }

    public static View D(QsnDetailBaseDialog qsnDetailBaseDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, qsnDetailBaseDialog, changeQuickRedirect, false, 309261, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
        if (onCreateView != null) {
            FrameLayout frameLayout = (FrameLayout) onCreateView.findViewById(R.id.questionContent);
            if (qsnDetailBaseDialog.I() != 0) {
                ViewExtensionKt.v(frameLayout, qsnDetailBaseDialog.I(), true);
            }
            return onCreateView;
        }
        throw new IllegalStateException("Required value was null.".toString());
    }

    public static void E(QsnDetailBaseDialog qsnDetailBaseDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, qsnDetailBaseDialog, changeQuickRedirect, false, 309275, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void F(QsnDetailBaseDialog qsnDetailBaseDialog) {
        if (!PatchProxy.proxy(new Object[0], qsnDetailBaseDialog, changeQuickRedirect, false, 309277, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public static void G(QsnDetailBaseDialog qsnDetailBaseDialog) {
        if (!PatchProxy.proxy(new Object[0], qsnDetailBaseDialog, changeQuickRedirect, false, 309279, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

    public static void H(QsnDetailBaseDialog qsnDetailBaseDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, qsnDetailBaseDialog, changeQuickRedirect, false, 309281, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

    @LayoutRes
    public int I() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309262, new Class[0], Integer.TYPE);
        if (proxy.isSupported) {
            return ((Integer) proxy.result).intValue();
        }
        return 0;
    }

    public final int J() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309250, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.f24547g;
    }

    public boolean K() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309255, new Class[0], Boolean.TYPE);
        return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.j;
    }

    public boolean L() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309263, new Class[0], Boolean.TYPE);
        return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.k;
    }

    public void M() {
        boolean z = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309265, new Class[0], Void.TYPE).isSupported;
    }

    public void N(int i3) {
        int i12;
        Object[] objArr = {new Integer(i3)};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Integer.TYPE;
        if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 309269, new Class[]{cls}, Void.TYPE).isSupported) {
            View view = getView();
            ViewGroup.MarginLayoutParams marginLayoutParams = null;
            View findViewById = view != null ? view.findViewById(R.id.submitBtn) : null;
            View view2 = getView();
            View findViewById2 = view2 != null ? view2.findViewById(R.id.keyboardSpace) : null;
            ViewParent parent = findViewById != null ? findViewById.getParent() : null;
            int paddingBottom = parent instanceof ViewGroup ? ((ViewGroup) parent).getPaddingBottom() : 0;
            if (findViewById != null) {
                int height = findViewById.getHeight();
                ViewGroup.LayoutParams layoutParams = findViewById.getLayoutParams();
                if (!(layoutParams instanceof ViewGroup.MarginLayoutParams)) {
                    layoutParams = null;
                }
                ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) layoutParams;
                int i13 = height + (marginLayoutParams2 != null ? marginLayoutParams2.topMargin : 0);
                ViewGroup.LayoutParams layoutParams2 = findViewById.getLayoutParams();
                if (layoutParams2 instanceof ViewGroup.MarginLayoutParams) {
                    marginLayoutParams = layoutParams2;
                }
                ViewGroup.MarginLayoutParams marginLayoutParams3 = marginLayoutParams;
                i12 = i13 + (marginLayoutParams3 != null ? marginLayoutParams3.bottomMargin : 0) + paddingBottom;
            } else {
                i12 = 0;
            }
            int i14 = i12 + this.f24547g;
            int max = Math.max(i3 - i14, 0);
            if (findViewById2 != null && (!Intrinsics.areEqual(findViewById2.getTag(), Integer.valueOf(max)))) {
                findViewById2.setTag(Integer.valueOf(max));
                if (!PatchProxy.proxy(new Object[]{findViewById2, new Integer(max)}, this, changeQuickRedirect, false, 309270, new Class[]{View.class, cls}, Void.TYPE).isSupported) {
                    Animator animator = this.l;
                    if (animator != null) {
                        animator.cancel();
                    }
                    ValueAnimator ofInt = ValueAnimator.ofInt(findViewById2.getHeight(), max);
                    ofInt.addUpdateListener(new m81.a(findViewById2));
                    ofInt.setDuration(200L);
                    ofInt.setInterpolator(new FastOutSlowInInterpolator());
                    ofInt.start();
                    this.l = ofInt;
                }
                n81.b bVar = n81.b.f35945a;
                StringBuilder i15 = f.i("onKeyboardHeightChanged height: ", i3, ", submitHeight: ", i14, ", margin: ");
                i15.append(max);
                bVar.a(i15.toString());
            }
        }
    }

    public final void O() {
        Function0<Unit> function0;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309254, new Class[0], Void.TYPE).isSupported && (function0 = this.i) != null) {
            function0.invoke();
        }
    }

    public void P() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309267, new Class[0], Void.TYPE).isSupported) {
            c.b(requireActivity());
            ((FrameLayout) _$_findCachedViewById(R.id.mainContainer)).animate().translationY((float) ((FrameLayout) _$_findCachedViewById(R.id.mainContainer)).getHeight()).alpha(i.f36333a).setDuration(300).setInterpolator(new FastOutSlowInInterpolator()).withEndAction(new b(this)).start();
            _$_findCachedViewById(R.id.mainSpaceView).animate().alpha(i.f36333a).setDuration(300).start();
        }
    }

    public final void Q() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309266, new Class[0], Void.TYPE).isSupported) {
            FastOutSlowInInterpolator fastOutSlowInInterpolator = new FastOutSlowInInterpolator();
            ((FrameLayout) _$_findCachedViewById(R.id.mainContainer)).setTranslationY((float) ((FrameLayout) _$_findCachedViewById(R.id.mainContainer)).getHeight());
            ((FrameLayout) _$_findCachedViewById(R.id.mainContainer)).animate().translationY(i.f36333a).alpha(1.0f).setDuration(300).setInterpolator(fastOutSlowInInterpolator).start();
            _$_findCachedViewById(R.id.mainSpaceView).animate().alpha(1.0f).setDuration(300).start();
        }
    }

    public final void R(@Nullable Function0<Unit> function0) {
        if (!PatchProxy.proxy(new Object[]{function0}, this, changeQuickRedirect, false, 309253, new Class[]{Function0.class}, Void.TYPE).isSupported) {
            this.i = function0;
        }
    }

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog
    public void _$_clearFindViewByIdCache() {
        HashMap hashMap;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309273, 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, 309272, 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.common.dialog.DuDialogFragment
    public void g() {
        Dialog dialog;
        Window window;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309258, new Class[0], Void.TYPE).isSupported && (dialog = getDialog()) != null && (window = dialog.getWindow()) != null) {
            WindowManager.LayoutParams attributes = window.getAttributes();
            attributes.width = -1;
            attributes.height = -1;
            attributes.gravity = 80;
            window.setAttributes(attributes);
            c0.b(window);
            c0.c(window);
        }
    }

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

    @Override // com.shizhuang.duapp.modules.du_mall_common.dialog.MallBaseDialog, androidx.appcompat.app.AppCompatDialogFragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
    @NotNull
    public Dialog onCreateDialog(@Nullable Bundle bundle) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 309257, new Class[]{Bundle.class}, Dialog.class);
        return proxy.isSupported ? (Dialog) proxy.result : new QsnDetailBaseDialog$onCreateDialog$1(this, requireActivity(), getTheme());
    }

    @Override // 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, 309260, 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.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, 309271, new Class[0], Void.TYPE).isSupported) {
            Animator animator = this.l;
            if (animator != null) {
                animator.cancel();
            }
            b70.b bVar = this.f24548h;
            if (bVar != null) {
                bVar.a();
            }
            super.onDestroyView();
            _$_clearFindViewByIdCache();
        }
    }

    @Override // 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, 309278, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // 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, 309276, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // 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, 309280, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }

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

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

    @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
    public void r(@Nullable View view) {
        View findViewById;
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 309264, new Class[]{View.class}, Void.TYPE).isSupported) {
            if (K() && !PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 309268, new Class[0], Void.TYPE).isSupported) {
                b70.b bVar = new b70.b(requireActivity());
                this.f24548h = bVar;
                bVar.c(new m81.b(this));
                bVar.setFocusable(false);
                View view2 = getView();
                if (view2 != null) {
                    view2.post(new m81.c(this, bVar));
                }
            }
            if (!(view == null || (findViewById = view.findViewById(R.id.dialogClose)) == null)) {
                com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt.e(findViewById, 0, new QsnDetailBaseDialog$initView$1(this), 1);
            }
            _$_findCachedViewById(R.id.mainSpaceView).setAlpha(i.f36333a);
            ((FrameLayout) _$_findCachedViewById(R.id.mainContainer)).setAlpha(i.f36333a);
            if (L()) {
                FrameLayout frameLayout = (FrameLayout) _$_findCachedViewById(R.id.mainContainer);
                if (!ViewCompat.isLaidOut(frameLayout) || frameLayout.isLayoutRequested()) {
                    frameLayout.addOnLayoutChangeListener(new a(this));
                } else {
                    Q();
                }
            }
            setCancelable(false);
            ((GenericDraweeHierarchy) ((DuImageLoaderView) _$_findCachedViewById(R.id.questionBackground)).getHierarchy()).setActualImageScaleType(d.f35033a);
            ((DuImageLoaderView) _$_findCachedViewById(R.id.questionBackground)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/bg_qsn_detail_dialog.webp").x();
        }
    }
}