得物.apk(点击下载) / HighlightProcessingDialog.java
package com.shizhuang.duapp.media.fragment;
import android.animation.ValueAnimator;
import android.app.Dialog;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import co.c;
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.FontText;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.libs.duimageloaderview.options.DuScaleType;
import com.shizhuang.duapp.media.gallery.model.AnalyseRuleItem;
import df.o0;
import java.util.HashMap;
import jn.b;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import t20.n;
@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/media/fragment/HighlightProcessingDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "", "onResume", "<init>", "()V", "a", "du_media_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: HighlightProcessingDialog.kt */
public final class HighlightProcessingDialog extends BaseDialogFragment {
public static ChangeQuickRedirect changeQuickRedirect;
@NotNull
public static final a t = new a(null);
@Nullable
public Function0<Unit> e;
public String f;
/* renamed from: g reason: collision with root package name */
public ValueAnimator f10012g;
/* renamed from: h reason: collision with root package name */
public ValueAnimator f10013h;
public ValueAnimator i;
public ValueAnimator j;
public ValueAnimator k;
public ValueAnimator l;
public final Drawable m;
public AnalyseRuleItem n;
public int[] o = new int[2];
public boolean p;
/* renamed from: q reason: collision with root package name */
public String f10014q;
public String r;
public HashMap s;
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(HighlightProcessingDialog highlightProcessingDialog, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{highlightProcessingDialog, bundle}, null, changeQuickRedirect, true, 44987, new Class[]{HighlightProcessingDialog.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
HighlightProcessingDialog.t(highlightProcessingDialog, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (highlightProcessingDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.fragment.HighlightProcessingDialog")) {
b.f34396a.fragmentOnCreateMethod(highlightProcessingDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onCreateView")
@Keep
public static View FragmentMethodWeaver_onCreateView(@NonNull HighlightProcessingDialog highlightProcessingDialog, @androidx.annotation.Nullable LayoutInflater layoutInflater, @androidx.annotation.Nullable ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{highlightProcessingDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 44989, new Class[]{HighlightProcessingDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
long currentTimeMillis = System.currentTimeMillis();
View v4 = HighlightProcessingDialog.v(highlightProcessingDialog, layoutInflater, viewGroup, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (highlightProcessingDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.fragment.HighlightProcessingDialog")) {
b.f34396a.fragmentOnCreateViewMethod(highlightProcessingDialog, currentTimeMillis, currentTimeMillis2);
}
return v4;
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void FragmentMethodWeaver_onResume(HighlightProcessingDialog highlightProcessingDialog) {
if (!PatchProxy.proxy(new Object[]{highlightProcessingDialog}, null, changeQuickRedirect, true, 44986, new Class[]{HighlightProcessingDialog.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
HighlightProcessingDialog.s(highlightProcessingDialog);
long currentTimeMillis2 = System.currentTimeMillis();
if (highlightProcessingDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.fragment.HighlightProcessingDialog")) {
b.f34396a.fragmentOnResumeMethod(highlightProcessingDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void FragmentMethodWeaver_onStart(HighlightProcessingDialog highlightProcessingDialog) {
if (!PatchProxy.proxy(new Object[]{highlightProcessingDialog}, null, changeQuickRedirect, true, 44988, new Class[]{HighlightProcessingDialog.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
HighlightProcessingDialog.u(highlightProcessingDialog);
long currentTimeMillis2 = System.currentTimeMillis();
if (highlightProcessingDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.fragment.HighlightProcessingDialog")) {
b.f34396a.fragmentOnStartMethod(highlightProcessingDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onViewCreated")
@Keep
public static void FragmentMethodWeaver_onViewCreated(@NonNull HighlightProcessingDialog highlightProcessingDialog, @androidx.annotation.Nullable View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{highlightProcessingDialog, view, bundle}, null, changeQuickRedirect, true, 44990, new Class[]{HighlightProcessingDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
HighlightProcessingDialog.w(highlightProcessingDialog, view, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (highlightProcessingDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.fragment.HighlightProcessingDialog")) {
b.f34396a.fragmentOnViewCreatedMethod(highlightProcessingDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: HighlightProcessingDialog.kt */
public static final class a {
public static ChangeQuickRedirect changeQuickRedirect;
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
@Nullable
public final HighlightProcessingDialog a(@Nullable FragmentManager fragmentManager) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{fragmentManager}, this, changeQuickRedirect, false, 44985, new Class[]{FragmentManager.class}, HighlightProcessingDialog.class);
if (proxy.isSupported) {
return (HighlightProcessingDialog) proxy.result;
}
HighlightProcessingDialog highlightProcessingDialog = null;
Fragment findFragmentByTag = fragmentManager != null ? fragmentManager.findFragmentByTag("HighlightProcessingDialog") : null;
if (findFragmentByTag instanceof HighlightProcessingDialog) {
highlightProcessingDialog = findFragmentByTag;
}
return highlightProcessingDialog;
}
}
public HighlightProcessingDialog() {
b bVar = new b();
bVar.b = Color.parseColor("#000000");
bVar.m = n.b(4);
Unit unit = Unit.INSTANCE;
this.m = bVar.build();
}
public static void s(HighlightProcessingDialog highlightProcessingDialog) {
if (!PatchProxy.proxy(new Object[0], highlightProcessingDialog, changeQuickRedirect, false, 44958, new Class[0], Void.TYPE).isSupported) {
super.onResume();
o0.b("community_content_release_pageview", HighlightProcessingDialog$onResume$1.INSTANCE);
}
}
public static void t(HighlightProcessingDialog highlightProcessingDialog, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, highlightProcessingDialog, changeQuickRedirect, false, 44973, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void u(HighlightProcessingDialog highlightProcessingDialog) {
if (!PatchProxy.proxy(new Object[0], highlightProcessingDialog, changeQuickRedirect, false, 44975, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static View v(HighlightProcessingDialog highlightProcessingDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, highlightProcessingDialog, changeQuickRedirect, false, 44977, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
}
public static void w(HighlightProcessingDialog highlightProcessingDialog, View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{view, bundle}, highlightProcessingDialog, changeQuickRedirect, false, 44979, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
super.onViewCreated(view, bundle);
}
}
public View _$_findCachedViewById(int i3) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 44970, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.s == null) {
this.s = new HashMap();
}
View view = (View) this.s.get(Integer.valueOf(i3));
if (view != null) {
return view;
}
View view2 = getView();
if (view2 == null) {
return null;
}
View findViewById = view2.findViewById(i3);
this.s.put(Integer.valueOf(i3), findViewById);
return findViewById;
}
@Override // com.shizhuang.duapp.common.dialog.DuDialogFragment
public void g() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 44967, new Class[0], Void.TYPE).isSupported) {
super.g();
if (getDialog() != null) {
Dialog dialog = getDialog();
Window window = null;
if ((dialog != null ? dialog.getWindow() : null) != null) {
Dialog dialog2 = getDialog();
if (dialog2 != null) {
window = dialog2.getWindow();
}
if (window != null) {
window.setLayout(-1, -1);
}
}
}
}
}
@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, 44972, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
}
}
@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, 44976, 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;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 44969, new Class[0], Void.TYPE).isSupported) {
super.onDestroyView();
x();
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 44971, new Class[0], Void.TYPE).isSupported && (hashMap = this.s) != 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, 44957, 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, 44974, 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, 44978, 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, 44959, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.du_media_dialog_highlight_processing;
}
@Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
public void r(@Nullable View view) {
int[] iArr;
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 44960, new Class[]{View.class}, Void.TYPE).isSupported) {
((ConstraintLayout) _$_findCachedViewById(R.id.constraint_loading)).setBackground(this.m);
((DuImageLoaderView) _$_findCachedViewById(R.id.img_back)).setOnClickListener(new HighlightProcessingDialog$initView$$inlined$click$1(this));
((DuImageLoaderView) _$_findCachedViewById(R.id.img_close)).setOnClickListener(new HighlightProcessingDialog$initView$$inlined$click$2(this));
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 44961, new Class[0], Void.TYPE).isSupported) {
Bundle arguments = getArguments();
String str = null;
this.f = arguments != null ? arguments.getString("show_image") : null;
Bundle arguments2 = getArguments();
if (arguments2 == null || (iArr = arguments2.getIntArray("coors")) == null) {
iArr = new int[2];
}
this.o = iArr;
Bundle arguments3 = getArguments();
this.p = arguments3 != null ? arguments3.getBoolean("smart_bubble") : false;
Bundle arguments4 = getArguments();
this.f10014q = arguments4 != null ? arguments4.getString("gallery_title") : null;
Bundle arguments5 = getArguments();
this.r = arguments5 != null ? arguments5.getString("gallery_sub_title") : null;
Bundle arguments6 = getArguments();
this.n = arguments6 != null ? (AnalyseRuleItem) arguments6.getParcelable("higlight_model") : null;
((DuImageLoaderView) _$_findCachedViewById(R.id.img_loading)).i("https://cdn.poizon.com/node-common/b9052287-189d-e416-6624-a9b8939b4542.webp").x();
TextView textView = (TextView) _$_findCachedViewById(R.id.tv_theme);
AnalyseRuleItem analyseRuleItem = this.n;
textView.setText(analyseRuleItem != null ? analyseRuleItem.getShowTitle() : null);
FontText fontText = (FontText) _$_findCachedViewById(R.id.tv_time);
AnalyseRuleItem analyseRuleItem2 = this.n;
fontText.setText(analyseRuleItem2 != null ? analyseRuleItem2.getShowSubTitle() : null);
if (this.p) {
((TextView) _$_findCachedViewById(R.id.tv_theme)).setText(this.f10014q);
((TextView) _$_findCachedViewById(R.id.tv_theme)).setVisibility(0);
((FontText) _$_findCachedViewById(R.id.tv_time)).setVisibility(0);
((FontText) _$_findCachedViewById(R.id.tv_time)).setText(this.r);
} else {
TextView textView2 = (TextView) _$_findCachedViewById(R.id.tv_theme);
AnalyseRuleItem analyseRuleItem3 = this.n;
String showTitle = analyseRuleItem3 != null ? analyseRuleItem3.getShowTitle() : null;
int i3 = 8;
textView2.setVisibility((showTitle == null || showTitle.length() == 0) ^ true ? 0 : 8);
FontText fontText2 = (FontText) _$_findCachedViewById(R.id.tv_time);
AnalyseRuleItem analyseRuleItem4 = this.n;
if (analyseRuleItem4 != null) {
str = analyseRuleItem4.getShowSubTitle();
}
if (!(str == null || str.length() == 0)) {
i3 = 0;
}
fontText2.setVisibility(i3);
}
((c) ((DuImageLoaderView) _$_findCachedViewById(R.id.img_show)).i(this.f).p0(DuScaleType.CENTER_CROP).u(new HighlightProcessingDialog$initData$1(this))).x();
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 44965, new Class[0], Void.TYPE).isSupported) {
o0.b("community_content_release_block_exposure", new HighlightProcessingDialog$uploadExposure$1(this));
}
}
}
public final void x() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 44968, new Class[0], Void.TYPE).isSupported) {
ValueAnimator valueAnimator = this.i;
if (valueAnimator != null) {
valueAnimator.removeAllUpdateListeners();
}
ValueAnimator valueAnimator2 = this.i;
if (valueAnimator2 != null) {
valueAnimator2.removeAllListeners();
}
ValueAnimator valueAnimator3 = this.i;
if (valueAnimator3 != null) {
valueAnimator3.cancel();
}
this.i = null;
ValueAnimator valueAnimator4 = this.j;
if (valueAnimator4 != null) {
valueAnimator4.removeAllUpdateListeners();
}
ValueAnimator valueAnimator5 = this.j;
if (valueAnimator5 != null) {
valueAnimator5.removeAllListeners();
}
ValueAnimator valueAnimator6 = this.j;
if (valueAnimator6 != null) {
valueAnimator6.cancel();
}
this.j = null;
ValueAnimator valueAnimator7 = this.f10012g;
if (valueAnimator7 != null) {
valueAnimator7.removeAllUpdateListeners();
}
ValueAnimator valueAnimator8 = this.f10012g;
if (valueAnimator8 != null) {
valueAnimator8.removeAllListeners();
}
ValueAnimator valueAnimator9 = this.f10012g;
if (valueAnimator9 != null) {
valueAnimator9.cancel();
}
this.f10012g = null;
ValueAnimator valueAnimator10 = this.f10013h;
if (valueAnimator10 != null) {
valueAnimator10.removeAllUpdateListeners();
}
ValueAnimator valueAnimator11 = this.f10013h;
if (valueAnimator11 != null) {
valueAnimator11.removeAllListeners();
}
ValueAnimator valueAnimator12 = this.f10013h;
if (valueAnimator12 != null) {
valueAnimator12.cancel();
}
this.f10013h = null;
ValueAnimator valueAnimator13 = this.k;
if (valueAnimator13 != null) {
valueAnimator13.removeAllUpdateListeners();
}
ValueAnimator valueAnimator14 = this.k;
if (valueAnimator14 != null) {
valueAnimator14.removeAllListeners();
}
ValueAnimator valueAnimator15 = this.k;
if (valueAnimator15 != null) {
valueAnimator15.cancel();
}
this.k = null;
ValueAnimator valueAnimator16 = this.l;
if (valueAnimator16 != null) {
valueAnimator16.removeAllUpdateListeners();
}
ValueAnimator valueAnimator17 = this.l;
if (valueAnimator17 != null) {
valueAnimator17.removeAllListeners();
}
ValueAnimator valueAnimator18 = this.l;
if (valueAnimator18 != null) {
valueAnimator18.cancel();
}
this.l = null;
}
}
@Nullable
public final Function0<Unit> y() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 44955, new Class[0], Function0.class);
return proxy.isSupported ? (Function0) proxy.result : this.e;
}
public final void z(@Nullable Function0<Unit> function0) {
if (!PatchProxy.proxy(new Object[]{function0}, this, changeQuickRedirect, false, 44956, new Class[]{Function0.class}, Void.TYPE).isSupported) {
this.e = function0;
}
}
}