得物.apk(点击下载) / PublishLoadingWithImageDialogFragment.java
package com.shizhuang.duapp.modules.du_community_common.dialog;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
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.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.pay.R$styleable;
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 t20.n;
@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/du_community_common/dialog/PublishLoadingWithImageDialogFragment;", "Lcom/shizhuang/duapp/modules/du_community_common/dialog/PublishBottomDialogFragment;", "<init>", "()V", "a", "du_community_common_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: PublishLoadingWithImageDialogFragment.kt */
public final class PublishLoadingWithImageDialogFragment extends PublishBottomDialogFragment {
@NotNull
public static final a D = new a(null);
public static ChangeQuickRedirect changeQuickRedirect;
public final boolean A = true;
public Function0<Unit> B;
public HashMap C;
public final int x;
public final int y;
public final int z = 17;
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(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{publishLoadingWithImageDialogFragment, bundle}, null, changeQuickRedirect, true, 99567, new Class[]{PublishLoadingWithImageDialogFragment.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishLoadingWithImageDialogFragment.a0(publishLoadingWithImageDialogFragment, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishLoadingWithImageDialogFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_community_common.dialog.PublishLoadingWithImageDialogFragment")) {
b.f34396a.fragmentOnCreateMethod(publishLoadingWithImageDialogFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onCreateView")
@Keep
public static View FragmentMethodWeaver_onCreateView(@NonNull PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment, @Nullable LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{publishLoadingWithImageDialogFragment, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 99569, new Class[]{PublishLoadingWithImageDialogFragment.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
long currentTimeMillis = System.currentTimeMillis();
View c02 = PublishLoadingWithImageDialogFragment.c0(publishLoadingWithImageDialogFragment, layoutInflater, viewGroup, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishLoadingWithImageDialogFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_community_common.dialog.PublishLoadingWithImageDialogFragment")) {
b.f34396a.fragmentOnCreateViewMethod(publishLoadingWithImageDialogFragment, currentTimeMillis, currentTimeMillis2);
}
return c02;
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void FragmentMethodWeaver_onResume(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment) {
if (!PatchProxy.proxy(new Object[]{publishLoadingWithImageDialogFragment}, null, changeQuickRedirect, true, 99570, new Class[]{PublishLoadingWithImageDialogFragment.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishLoadingWithImageDialogFragment.d0(publishLoadingWithImageDialogFragment);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishLoadingWithImageDialogFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_community_common.dialog.PublishLoadingWithImageDialogFragment")) {
b.f34396a.fragmentOnResumeMethod(publishLoadingWithImageDialogFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void FragmentMethodWeaver_onStart(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment) {
if (!PatchProxy.proxy(new Object[]{publishLoadingWithImageDialogFragment}, null, changeQuickRedirect, true, 99568, new Class[]{PublishLoadingWithImageDialogFragment.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishLoadingWithImageDialogFragment.b0(publishLoadingWithImageDialogFragment);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishLoadingWithImageDialogFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_community_common.dialog.PublishLoadingWithImageDialogFragment")) {
b.f34396a.fragmentOnStartMethod(publishLoadingWithImageDialogFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onViewCreated")
@Keep
public static void FragmentMethodWeaver_onViewCreated(@NonNull PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment, @Nullable View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{publishLoadingWithImageDialogFragment, view, bundle}, null, changeQuickRedirect, true, 99571, new Class[]{PublishLoadingWithImageDialogFragment.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishLoadingWithImageDialogFragment.e0(publishLoadingWithImageDialogFragment, view, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishLoadingWithImageDialogFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.du_community_common.dialog.PublishLoadingWithImageDialogFragment")) {
b.f34396a.fragmentOnViewCreatedMethod(publishLoadingWithImageDialogFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: PublishLoadingWithImageDialogFragment.kt */
public static final class a {
public static ChangeQuickRedirect changeQuickRedirect;
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
@org.jetbrains.annotations.Nullable
public final PublishLoadingWithImageDialogFragment a(@org.jetbrains.annotations.Nullable FragmentManager fragmentManager) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{fragmentManager}, this, changeQuickRedirect, false, 99566, new Class[]{FragmentManager.class}, PublishLoadingWithImageDialogFragment.class);
if (proxy.isSupported) {
return (PublishLoadingWithImageDialogFragment) proxy.result;
}
PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment = null;
Fragment findFragmentByTag = fragmentManager != null ? fragmentManager.findFragmentByTag("PublishLoadingWithImageDialogFragment") : null;
if (findFragmentByTag instanceof PublishLoadingWithImageDialogFragment) {
publishLoadingWithImageDialogFragment = findFragmentByTag;
}
return publishLoadingWithImageDialogFragment;
}
}
public PublishLoadingWithImageDialogFragment() {
Integer valueOf = Integer.valueOf((int) R$styleable.AppCompatTheme_tooltipForegroundColor);
this.x = n.a(valueOf);
this.y = n.a(valueOf);
}
public static void a0(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, publishLoadingWithImageDialogFragment, changeQuickRedirect, false, 99554, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void b0(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment) {
if (!PatchProxy.proxy(new Object[0], publishLoadingWithImageDialogFragment, changeQuickRedirect, false, 99556, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static View c0(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, publishLoadingWithImageDialogFragment, changeQuickRedirect, false, 99558, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
}
public static void d0(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment) {
if (!PatchProxy.proxy(new Object[0], publishLoadingWithImageDialogFragment, changeQuickRedirect, false, 99560, new Class[0], Void.TYPE).isSupported) {
super.onResume();
}
}
public static void e0(PublishLoadingWithImageDialogFragment publishLoadingWithImageDialogFragment, View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{view, bundle}, publishLoadingWithImageDialogFragment, changeQuickRedirect, false, 99562, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
super.onViewCreated(view, bundle);
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public boolean A() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99541, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
return false;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public boolean B() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99542, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
return false;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public int C() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99545, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.du_community_dialog_publish_loading_with_image;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public boolean D() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99540, new Class[0], Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.A;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public int F() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99538, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.y;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public int G() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99537, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.x;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public boolean I() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99543, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
return false;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public int N() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99539, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.z;
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public void _$_clearFindViewByIdCache() {
HashMap hashMap;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99552, new Class[0], Void.TYPE).isSupported && (hashMap = this.C) != null) {
hashMap.clear();
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public View _$_findCachedViewById(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 99551, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.C == null) {
this.C = new HashMap();
}
View view = (View) this.C.get(Integer.valueOf(i));
if (view != null) {
return view;
}
View view2 = getView();
if (view2 == null) {
return null;
}
View findViewById = view2.findViewById(i);
this.C.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, com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment, androidx.fragment.app.DialogFragment
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 99553, 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, com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment, 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, 99557, 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, com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment, androidx.fragment.app.DialogFragment
public void onDestroyView() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99550, new Class[0], Void.TYPE).isSupported) {
this.B = null;
super.onDestroyView();
_$_clearFindViewByIdCache();
}
}
@Override // com.shizhuang.duapp.common.dialog.DuDialogFragment, androidx.appcompat.app.AppCompatDialogFragment, androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment, androidx.fragment.app.DialogFragment
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99559, 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, com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment, androidx.fragment.app.DialogFragment
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 99555, 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, com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment, androidx.fragment.app.DialogFragment
public void onViewCreated(View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 99561, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
}
}
@Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment, com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment
public void r(@NotNull View view) {
boolean z4 = true;
int i = 0;
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 99546, new Class[]{View.class}, Void.TYPE).isSupported) {
super.r(view);
Bundle arguments = getArguments();
String str = null;
String string = arguments != null ? arguments.getString("hint_first", "") : null;
Bundle arguments2 = getArguments();
String string2 = arguments2 != null ? arguments2.getString("hint_second", "") : null;
Bundle arguments3 = getArguments();
boolean z5 = arguments3 != null ? arguments3.getBoolean("show_close", false) : false;
Bundle arguments4 = getArguments();
if (arguments4 != null) {
str = arguments4.getString("load_image", "https://cdn.poizon.com/node-common/b9052287-189d-e416-6624-a9b8939b4542.webp");
}
if (!(string == null || string.length() == 0)) {
z4 = false;
}
if (z4) {
string = "加载中...";
}
((TextView) _$_findCachedViewById(R.id.tv_hint_first)).setText(string);
((TextView) _$_findCachedViewById(R.id.tv_hint_second)).setText(string2);
ImageView imageView = (ImageView) _$_findCachedViewById(R.id.iv_close);
if (!z5) {
i = 8;
}
imageView.setVisibility(i);
((ImageView) _$_findCachedViewById(R.id.iv_close)).setOnClickListener(new PublishLoadingWithImageDialogFragment$initView$1(this));
((DuImageLoaderView) _$_findCachedViewById(R.id.loadingIV)).i(str).x();
}
}
}