package com.shizhuang.duapp.modules.community.report.widgets; import android.app.Dialog; import android.os.Bundle; import android.text.TextPaint; import android.text.method.LinkMovementMethod; import android.text.style.ClickableSpan; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.Keep; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.widget.AppCompatImageView; 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.sensorsdata.analytics.android.sdk.SensorsDataAutoTrackHelper; import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented; import com.shizhuang.duapp.R; import com.shizhuang.duapp.common.dialog.BaseDialogFragment; import com.shizhuang.duapp.common.extension.ViewExtensionKt; import com.shizhuang.duapp.common.widget.shapeview.ShapeTextView; import com.shizhuang.duapp.common.widget.shapeview.ShapeView; import df.k0; import df.q0; import java.util.HashMap; import kotlin.Metadata; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import org.jetbrains.annotations.NotNull; import u91.e; @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/community/report/widgets/ReportDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "<init>", "()V", "a", "du_trend_release"}, k = 1, mv = {1, 4, 2}) /* compiled from: ReportDialog.kt */ public final class ReportDialog extends BaseDialogFragment { public static ChangeQuickRedirect changeQuickRedirect; @NotNull /* renamed from: g reason: collision with root package name */ public static final a f11895g = new a(null); public String e = ""; public HashMap f; 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(ReportDialog reportDialog, Bundle bundle) { if (!PatchProxy.proxy(new Object[]{reportDialog, bundle}, null, changeQuickRedirect, true, 81565, new Class[]{ReportDialog.class, Bundle.class}, Void.TYPE).isSupported) { long currentTimeMillis = System.currentTimeMillis(); ReportDialog.s(reportDialog, bundle); long currentTimeMillis2 = System.currentTimeMillis(); if (reportDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.community.report.widgets.ReportDialog")) { jn.b.f34396a.fragmentOnCreateMethod(reportDialog, currentTimeMillis, currentTimeMillis2); } } } @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment") @Insert(mayCreateSuper = true, value = "onCreateView") @Keep public static View FragmentMethodWeaver_onCreateView(@NonNull ReportDialog reportDialog, @Nullable LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, Bundle bundle) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{reportDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 81567, new Class[]{ReportDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class); if (proxy.isSupported) { return (View) proxy.result; } long currentTimeMillis = System.currentTimeMillis(); View u4 = ReportDialog.u(reportDialog, layoutInflater, viewGroup, bundle); long currentTimeMillis2 = System.currentTimeMillis(); if (reportDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.community.report.widgets.ReportDialog")) { jn.b.f34396a.fragmentOnCreateViewMethod(reportDialog, currentTimeMillis, currentTimeMillis2); } return u4; } @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment") @Insert(mayCreateSuper = true, value = "onResume") @Keep public static void FragmentMethodWeaver_onResume(ReportDialog reportDialog) { if (!PatchProxy.proxy(new Object[]{reportDialog}, null, changeQuickRedirect, true, 81568, new Class[]{ReportDialog.class}, Void.TYPE).isSupported) { long currentTimeMillis = System.currentTimeMillis(); ReportDialog.v(reportDialog); long currentTimeMillis2 = System.currentTimeMillis(); if (reportDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.community.report.widgets.ReportDialog")) { jn.b.f34396a.fragmentOnResumeMethod(reportDialog, currentTimeMillis, currentTimeMillis2); } } } @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment") @Insert(mayCreateSuper = true, value = "onStart") @Keep public static void FragmentMethodWeaver_onStart(ReportDialog reportDialog) { if (!PatchProxy.proxy(new Object[]{reportDialog}, null, changeQuickRedirect, true, 81566, new Class[]{ReportDialog.class}, Void.TYPE).isSupported) { long currentTimeMillis = System.currentTimeMillis(); ReportDialog.t(reportDialog); long currentTimeMillis2 = System.currentTimeMillis(); if (reportDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.community.report.widgets.ReportDialog")) { jn.b.f34396a.fragmentOnStartMethod(reportDialog, currentTimeMillis, currentTimeMillis2); } } } @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment") @Insert(mayCreateSuper = true, value = "onViewCreated") @Keep public static void FragmentMethodWeaver_onViewCreated(@NonNull ReportDialog reportDialog, @Nullable View view, Bundle bundle) { if (!PatchProxy.proxy(new Object[]{reportDialog, view, bundle}, null, changeQuickRedirect, true, 81569, new Class[]{ReportDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) { long currentTimeMillis = System.currentTimeMillis(); ReportDialog.w(reportDialog, view, bundle); long currentTimeMillis2 = System.currentTimeMillis(); if (reportDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.community.report.widgets.ReportDialog")) { jn.b.f34396a.fragmentOnViewCreatedMethod(reportDialog, currentTimeMillis, currentTimeMillis2); } } } } /* compiled from: ReportDialog.kt */ public static final class a { public static ChangeQuickRedirect changeQuickRedirect; public a(DefaultConstructorMarker defaultConstructorMarker) { } } /* compiled from: ReportDialog.kt */ public static final class b extends ClickableSpan { public static ChangeQuickRedirect changeQuickRedirect; public final /* synthetic */ ReportDialog b; public b(ReportDialog reportDialog) { this.b = reportDialog; } @SensorsDataInstrumented public void onClick(@NotNull View view) { if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 81570, new Class[]{View.class}, Void.TYPE).isSupported) { if (view instanceof TextView) { ((TextView) view).setHighlightColor(0); } e.G(this.b.getContext(), "https://m.dewu.com/mdu/company.html#/complaint"); this.b.dismiss(); SensorsDataAutoTrackHelper.trackViewOnClick(view); } } public void updateDrawState(@NotNull TextPaint textPaint) { if (!PatchProxy.proxy(new Object[]{textPaint}, this, changeQuickRedirect, false, 81571, new Class[]{TextPaint.class}, Void.TYPE).isSupported) { textPaint.setColor(k0.a(R.color.color_blue_16a5af)); textPaint.setUnderlineText(false); } } } public static void s(ReportDialog reportDialog, Bundle bundle) { String string; if (!PatchProxy.proxy(new Object[]{bundle}, reportDialog, changeQuickRedirect, false, 81550, new Class[]{Bundle.class}, Void.TYPE).isSupported) { super.onCreate(bundle); Bundle arguments = reportDialog.getArguments(); String str = "fake"; if (!(arguments == null || (string = arguments.getString("reportType", str)) == null)) { str = string; } reportDialog.e = str; } } public static void t(ReportDialog reportDialog) { if (!PatchProxy.proxy(new Object[0], reportDialog, changeQuickRedirect, false, 81557, new Class[0], Void.TYPE).isSupported) { super.onStart(); } } public static View u(ReportDialog reportDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, reportDialog, changeQuickRedirect, false, 81559, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class); return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle); } public static void v(ReportDialog reportDialog) { if (!PatchProxy.proxy(new Object[0], reportDialog, changeQuickRedirect, false, 81561, new Class[0], Void.TYPE).isSupported) { super.onResume(); } } public static void w(ReportDialog reportDialog, View view, Bundle bundle) { if (!PatchProxy.proxy(new Object[]{view, bundle}, reportDialog, changeQuickRedirect, false, 81563, 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, 81553, new Class[]{Integer.TYPE}, View.class); if (proxy.isSupported) { return (View) proxy.result; } if (this.f == null) { this.f = new HashMap(); } View view = (View) this.f.get(Integer.valueOf(i)); if (view != null) { return view; } View view2 = getView(); if (view2 == null) { return null; } View findViewById = view2.findViewById(i); this.f.put(Integer.valueOf(i), findViewById); return findViewById; } @Override // 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, 81549, new Class[]{Bundle.class}, Void.TYPE).isSupported) { _boostWeave.FragmentMethodWeaver_onCreate(this, bundle); } } @Override // androidx.appcompat.app.AppCompatDialogFragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment @NotNull public Dialog onCreateDialog(@org.jetbrains.annotations.Nullable Bundle bundle) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 81551, new Class[]{Bundle.class}, Dialog.class); if (proxy.isSupported) { return (Dialog) proxy.result; } Dialog onCreateDialog = super.onCreateDialog(bundle); onCreateDialog.setCanceledOnTouchOutside(false); return onCreateDialog; } @Override // 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, 81558, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class); return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle); } @Override // androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment public void onDestroyView() { HashMap hashMap; super.onDestroyView(); if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 81554, new Class[0], Void.TYPE).isSupported && (hashMap = this.f) != null) { hashMap.clear(); } } @Override // 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, 81560, new Class[0], Void.TYPE).isSupported) { _boostWeave.FragmentMethodWeaver_onResume(this); } } @Override // 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, 81556, new Class[0], Void.TYPE).isSupported) { _boostWeave.FragmentMethodWeaver_onStart(this); } } @Override // 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, 81562, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) { _boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle); } } @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment public int q() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 81548, new Class[0], Integer.TYPE); return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.du_trend_dialg_report; } @Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment public void r(@org.jetbrains.annotations.Nullable View view) { if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 81552, new Class[]{View.class}, Void.TYPE).isSupported) { ((TextView) _$_findCachedViewById(R.id.tvContent)).setText(k0.c(Intrinsics.areEqual(this.e, "fake") ? R.string.du_trend_report_fake : R.string.du_trend_report_pretend)); ((TextView) _$_findCachedViewById(R.id.tvTerm)).setMovementMethod(LinkMovementMethod.getInstance()); q0 q0Var = new q0((TextView) _$_findCachedViewById(R.id.tvTerm), false); q0Var.a(k0.c(R.string.du_trend_report_term_part1), new Object[0]); q0Var.a(k0.c(R.string.du_trend_report_term_part2), new b(this)); q0Var.a(k0.c(R.string.du_trend_report_term_part3), new Object[0]); q0Var.b(); ViewExtensionKt.h((ShapeView) _$_findCachedViewById(R.id.viewEmail), new ReportDialog$initView$2(this)); ViewExtensionKt.j((ShapeTextView) _$_findCachedViewById(R.id.tvOK), 0, new ReportDialog$initView$3(this), 1); ViewExtensionKt.j((AppCompatImageView) _$_findCachedViewById(R.id.ivClose), 0, new ReportDialog$initView$4(this), 1); } } }