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


package com.shizhuang.duapp.modules.live.common.product.commentate;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
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.BaseApplication;
import com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.widget.font.IconFontTextView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import ep0.o;
import java.util.HashMap;
import jr.b;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;

@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/product/commentate/LiveCommentateTipDialog;", "Lcom/shizhuang/duapp/common/dialog/sheet/BaseBottomSheetDialogFragment;", "<init>", "()V", "a", "du_live_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: LiveCommentateTipDialog.kt */
public final class LiveCommentateTipDialog extends BaseBottomSheetDialogFragment {
    public static ChangeQuickRedirect changeQuickRedirect;
    @NotNull

    /* renamed from: h  reason: collision with root package name */
    public static final a f18482h = new a(null);
    public int f = ((int) (((float) (b.a(BaseApplication.b()) * 75)) / 100.0f));

    /* renamed from: g  reason: collision with root package name */
    public HashMap f18483g;

    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(LiveCommentateTipDialog liveCommentateTipDialog, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{liveCommentateTipDialog, bundle}, null, changeQuickRedirect, true, 200251, new Class[]{LiveCommentateTipDialog.class, Bundle.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                LiveCommentateTipDialog.r(liveCommentateTipDialog, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (liveCommentateTipDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.live.common.product.commentate.LiveCommentateTipDialog")) {
                    jn.b.f34396a.fragmentOnCreateMethod(liveCommentateTipDialog, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

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

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

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

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

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

        public a(DefaultConstructorMarker defaultConstructorMarker) {
        }
    }

    public static void r(LiveCommentateTipDialog liveCommentateTipDialog, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, liveCommentateTipDialog, changeQuickRedirect, false, 200241, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void s(LiveCommentateTipDialog liveCommentateTipDialog) {
        if (!PatchProxy.proxy(new Object[0], liveCommentateTipDialog, changeQuickRedirect, false, 200243, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

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

    public static void u(LiveCommentateTipDialog liveCommentateTipDialog) {
        if (!PatchProxy.proxy(new Object[0], liveCommentateTipDialog, changeQuickRedirect, false, 200247, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
        }
    }

    public static void v(LiveCommentateTipDialog liveCommentateTipDialog, View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, liveCommentateTipDialog, changeQuickRedirect, false, 200249, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            super.onViewCreated(view, bundle);
        }
    }

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

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

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment
    public int h() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 200235, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.f;
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment
    public int i() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 200234, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.f;
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment
    public void k(@org.jetbrains.annotations.Nullable View view) {
        if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 200232, new Class[]{View.class}, Void.TYPE).isSupported) {
            o oVar = o.f31998a;
            oVar.b((LinearLayout) _$_findCachedViewById(R.id.commentateInvitationContentLy), (int) (((float) (b.b(getActivity()) * 128)) / 75.0f), b.b(getActivity()));
            oVar.b((DuImageLoaderView) _$_findCachedViewById(R.id.commentateInvitationContent), (int) (((float) (b.b(getActivity()) * 128)) / 75.0f), b.b(getActivity()));
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 200236, new Class[0], Void.TYPE).isSupported) {
                mq0.b.e(mq0.b.f35739a, "community_live_activity_pageview", "426", null, LiveCommentateTipDialog$uploadSensorEvent$1.INSTANCE, 4);
            }
            ((DuImageLoaderView) _$_findCachedViewById(R.id.commentateInvitationContent)).g("https://apk.poizon.com/duApp/Android_Config/live/img/commentate_invitation_content_pic.jpg");
            ViewExtensionKt.h((IconFontTextView) _$_findCachedViewById(R.id.backIcon), new LiveCommentateTipDialog$initView$1(this));
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onCreate(Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 200240, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, 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, 200244, 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.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onDestroyView() {
        HashMap hashMap;
        super.onDestroyView();
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 200238, new Class[0], Void.TYPE).isSupported && (hashMap = this.f18483g) != null) {
            hashMap.clear();
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onResume() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 200246, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onResume(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onStart() {
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 200242, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onStart(this);
        }
    }

    @Override // com.shizhuang.duapp.common.dialog.sheet.BaseBottomSheetDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, com.google.android.material.bottomsheet.BottomSheetDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
    public void onViewCreated(View view, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 200248, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
        }
    }
}