得物.apk(点击下载) / PublishCommonImageEditFragment.java
package com.shizhuang.duapp.media.comment.ui.fragment;
import android.content.Context;
import android.os.Bundle;
import android.os.Looper;
import android.os.MessageQueue;
import android.util.ArrayMap;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.activity.ComponentActivity;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentViewModelLazyKt;
import androidx.lifecycle.LifecycleOwner;
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.meizu.cloud.pushsdk.constants.PushConstants;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.extension.ViewModelLifecycleAwareLazy;
import com.shizhuang.duapp.common.ui.BaseFragment;
import com.shizhuang.duapp.common.utils.AsyncUploadUtils;
import com.shizhuang.duapp.common.widget.shapeview.ShapeTextView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.media.comment.ui.viewmodel.PublishMaterialViewModel;
import com.shizhuang.duapp.media.comment.ui.widgets.image.PublishCommonBottomImageView;
import com.shizhuang.duapp.media.editimage.ImageEditViewModel;
import com.shizhuang.duapp.media.editimage.ImageTagViewModel;
import com.shizhuang.duapp.media.editimage.TextListViewModel;
import com.shizhuang.duapp.media.editimage.adapter.ImageEditPagerAdapter;
import com.shizhuang.duapp.media.editimage.dialog.ImageCropDialogFragment;
import com.shizhuang.duapp.media.editimage.dialog.TextListDialogFragment;
import com.shizhuang.duapp.media.editimage.fragment.ImageEditItemFragment;
import com.shizhuang.duapp.media.editimage.helper.ImageEditGuideDelegate;
import com.shizhuang.duapp.media.editimage.helper.ImageEditGuideDelegate$showImageEditGuideDialog$1;
import com.shizhuang.duapp.media.editimage.helper.ImageEditGuideDelegate$showImageEditGuideDialog$2;
import com.shizhuang.duapp.media.editimage.view.ImageContainerView;
import com.shizhuang.duapp.media.editimage.view.ImageEditContainerView;
import com.shizhuang.duapp.media.editimage.view.ImageStickerContainerView;
import com.shizhuang.duapp.media.editimage.view.ImageTagContainerView;
import com.shizhuang.duapp.media.editimage.view.OperateImageContainer;
import com.shizhuang.duapp.media.helper.EditPicHelperV2;
import com.shizhuang.duapp.media.helper.SmartMarkHelperV2;
import com.shizhuang.duapp.media.pictemplate.fragment.ImageTemplateDialogFragment;
import com.shizhuang.duapp.media.pictemplate.viewmodel.PublishImageTemplateViewModel;
import com.shizhuang.duapp.media.publish.activity.TotalPublishProcessActivity;
import com.shizhuang.duapp.media.publish.fragment.CVFilterListDialogFragment;
import com.shizhuang.duapp.media.publish.tag.TagListDialogFragment;
import com.shizhuang.duapp.media.publish.tag.TagViewModel;
import com.shizhuang.duapp.media.publish.view.PublishBottomEditImageView;
import com.shizhuang.duapp.media.publish.view.PublishBottomView;
import com.shizhuang.duapp.media.publish.viewmodel.CvFilterViewModel;
import com.shizhuang.duapp.media.sticker.StickerListDialogFragment;
import com.shizhuang.duapp.media.sticker.viewmodel.StickerViewModel;
import com.shizhuang.duapp.media.sticker.viewmodel.TextStickerInputViewModel;
import com.shizhuang.duapp.media.view.CustomViewPager2;
import com.shizhuang.duapp.media.viewmodel.PdPropertyViewModel;
import com.shizhuang.duapp.modules.du_community_common.base.viewmodel.EventObserver;
import com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment;
import com.shizhuang.duapp.modules.du_community_common.facade.request.DuHttpRequest;
import com.shizhuang.duapp.modules.du_community_common.interfaces.IEditImagePage;
import com.shizhuang.duapp.modules.du_community_common.interfaces.IPublishEvent;
import com.shizhuang.duapp.modules.du_community_common.model.BandInfo;
import com.shizhuang.duapp.modules.du_community_common.model.publish.JudgeProductStickerModel;
import com.shizhuang.duapp.modules.du_community_common.model.publish.MediaImageModel;
import com.shizhuang.duapp.modules.du_community_common.model.publish.PicTemplateInfoModel;
import com.shizhuang.duapp.modules.du_community_common.model.publish.PicTemplateItemModel;
import com.shizhuang.duapp.modules.du_community_common.model.publish.PuzzleModel;
import com.shizhuang.duapp.modules.du_community_common.publish.viewmodel.BeautyViewModel;
import com.shizhuang.duapp.modules.du_community_common.publish.viewmodel.PublishProcessShareViewModel;
import com.shizhuang.duapp.modules.du_community_common.view.sticker.view.BaseStickerContainerView;
import com.shizhuang.model.trend.ProductLabelModel;
import com.shizhuang.model.trend.TagModel;
import com.tencent.mars.xlog.Log;
import df.b0;
import df.o0;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.Triple;
import kotlin.Unit;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
import kotlin.jvm.internal.Reflection;
import m30.m0;
import o5.i;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import us.j;
import y20.z;
@Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0006\b\u0016\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004:\u0001\nB\u0007¢\u0006\u0004\b\b\u0010\tJ\b\u0010\u0006\u001a\u00020\u0005H\u0016J\b\u0010\u0007\u001a\u00020\u0005H\u0016¨\u0006\u000b"}, d2 = {"Lcom/shizhuang/duapp/media/comment/ui/fragment/PublishCommonImageEditFragment;", "Lcom/shizhuang/duapp/common/ui/BaseFragment;", "Lcom/shizhuang/duapp/modules/du_community_common/interfaces/IPublishEvent;", "Lcom/shizhuang/duapp/modules/du_community_common/interfaces/IEditImagePage;", "Lcom/shizhuang/duapp/modules/du_community_common/dialog/PublishBottomDialogFragment$Listener;", "", "onPause", "onResume", "<init>", "()V", "a", "du_media_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: PublishCommonImageEditFragment.kt */
public class PublishCommonImageEditFragment extends BaseFragment implements IPublishEvent, IEditImagePage, PublishBottomDialogFragment.Listener {
@NotNull
public static final a D = new a(null);
public static ChangeQuickRedirect changeQuickRedirect;
@NotNull
public final Lazy A = FragmentViewModelLazyKt.createViewModelLazy(this, Reflection.getOrCreateKotlinClass(TextStickerInputViewModel.class), new PublishCommonImageEditFragment$$special$$inlined$viewModels$2(new PublishCommonImageEditFragment$$special$$inlined$viewModels$1(this)), null);
@NotNull
public final Lazy B = FragmentViewModelLazyKt.createViewModelLazy(this, Reflection.getOrCreateKotlinClass(TextListViewModel.class), new PublishCommonImageEditFragment$$special$$inlined$viewModels$4(new PublishCommonImageEditFragment$$special$$inlined$viewModels$3(this)), null);
public HashMap C;
public boolean b;
@NotNull
/* renamed from: c reason: collision with root package name */
public ArrayList<String> f9662c = new ArrayList<>();
@NotNull
public String d = "edit";
public int e;
@Nullable
public View f;
@Nullable
/* renamed from: g reason: collision with root package name */
public CustomViewPager2 f9663g;
/* renamed from: h reason: collision with root package name */
public Float f9664h = Float.valueOf((float) i.f36333a);
public final Lazy i = LazyKt__LazyJVMKt.lazy(new PublishCommonImageEditFragment$smartMarkHelper$2(this));
@NotNull
public final Lazy j = LazyKt__LazyJVMKt.lazy(new PublishCommonImageEditFragment$editHelper$2(this));
public boolean k;
public ImageEditGuideDelegate l;
@NotNull
public final Lazy m = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$1(this));
@NotNull
public final Lazy n = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$2(this));
@NotNull
public final Lazy o = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$3(this));
@NotNull
public final Lazy p = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$4(this));
@NotNull
/* renamed from: q reason: collision with root package name */
public final Lazy f9665q = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$5(this));
@NotNull
public final Lazy r = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$6(this));
public final Lazy s = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$7(this));
@NotNull
public final Lazy t = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duViewModel$1(this));
@NotNull
/* renamed from: u reason: collision with root package name */
public final Lazy f9666u = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duViewModel$2(this));
@NotNull
/* renamed from: v reason: collision with root package name */
public final Lazy f9667v = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$8(this));
@NotNull
public final Lazy w = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$9(this));
@NotNull
public final Lazy x = new ViewModelLifecycleAwareLazy(this, new PublishCommonImageEditFragment$$special$$inlined$duActivityViewModel$10(this));
@NotNull
public final Lazy y = LazyKt__LazyJVMKt.lazy(new PublishCommonImageEditFragment$mediaViewModels$2(this));
@NotNull
public final Lazy z = LazyKt__LazyJVMKt.lazy(new PublishCommonImageEditFragment$adapter$2(this));
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(PublishCommonImageEditFragment publishCommonImageEditFragment, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{publishCommonImageEditFragment, bundle}, null, changeQuickRedirect, true, 39897, new Class[]{PublishCommonImageEditFragment.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishCommonImageEditFragment.d(publishCommonImageEditFragment, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishCommonImageEditFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.comment.ui.fragment.PublishCommonImageEditFragment")) {
jn.b.f34396a.fragmentOnCreateMethod(publishCommonImageEditFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onCreateView")
@Keep
public static View FragmentMethodWeaver_onCreateView(@NonNull PublishCommonImageEditFragment publishCommonImageEditFragment, @androidx.annotation.Nullable LayoutInflater layoutInflater, @androidx.annotation.Nullable ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{publishCommonImageEditFragment, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 39899, new Class[]{PublishCommonImageEditFragment.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
long currentTimeMillis = System.currentTimeMillis();
View f = PublishCommonImageEditFragment.f(publishCommonImageEditFragment, layoutInflater, viewGroup, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishCommonImageEditFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.comment.ui.fragment.PublishCommonImageEditFragment")) {
jn.b.f34396a.fragmentOnCreateViewMethod(publishCommonImageEditFragment, currentTimeMillis, currentTimeMillis2);
}
return f;
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void FragmentMethodWeaver_onResume(PublishCommonImageEditFragment publishCommonImageEditFragment) {
if (!PatchProxy.proxy(new Object[]{publishCommonImageEditFragment}, null, changeQuickRedirect, true, 39896, new Class[]{PublishCommonImageEditFragment.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishCommonImageEditFragment.c(publishCommonImageEditFragment);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishCommonImageEditFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.comment.ui.fragment.PublishCommonImageEditFragment")) {
jn.b.f34396a.fragmentOnResumeMethod(publishCommonImageEditFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void FragmentMethodWeaver_onStart(PublishCommonImageEditFragment publishCommonImageEditFragment) {
if (!PatchProxy.proxy(new Object[]{publishCommonImageEditFragment}, null, changeQuickRedirect, true, 39898, new Class[]{PublishCommonImageEditFragment.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishCommonImageEditFragment.e(publishCommonImageEditFragment);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishCommonImageEditFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.comment.ui.fragment.PublishCommonImageEditFragment")) {
jn.b.f34396a.fragmentOnStartMethod(publishCommonImageEditFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onViewCreated")
@Keep
public static void FragmentMethodWeaver_onViewCreated(@NonNull PublishCommonImageEditFragment publishCommonImageEditFragment, @androidx.annotation.Nullable View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{publishCommonImageEditFragment, view, bundle}, null, changeQuickRedirect, true, 39900, new Class[]{PublishCommonImageEditFragment.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
PublishCommonImageEditFragment.g(publishCommonImageEditFragment, view, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (publishCommonImageEditFragment.getClass().getCanonicalName().equals("com.shizhuang.duapp.media.comment.ui.fragment.PublishCommonImageEditFragment")) {
jn.b.f34396a.fragmentOnViewCreatedMethod(publishCommonImageEditFragment, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: PublishCommonImageEditFragment.kt */
public static final class a {
public static ChangeQuickRedirect changeQuickRedirect;
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: PublishProcessShareViewModel.kt */
public static final class b implements AsyncUploadUtils.IUploadImageListener {
public static ChangeQuickRedirect changeQuickRedirect;
/* renamed from: a reason: collision with root package name */
public final /* synthetic */ PublishCommonImageEditFragment f9670a;
public final /* synthetic */ ArrayList b;
public b(PublishCommonImageEditFragment publishCommonImageEditFragment, ArrayList arrayList) {
this.f9670a = publishCommonImageEditFragment;
this.b = arrayList;
}
@Override // com.shizhuang.duapp.common.utils.AsyncUploadUtils.IUploadImageListener
public void onError(@Nullable String str) {
boolean z = PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 39946, new Class[]{String.class}, Void.TYPE).isSupported;
}
@Override // com.shizhuang.duapp.common.utils.AsyncUploadUtils.IUploadImageListener
public void onProgress(int i) {
boolean z = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 39947, new Class[]{Integer.TYPE}, Void.TYPE).isSupported;
}
@Override // com.shizhuang.duapp.common.utils.AsyncUploadUtils.IUploadImageListener
public void onSuccess(@NotNull List<String> list) {
if (!PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 39948, new Class[]{List.class}, Void.TYPE).isSupported) {
ArrayList arrayList = this.b;
if (arrayList != null) {
arrayList.addAll(list);
}
ArrayList<String> arrayList2 = this.b;
if (arrayList2 != null) {
this.f9670a.t().getRecommendTopic(this.f9670a.getContext(), false, arrayList2);
}
}
}
@Override // com.shizhuang.duapp.common.utils.AsyncUploadUtils.IUploadImageListener
public void onSuccessByPosition(int i, @NotNull String str) {
boolean z = PatchProxy.proxy(new Object[]{new Integer(i), str}, this, changeQuickRedirect, false, 39949, new Class[]{Integer.TYPE, String.class}, Void.TYPE).isSupported;
}
}
/* compiled from: PublishCommonImageEditFragment.kt */
public static final class c implements Function1<ArrayMap<String, Object>, Unit> {
public static ChangeQuickRedirect changeQuickRedirect;
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(ArrayMap<String, Object> arrayMap) {
ArrayMap<String, Object> arrayMap2 = arrayMap;
if (!PatchProxy.proxy(new Object[]{arrayMap2}, this, changeQuickRedirect, false, 39951, new Class[]{ArrayMap.class}, Void.TYPE).isSupported) {
arrayMap2.put("content_type", "1");
arrayMap2.put("content_release_id", m0.b);
arrayMap2.put("content_release_source_type_id", String.valueOf(m0.f35397a));
}
return Unit.INSTANCE;
}
}
/* compiled from: PublishCommonImageEditFragment.kt */
public static final class d implements MessageQueue.IdleHandler {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ PublishCommonImageEditFragment b;
public d(PublishCommonImageEditFragment publishCommonImageEditFragment) {
this.b = publishCommonImageEditFragment;
}
public final boolean queueIdle() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39952, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
this.b.clickSticker();
return false;
}
}
/* compiled from: PublishCommonImageEditFragment.kt */
public static final class e implements Function1<ArrayMap<String, Object>, Unit> {
public static ChangeQuickRedirect changeQuickRedirect;
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(ArrayMap<String, Object> arrayMap) {
ArrayMap<String, Object> arrayMap2 = arrayMap;
if (!PatchProxy.proxy(new Object[]{arrayMap2}, this, changeQuickRedirect, false, 39953, new Class[]{ArrayMap.class}, Void.TYPE).isSupported) {
arrayMap2.put("content_type", "1");
arrayMap2.put("content_release_id", m0.b);
arrayMap2.put("content_release_source_type_id", String.valueOf(m0.f35397a));
}
return Unit.INSTANCE;
}
}
public static void c(PublishCommonImageEditFragment publishCommonImageEditFragment) {
boolean z4 = false;
if (!PatchProxy.proxy(new Object[0], publishCommonImageEditFragment, changeQuickRedirect, false, 39854, new Class[0], Void.TYPE).isSupported) {
super.onResume();
Log.i("media_vide_editor", "PublishCommonImageEditFragment onResume");
if (publishCommonImageEditFragment.b) {
publishCommonImageEditFragment.b = false;
Looper.myQueue().addIdleHandler(new d(publishCommonImageEditFragment));
}
l30.b bVar = l30.b.f34999a;
e eVar = new e();
ArrayMap<String, Object> arrayMap = new ArrayMap<>(8);
if ("218".length() > 0) {
z4 = true;
}
if (z4) {
arrayMap.put("current_page", "218");
}
eVar.invoke(arrayMap);
bVar.b("community_content_release_pageview", arrayMap);
}
}
public static void d(PublishCommonImageEditFragment publishCommonImageEditFragment, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, publishCommonImageEditFragment, changeQuickRedirect, false, 39869, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void e(PublishCommonImageEditFragment publishCommonImageEditFragment) {
if (!PatchProxy.proxy(new Object[0], publishCommonImageEditFragment, changeQuickRedirect, false, 39871, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static View f(PublishCommonImageEditFragment publishCommonImageEditFragment, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, publishCommonImageEditFragment, changeQuickRedirect, false, 39873, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
}
public static void g(PublishCommonImageEditFragment publishCommonImageEditFragment, View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{view, bundle}, publishCommonImageEditFragment, changeQuickRedirect, false, 39875, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
super.onViewCreated(view, bundle);
}
}
public void A() {
ImageEditGuideDelegate imageEditGuideDelegate;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39815, new Class[0], Void.TYPE).isSupported && (imageEditGuideDelegate = this.l) != null) {
imageEditGuideDelegate.a();
}
}
public void B() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39750, new Class[0], Void.TYPE).isSupported) {
if (n() > 1) {
((TextView) _$_findCachedViewById(R.id.tvTopMid)).setText(String.valueOf(this.e + 1) + "/" + n());
} else {
((TextView) _$_findCachedViewById(R.id.tvTopMid)).setText("");
}
((ImageView) _$_findCachedViewById(R.id.imgBack)).setImageResource(Intrinsics.areEqual(this.d, "reEdit") ? R.mipmap.du_community_ic_close_white : R.mipmap.du_community_ic_back_shadow);
}
}
public void C() {
boolean z4 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39776, new Class[0], Void.TYPE).isSupported;
}
public final void D() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39790, new Class[0], Void.TYPE).isSupported) {
K(true);
}
}
public final void E(int i3) {
if (!PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 39773, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
MediaImageModel a5 = o().a(i3);
List<PuzzleModel> list = a5 != null ? a5.puzzleData : null;
if (list != null) {
list.isEmpty();
}
}
}
public void F(@Nullable JudgeProductStickerModel judgeProductStickerModel) {
int i3;
ImageEditGuideDelegate.a aVar;
Context context;
co.c i12;
co.c c5;
PublishBottomEditImageView publishBottomEditImageView;
if (!PatchProxy.proxy(new Object[]{judgeProductStickerModel}, this, changeQuickRedirect, false, 39811, new Class[]{JudgeProductStickerModel.class}, Void.TYPE).isSupported) {
b0.l("key_pic_template_first_enter_v2", 1);
if (judgeProductStickerModel.getHasProduct()) {
aVar = new ImageEditGuideDelegate.a("商品贴纸上新", "https://cdn.poizon.com/node-common/ba94980b-50ce-6cf5-27c9-b2c10405886d.webp");
i3 = 5;
} else {
aVar = new ImageEditGuideDelegate.a("自动遮脸贴纸上新", "https://cdn.poizon.com/node-common/f280e45281f754f8204bb48dd29899df.webp");
i3 = 4;
}
Object[] objArr = {new Integer(4), new Integer(i3), aVar};
ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
Class cls = Integer.TYPE;
if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 39814, new Class[]{cls, cls, ImageEditGuideDelegate.a.class}, Void.TYPE).isSupported && (context = getContext()) != null) {
ImageEditGuideDelegate imageEditGuideDelegate = new ImageEditGuideDelegate(context);
this.l = imageEditGuideDelegate;
j jVar = new j(this);
if (!PatchProxy.proxy(new Object[]{jVar}, imageEditGuideDelegate, ImageEditGuideDelegate.changeQuickRedirect, false, 42996, new Class[]{ImageEditGuideDelegate.OnImageGuideClickListener.class}, Void.TYPE).isSupported) {
imageEditGuideDelegate.e = jVar;
}
ImageEditGuideDelegate imageEditGuideDelegate2 = this.l;
if (imageEditGuideDelegate2 != null) {
if (!PatchProxy.proxy(new Object[]{new Integer(i3), aVar}, imageEditGuideDelegate2, ImageEditGuideDelegate.changeQuickRedirect, false, 42990, new Class[]{cls, ImageEditGuideDelegate.a.class}, Void.TYPE).isSupported) {
imageEditGuideDelegate2.f9861c = i3;
if (i3 == 1) {
imageEditGuideDelegate2.e(aVar);
} else if (i3 == 2) {
imageEditGuideDelegate2.e(aVar);
} else if (i3 != 3) {
if (i3 == 4) {
imageEditGuideDelegate2.d = 2;
imageEditGuideDelegate2.f(aVar);
} else if (i3 == 5) {
imageEditGuideDelegate2.d = 10;
imageEditGuideDelegate2.f(aVar);
}
} else if (!PatchProxy.proxy(new Object[]{aVar}, imageEditGuideDelegate2, ImageEditGuideDelegate.changeQuickRedirect, false, 42993, new Class[]{ImageEditGuideDelegate.a.class}, Void.TYPE).isSupported) {
PublishBottomView g3 = ku.b.f34916a.g(imageEditGuideDelegate2.f);
DuImageLoaderView duImageLoaderView = null;
ImageView imageView = (g3 == null || (publishBottomEditImageView = (PublishBottomEditImageView) g3.a(R.id.editImageView)) == null) ? null : (ImageView) publishBottomEditImageView.findViewById(R.id.ivFilter);
cf.a aVar2 = imageEditGuideDelegate2.b;
if (aVar2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("imageTemplateGuideDialog");
}
View b2 = aVar2.b(R.id.guideText);
if (!(b2 instanceof TextView)) {
b2 = null;
}
TextView textView = (TextView) b2;
if (textView != null) {
textView.setText(aVar.a());
}
cf.a aVar3 = imageEditGuideDelegate2.b;
if (aVar3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("imageTemplateGuideDialog");
}
View b5 = aVar3.b(R.id.guideImg);
if (b5 instanceof DuImageLoaderView) {
duImageLoaderView = b5;
}
DuImageLoaderView duImageLoaderView2 = duImageLoaderView;
if (!(duImageLoaderView2 == null || (i12 = duImageLoaderView2.i(aVar.b())) == null || (c5 = fd.i.c(2, i12)) == null)) {
c5.x();
}
imageEditGuideDelegate2.d(imageView);
}
o0.b("community_content_release_template_exposure", new ImageEditGuideDelegate$showImageEditGuideDialog$1(imageEditGuideDelegate2));
cf.a aVar4 = imageEditGuideDelegate2.b;
if (aVar4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("imageTemplateGuideDialog");
}
aVar4.d(R.id.guideRoot, new ImageEditGuideDelegate$showImageEditGuideDialog$2(imageEditGuideDelegate2));
}
}
b0.l("key_pic_template_first_enter", 4);
}
}
}
public void G(int i3) {
boolean z4 = false;
if (!PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 39745, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
MediaImageModel mediaImageModel = r().get(i3);
PicTemplateItemModel picTemplateItemModel = mediaImageModel != null ? mediaImageModel.picTemplateData : null;
if (picTemplateItemModel != null) {
y().notifyCurrentTemplateChange(picTemplateItemModel);
return;
}
if (h()) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39847, new Class[0], Boolean.TYPE);
if (proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : false) {
ImageEditItemFragment c5 = l().c(i3);
if (c5 != null) {
z4 = c5.e0();
}
if (!z4) {
y().notifyCurrentTemplateChange(null);
return;
}
return;
}
}
y().clearOutTemplate();
y().notifyCurrentTemplateChange(null);
}
}
public final void H() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39838, new Class[0], Void.TYPE).isSupported) {
ImageEditItemFragment c5 = l().c(this.e);
if (c5 != null) {
c5.v0();
}
if (c5 != null) {
c5.u0();
}
}
}
public final void I(@Nullable String str) {
ImageEditItemFragment b2;
ImageEditContainerView D2;
if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 39858, new Class[]{String.class}, Void.TYPE).isSupported && (b2 = l().b()) != null && (D2 = b2.D()) != null) {
D2.f(str);
}
}
public final void J(int i3) {
if (!PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 39788, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39789, new Class[0], Void.TYPE).isSupported) {
k();
K(false);
}
StickerListDialogFragment.M.c(getChildFragmentManager(), 1, i3);
}
}
public void K(boolean z4) {
int i3 = 0;
if (!PatchProxy.proxy(new Object[]{new Byte(z4 ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 39800, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
((ImageView) _$_findCachedViewById(R.id.imgBack)).setVisibility(z4 ? 0 : 8);
TextView textView = (TextView) _$_findCachedViewById(R.id.tvTopMid);
if (!z4) {
i3 = 8;
}
textView.setVisibility(i3);
}
}
public View _$_findCachedViewById(int i3) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 39866, 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(i3));
if (view != null) {
return view;
}
View view2 = getView();
if (view2 == null) {
return null;
}
View findViewById = view2.findViewById(i3);
this.C.put(Integer.valueOf(i3), findViewById);
return findViewById;
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditPage
public void clickClose() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39863, new Class[0], Void.TYPE).isSupported) {
IEditImagePage.a.a(this);
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditPage
public void clickCrop() {
jt.c imageBean;
ImageContainerView C2;
ImageTagContainerView L;
ImageStickerContainerView J;
ImageStickerContainerView J2;
int i3 = 0;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39782, new Class[0], Void.TYPE).isSupported) {
IEditImagePage.a.b(this);
ImageEditItemFragment b2 = l().b();
OperateImageContainer operateImageContainer = null;
if (!(b2 == null || (J2 = b2.J()) == null)) {
BaseStickerContainerView.f(J2, false, 1, null);
}
ImageEditItemFragment b5 = l().b();
if (!(b5 == null || (J = b5.J()) == null)) {
J.n();
}
ImageEditItemFragment b12 = l().b();
if (!(b12 == null || (L = b12.L()) == null)) {
L.c();
}
ImageEditItemFragment b13 = l().b();
if (!(b13 == null || (C2 = b13.C()) == null)) {
operateImageContainer = C2.getSelectedOperateImageContainer();
}
if (!(operateImageContainer == null || (imageBean = operateImageContainer.getImageBean()) == null)) {
i3 = imageBean.b();
}
ImageCropDialogFragment.W.a(this.e, i3, getChildFragmentManager());
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditPage
public void clickFilter() {
ImageStickerContainerView J;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39783, new Class[0], Void.TYPE).isSupported) {
IEditImagePage.a.c(this);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39784, new Class[0], Void.TYPE).isSupported) {
ImageEditPagerAdapter l12 = l();
CustomViewPager2 customViewPager2 = this.f9663g;
ImageEditItemFragment c5 = l12.c(customViewPager2 != null ? customViewPager2.getCurrentItem() : this.e);
Triple triple = new Triple(c5 != null ? c5.z() : null, c5 != null ? c5.B() : null, c5 != null ? Float.valueOf(c5.A()) : null);
CVFilterListDialogFragment b2 = CVFilterListDialogFragment.W.b((String) triple.getFirst(), (String) triple.getSecond(), (Float) triple.getThird(), getChildFragmentManager());
ImageEditContainerView D2 = c5 != null ? c5.D() : null;
if (b2 != null) {
b2.z0(D2 != null ? ((float) D2.getWidth()) / ((float) D2.getHeight()) : i.f36333a);
}
this.f9664h = b2 != null ? Float.valueOf(b2.p0()) : null;
if (b2 != null) {
b2.y0(new PublishCommonImageEditFragment$showFilterListDialog$2(c5));
}
if (b2 != null) {
b2.show(getChildFragmentManager(), "FilterListDialogFragment");
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39785, new Class[0], Void.TYPE).isSupported) {
ImageEditItemFragment b5 = l().b();
if (!(b5 == null || (J = b5.J()) == null)) {
BaseStickerContainerView.f(J, false, 1, null);
}
K(false);
}
}
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditPage
public void clickSticker() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39787, new Class[0], Void.TYPE).isSupported) {
IEditImagePage.a.d(this);
J(-1);
}
}
/* JADX DEBUG: Multi-variable search result rejected for r1v5, resolved type: com.shizhuang.duapp.media.publish.tag.TagListDialogFragment$a */
/* JADX WARN: Multi-variable type inference failed */
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditPage
public void clickTag() {
ArrayList arrayList;
ImageEditItemFragment b2;
ImageTagContainerView L;
List<TagModel> list;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39794, new Class[0], Void.TYPE).isSupported) {
IEditImagePage.a.e(this);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39795, new Class[0], Void.TYPE).isSupported) {
TagListDialogFragment.a aVar = TagListDialogFragment.A;
FragmentManager childFragmentManager = getChildFragmentManager();
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39798, new Class[0], ArrayList.class);
if (proxy.isSupported) {
arrayList = (ArrayList) proxy.result;
} else {
ArrayList arrayList2 = new ArrayList();
SparseArray<MediaImageModel> d12 = o().d();
int size = d12.size();
for (int i3 = 0; i3 < size; i3++) {
d12.keyAt(i3);
MediaImageModel valueAt = d12.valueAt(i3);
if (!(valueAt == null || (list = valueAt.smartTagModels) == null)) {
arrayList2.addAll(list);
}
}
HashSet hashSet = new HashSet();
ArrayList arrayList3 = new ArrayList();
Iterator it2 = arrayList2.iterator();
while (it2.hasNext()) {
Object next = it2.next();
if (hashSet.add(((TagModel) next).f26273id)) {
arrayList3.add(next);
}
}
arrayList = new ArrayList();
Iterator it3 = arrayList3.iterator();
while (it3.hasNext()) {
Object next2 = it3.next();
if (Intrinsics.areEqual(((TagModel) next2).type, PushConstants.PUSH_FLYME_3_CHANGE_VERSION_START)) {
arrayList.add(next2);
}
}
}
aVar.b(childFragmentManager, arrayList);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39796, new Class[0], Void.TYPE).isSupported) {
if (!(PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39799, new Class[0], Void.TYPE).isSupported || (b2 = l().b()) == null || (L = b2.L()) == null)) {
L.g();
}
k();
K(false);
p().k(2);
}
}
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditPage
public void clickTemplate() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39802, new Class[0], Void.TYPE).isSupported) {
IEditImagePage.a.f(this);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39803, new Class[0], Void.TYPE).isSupported) {
ImageTemplateDialogFragment.F.c(getChildFragmentManager());
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39804, new Class[0], Void.TYPE).isSupported) {
k();
K(false);
}
}
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditPage
public void clickText() {
ImageContainerView C2;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39807, new Class[0], Void.TYPE).isSupported) {
IEditImagePage.a.g(this);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39808, new Class[0], Void.TYPE).isSupported) {
TextListDialogFragment.C.b(getChildFragmentManager());
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39809, new Class[0], Void.TYPE).isSupported) {
k();
K(false);
ImageEditItemFragment b2 = l().b();
if (b2 != null && (C2 = b2.C()) != null) {
C2.setEnableTouchEvent(false);
}
}
}
}
}
@Override // com.shizhuang.duapp.common.base.inter.IViewController, com.shizhuang.duapp.common.ui.BaseFragment
public int getLayout() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39738, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.du_media_fragment_common_image_edit;
}
public final boolean h() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39843, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
return (Intrinsics.areEqual(this.d, "reEdit") ^ true) && (Intrinsics.areEqual(this.d, "secondEdit") ^ true);
}
public final boolean i() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39844, new Class[0], Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : Intrinsics.areEqual(this.d, "reEdit");
}
@Override // com.shizhuang.duapp.common.base.inter.IViewController, com.shizhuang.duapp.common.ui.BaseFragment
public void initData() {
boolean z4;
boolean z5;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39747, new Class[0], Void.TYPE).isSupported) {
boolean z12 = true;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39774, new Class[0], Void.TYPE).isSupported) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39816, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
z5 = ((Boolean) proxy.result).booleanValue();
} else {
if (!i() && !j()) {
String publishBusinessTaskNo = t().getPublishBusinessTaskNo();
if (!(publishBusinessTaskNo == null || publishBusinessTaskNo.length() == 0)) {
z5 = true;
}
}
z5 = false;
}
if (z5) {
boolean z13 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39817, new Class[0], Void.TYPE).isSupported;
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39749, new Class[0], Void.TYPE).isSupported) {
o().h(getContext());
B();
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39751, new Class[0], Void.TYPE).isSupported) {
CustomViewPager2 customViewPager2 = this.f9663g;
if (customViewPager2 != null) {
customViewPager2.setAdapter(l());
}
CustomViewPager2 customViewPager22 = this.f9663g;
if (customViewPager22 != null) {
customViewPager22.setOffscreenPageLimit(1);
}
CustomViewPager2 customViewPager23 = this.f9663g;
if (customViewPager23 != null) {
customViewPager23.setCurrentItem(this.e);
}
CustomViewPager2 customViewPager24 = this.f9663g;
if (customViewPager24 != null) {
customViewPager24.addOnPageChangeListener(new PublishCommonImageEditFragment$initViewPager$1(this));
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39752, new Class[0], Void.TYPE).isSupported) {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39753, new Class[0], Void.TYPE).isSupported) {
PublishCommonBottomImageView publishCommonBottomImageView = (PublishCommonBottomImageView) _$_findCachedViewById(R.id.editImageView);
if (!PatchProxy.proxy(new Object[0], publishCommonBottomImageView, PublishCommonBottomImageView.changeQuickRedirect, false, 40282, new Class[0], Void.TYPE).isSupported) {
Object[] objArr = {new Byte((byte) 0)};
ChangeQuickRedirect changeQuickRedirect2 = PublishCommonBottomImageView.changeQuickRedirect;
Class cls = Boolean.TYPE;
if (!PatchProxy.proxy(objArr, publishCommonBottomImageView, changeQuickRedirect2, false, 40283, new Class[]{cls}, Void.TYPE).isSupported) {
if (((ImageView) publishCommonBottomImageView.a(R.id.ivFilter)).getVisibility() == 0) {
((ImageView) publishCommonBottomImageView.a(R.id.ivFilter)).setVisibility(8);
}
}
if (!PatchProxy.proxy(new Object[]{new Byte((byte) 1)}, publishCommonBottomImageView, PublishCommonBottomImageView.changeQuickRedirect, false, 40284, new Class[]{cls}, Void.TYPE).isSupported) {
if (!(((ImageView) publishCommonBottomImageView.a(R.id.ivSticker)).getVisibility() == 0)) {
((ImageView) publishCommonBottomImageView.a(R.id.ivSticker)).setVisibility(0);
}
}
if (!PatchProxy.proxy(new Object[]{new Byte((byte) 1)}, publishCommonBottomImageView, PublishCommonBottomImageView.changeQuickRedirect, false, 40285, new Class[]{cls}, Void.TYPE).isSupported) {
if (!(((ImageView) publishCommonBottomImageView.a(R.id.ivTemplate)).getVisibility() == 0)) {
((ImageView) publishCommonBottomImageView.a(R.id.ivTemplate)).setVisibility(0);
}
}
if (!PatchProxy.proxy(new Object[]{new Byte((byte) 1)}, publishCommonBottomImageView, PublishCommonBottomImageView.changeQuickRedirect, false, 40287, new Class[]{cls}, Void.TYPE).isSupported) {
if (!(((ImageView) publishCommonBottomImageView.a(R.id.ivClip)).getVisibility() == 0)) {
((ImageView) publishCommonBottomImageView.a(R.id.ivClip)).setVisibility(0);
}
}
if (!PatchProxy.proxy(new Object[]{new Byte((byte) 1)}, publishCommonBottomImageView, PublishCommonBottomImageView.changeQuickRedirect, false, 40288, new Class[]{cls}, Void.TYPE).isSupported) {
if (!(((ImageView) publishCommonBottomImageView.a(R.id.ivText)).getVisibility() == 0)) {
((ImageView) publishCommonBottomImageView.a(R.id.ivText)).setVisibility(0);
}
}
}
}
E(this.e);
}
p().f(r());
}
ProductLabelModel productLabelModel = null;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39754, new Class[0], Void.TYPE).isSupported) {
Bundle arguments = getArguments();
ArrayList parcelableArrayList = arguments != null ? arguments.getParcelableArrayList("infoList") : null;
SparseArray<MediaImageModel> d12 = o().d();
int size = d12.size();
for (int i3 = 0; i3 < size; i3++) {
int keyAt = d12.keyAt(i3);
MediaImageModel valueAt = d12.valueAt(i3);
if (valueAt != null) {
valueAt.bandInfo = parcelableArrayList != null ? (BandInfo) CollectionsKt___CollectionsKt.getOrNull(parcelableArrayList, keyAt) : null;
}
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39755, new Class[0], Void.TYPE).isSupported) {
DuHttpRequest<JudgeProductStickerModel> imageProductStickerRequest = y().getImageProductStickerRequest();
LifecycleOwner viewLifecycleOwner = getViewLifecycleOwner();
v20.j jVar = new v20.j(viewLifecycleOwner, imageProductStickerRequest.isShowErrorToast(), null);
Ref.BooleanRef booleanRef = new Ref.BooleanRef();
booleanRef.element = imageProductStickerRequest.getMutableAllStateLiveData().getValue() instanceof DuHttpRequest.b.a;
imageProductStickerRequest.getMutableAllStateLiveData().observe(v20.i.f39125a.a(viewLifecycleOwner), new PublishCommonImageEditFragment$initTemplateData$$inlined$observe$1(imageProductStickerRequest, jVar, booleanRef, this));
Integer num = (Integer) b0.f("showTagTipKey", 0);
TotalPublishProcessActivity f12 = ku.b.f34916a.f(getContext());
ProductLabelModel product = f12 != null ? f12.getProduct() : null;
if (num.intValue() <= 1) {
n20.a aVar = n20.a.b;
if (aVar.j() != 0 && product == null) {
y().getEditGuide(m0.f35397a, String.valueOf(aVar.j()));
G(this.e);
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39812, new Class[0], Void.TYPE).isSupported) {
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39813, new Class[0], Boolean.TYPE);
if (proxy2.isSupported) {
z4 = ((Boolean) proxy2.result).booleanValue();
} else {
Integer num2 = (Integer) b0.f("key_pic_template_first_enter_v2", 0);
z4 = num2 != null && num2.intValue() == 0;
}
if (z4) {
y().judgeProductStickerExists(1);
}
}
G(this.e);
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39756, new Class[0], Void.TYPE).isSupported && h()) {
z.f40193a.e(false);
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39757, new Class[0], Void.TYPE).isSupported) {
PatchProxyResult proxy3 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39722, new Class[0], BeautyViewModel.class);
((BeautyViewModel) (proxy3.isSupported ? proxy3.result : this.o.getValue())).setCurrentPageType("image");
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39758, new Class[0], Void.TYPE).isSupported) {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39760, new Class[0], Void.TYPE).isSupported) {
t().getUseSamePicTemplateId().observe(getViewLifecycleOwner(), new EventObserver(new PublishCommonImageEditFragment$initPublishShareLiveData$1(this)));
DuHttpRequest<PicTemplateInfoModel> imageTemplateInfoRequest = y().getImageTemplateInfoRequest();
LifecycleOwner viewLifecycleOwner2 = getViewLifecycleOwner();
v20.j jVar2 = new v20.j(viewLifecycleOwner2, imageTemplateInfoRequest.isShowErrorToast(), null);
Ref.BooleanRef booleanRef2 = new Ref.BooleanRef();
booleanRef2.element = imageTemplateInfoRequest.getMutableAllStateLiveData().getValue() instanceof DuHttpRequest.b.a;
imageTemplateInfoRequest.getMutableAllStateLiveData().observe(v20.i.f39125a.a(viewLifecycleOwner2), new PublishCommonImageEditFragment$initPublishShareLiveData$$inlined$observe$1(imageTemplateInfoRequest, jVar2, booleanRef2));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39761, new Class[0], Void.TYPE).isSupported) {
s().getSelectPropertyEvent().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initPropertyLiveData$1(this));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39759, new Class[0], Void.TYPE).isSupported) {
m().getApplyFilterId().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initFilterLiveData$1(this));
m().getCloseFilterDialogLiveData().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initFilterLiveData$2(this));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39762, new Class[0], Void.TYPE).isSupported) {
y().getApplyTemplateLiveData().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTemplateLiveData$1(this));
y().getClearTemplateLiveData().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTemplateLiveData$2(this));
y().getCloseTemplateDialogLiveData().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTemplateLiveData$3(this));
y().getDialogMoreItemClickLiveData().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTemplateLiveData$4(this));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39766, new Class[0], Void.TYPE).isSupported) {
w().getAddStickerLiveData().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initStickerLiveData$1(this));
w().getCloseStickerListDialogLiveData().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initStickerLiveData$2(this));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39764, new Class[0], Void.TYPE).isSupported) {
z().b().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTextLiveData$1(this));
z().c().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTextLiveData$2(this));
z().a().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTextLiveData$3(this));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39793, new Class[0], Void.TYPE).isSupported) {
x().b().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTagLiveData$1(this));
x().c().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initTagLiveData$2(this));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39765, new Class[0], Void.TYPE).isSupported) {
o().c().observe(getViewLifecycleOwner(), new PublishCommonImageEditFragment$initCropLiveData$1(this));
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39769, new Class[0], Void.TYPE).isSupported) {
TotalPublishProcessActivity f13 = ku.b.f34916a.f(getContext());
if (f13 != null) {
productLabelModel = f13.getProduct();
}
p().g(productLabelModel, s().getPropertyList());
s().initProductProperty(productLabelModel);
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39771, new Class[0], Void.TYPE).isSupported) {
PatchProxyResult proxy4 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39772, new Class[0], Boolean.TYPE);
if (proxy4.isSupported) {
z12 = ((Boolean) proxy4.result).booleanValue();
}
if (z12) {
u().b(r());
u().c(new us.i(this));
u().d();
}
}
}
}
@Override // com.shizhuang.duapp.common.base.inter.IViewController, com.shizhuang.duapp.common.ui.BaseFragment
public void initView(@Nullable Bundle bundle) {
ArrayList<String> arrayList;
String str;
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 39739, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
View view = getView();
CustomViewPager2 customViewPager2 = null;
this.f = view != null ? view.findViewById(R.id.fl_content) : null;
View view2 = getView();
if (view2 != null) {
customViewPager2 = (CustomViewPager2) view2.findViewById(R.id.vp_content);
}
this.f9663g = customViewPager2;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39748, new Class[0], Void.TYPE).isSupported) {
Bundle arguments = getArguments();
if (arguments == null || (arrayList = arguments.getStringArrayList("imageList")) == null) {
arrayList = new ArrayList<>();
}
this.f9662c = arrayList;
Bundle arguments2 = getArguments();
this.e = arguments2 != null ? arguments2.getInt("position") : 0;
Bundle arguments3 = getArguments();
if (arguments3 == null || (str = arguments3.getString("from")) == null) {
str = "edit";
}
this.d = str;
Bundle arguments4 = getArguments();
this.b = arguments4 != null ? arguments4.getBoolean("isShowSticker", false) : false;
Bundle arguments5 = getArguments();
if (arguments5 != null) {
arguments5.getBoolean("isFromVideoPage", false);
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39740, new Class[0], Void.TYPE).isSupported) {
ImageView imageView = (ImageView) _$_findCachedViewById(R.id.ivSticker);
if (imageView != null) {
ViewExtensionKt.j(imageView, 0, new PublishCommonImageEditFragment$initClick$1(this), 1);
}
ImageView imageView2 = (ImageView) _$_findCachedViewById(R.id.ivClip);
if (imageView2 != null) {
ViewExtensionKt.j(imageView2, 0, new PublishCommonImageEditFragment$initClick$2(this), 1);
}
ImageView imageView3 = (ImageView) _$_findCachedViewById(R.id.ivFilter);
if (imageView3 != null) {
ViewExtensionKt.j(imageView3, 0, new PublishCommonImageEditFragment$initClick$3(this), 1);
}
ImageView imageView4 = (ImageView) _$_findCachedViewById(R.id.ivTemplate);
if (imageView4 != null) {
ViewExtensionKt.j(imageView4, 0, new PublishCommonImageEditFragment$initClick$4(this), 1);
}
ImageView imageView5 = (ImageView) _$_findCachedViewById(R.id.ivText);
if (imageView5 != null) {
ViewExtensionKt.j(imageView5, 0, new PublishCommonImageEditFragment$initClick$5(this), 1);
}
ShapeTextView shapeTextView = (ShapeTextView) _$_findCachedViewById(R.id.nextStep);
if (shapeTextView != null) {
ViewExtensionKt.j(shapeTextView, 0, new PublishCommonImageEditFragment$initClick$6(this), 1);
}
ImageView imageView6 = (ImageView) _$_findCachedViewById(R.id.imgBack);
if (imageView6 != null) {
ViewExtensionKt.j(imageView6, 0, new PublishCommonImageEditFragment$initClick$7(this), 1);
}
}
}
}
public final boolean j() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39845, new Class[0], Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : Intrinsics.areEqual(this.d, "secondEdit");
}
public final void k() {
ImageContainerView C2;
ImageStickerContainerView J;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39791, new Class[0], Void.TYPE).isSupported) {
ImageEditItemFragment b2 = l().b();
if (!(b2 == null || (J = b2.J()) == null)) {
BaseStickerContainerView.f(J, false, 1, null);
}
ImageEditItemFragment b5 = l().b();
if (b5 != null && (C2 = b5.C()) != null) {
C2.c();
}
}
}
@NotNull
public final ImageEditPagerAdapter l() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39733, new Class[0], ImageEditPagerAdapter.class);
return (ImageEditPagerAdapter) (proxy.isSupported ? proxy.result : this.z.getValue());
}
public final CvFilterViewModel m() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39726, new Class[0], CvFilterViewModel.class);
return (CvFilterViewModel) (proxy.isSupported ? proxy.result : this.s.getValue());
}
public int n() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39746, new Class[0], Integer.TYPE);
if (proxy.isSupported) {
return ((Integer) proxy.result).intValue();
}
if (!isAdded()) {
return 0;
}
return r().size();
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IPublishEvent
public void nextStepClick(@NotNull View view) {
ImageStickerContainerView J;
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 39837, new Class[]{View.class}, Void.TYPE).isSupported) {
Log.i("media_vide_editor", "PublishCommonImageEditFragment nextStepClick");
if (nq.b.c(this)) {
ImageEditItemFragment b2 = l().b();
if (!(b2 == null || (J = b2.J()) == null)) {
J.e(false);
}
H();
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39839, new Class[0], Void.TYPE).isSupported) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39719, new Class[0], EditPicHelperV2.class);
((EditPicHelperV2) (proxy.isSupported ? proxy.result : this.j.getValue())).a(l().e(), r());
}
if (Intrinsics.areEqual(this.d, "secondEdit")) {
ArrayList<String> value = t().getPublishImageList().getValue();
t();
Context context = getContext();
ArrayList<String> arrayList = this.f9662c;
if (arrayList != null && context != null) {
AsyncUploadUtils.f7847a.a((ComponentActivity) context, arrayList, null, new b(this, value));
}
}
}
}
}
@NotNull
public final ImageEditViewModel o() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39729, new Class[0], ImageEditViewModel.class);
return (ImageEditViewModel) (proxy.isSupported ? proxy.result : this.f9667v.getValue());
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IPublishEvent
public boolean onBackPressed() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39827, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
return false;
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IEditImagePage
public void onChildFragmentResume(boolean z4) {
boolean z5;
ImageEditContainerView D2;
PicTemplateItemModel outTemplateItem;
boolean z12;
Object[] objArr = {new Byte(z4 ? (byte) 1 : 0)};
ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
Class cls = Boolean.TYPE;
if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 39820, new Class[]{cls}, Void.TYPE).isSupported) {
ImageEditItemFragment b2 = l().b();
l().a().put(this.e, b2 != null ? b2.D() : null);
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{b2}, this, changeQuickRedirect, false, 39825, new Class[]{ImageEditItemFragment.class}, cls);
if (proxy.isSupported) {
z5 = ((Boolean) proxy.result).booleanValue();
} else {
if (b2 != null && b2.e0()) {
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39849, new Class[0], cls);
if (proxy2.isSupported) {
z12 = ((Boolean) proxy2.result).booleanValue();
} else {
z12 = this.k;
}
if (!z12 && !i() && !j() && b2.I().picTemplateData == null) {
z5 = true;
}
}
z5 = false;
}
if (z5) {
if (!PatchProxy.proxy(new Object[]{b2}, this, changeQuickRedirect, false, 39826, new Class[]{ImageEditItemFragment.class}, Void.TYPE).isSupported && (outTemplateItem = y().getOutTemplateItem()) != null) {
y().notifyApplyOutTemplate(outTemplateItem);
}
}
if (b2 != null && (D2 = b2.D()) != null) {
D2.setEnableImageClick(false);
}
}
}
@Override // com.shizhuang.duapp.common.ui.BaseFragment, androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 39868, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.FragmentMethodWeaver_onCreate(this, bundle);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseFragment, androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, this, changeQuickRedirect, false, 39872, 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.ui.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39846, new Class[0], Void.TYPE).isSupported) {
super.onDestroy();
l().d().clear();
}
}
@Override // com.shizhuang.duapp.common.ui.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
HashMap hashMap;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39852, new Class[0], Void.TYPE).isSupported) {
A();
CustomViewPager2 customViewPager2 = this.f9663g;
if (customViewPager2 != null) {
customViewPager2.clearOnPageChangeListeners();
}
o().j(this.f);
super.onDestroyView();
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39867, new Class[0], Void.TYPE).isSupported && (hashMap = this.C) != null) {
hashMap.clear();
}
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment.Listener
public void onDialogEnterAnimatorEnd(@NotNull View view) {
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 39864, new Class[]{View.class}, Void.TYPE).isSupported) {
PublishBottomDialogFragment.Listener.a.a(this, view);
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment.Listener
public void onDialogEnterAnimatorStart(@NotNull View view) {
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 39861, new Class[]{View.class}, Void.TYPE).isSupported) {
PublishBottomDialogFragment.Listener.a.b(this, view);
o().k(this.f, l().c(this.e), view, getChildFragmentManager());
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment.Listener
public void onDialogExitAnimatorEnd(@NotNull View view) {
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 39865, new Class[]{View.class}, Void.TYPE).isSupported) {
PublishBottomDialogFragment.Listener.a.c(this, view);
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.dialog.PublishBottomDialogFragment.Listener
public void onDialogExitAnimatorStart(@NotNull View view) {
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 39862, new Class[]{View.class}, Void.TYPE).isSupported) {
PublishBottomDialogFragment.Listener.a.d(this, view);
o().l(this.f, l().c(this.e), view, getChildFragmentManager());
}
}
@Override // com.shizhuang.duapp.modules.du_community_common.interfaces.IPublishEvent
public void onNewIntent(@Nullable Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 39780, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
this.k = true;
int i3 = bundle != null ? bundle.getInt("position", 0) : this.e;
if (!PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 39781, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
o().o(getContext());
B();
l().d().clear();
l().a().clear();
l().f(null);
l().notifyDataSetChanged();
CustomViewPager2 customViewPager2 = this.f9663g;
if (customViewPager2 != null) {
customViewPager2.setOffscreenPageLimit(1);
}
CustomViewPager2 customViewPager22 = this.f9663g;
if (customViewPager22 != null) {
customViewPager22.setCurrentItem(i3);
}
}
E(i3);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseFragment, androidx.fragment.app.Fragment
public void onPause() {
boolean z4;
boolean z5 = false;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39770, new Class[0], Void.TYPE).isSupported) {
super.onPause();
Log.i("media_vide_editor", "PublishCommonImageEditFragment onPause");
A();
l30.b bVar = l30.b.f34999a;
long remainTime = getRemainTime();
c cVar = new c();
ArrayMap arrayMap = new ArrayMap(8);
if ("218".length() > 0) {
arrayMap.put("current_page", "218");
}
arrayMap.put("view_duration", new DecimalFormat("0.000", DecimalFormatSymbols.getInstance(Locale.CHINA)).format(Float.valueOf(((float) remainTime) / 1000.0f)));
cVar.invoke(arrayMap);
bVar.b("community_content_release_pageview", arrayMap);
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39859, new Class[0], Void.TYPE).isSupported) {
int size = r().size();
int i3 = 0;
while (true) {
if (i3 >= size) {
break;
}
MediaImageModel mediaImageModel = r().get(i3);
if (mediaImageModel != null) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{mediaImageModel}, this, changeQuickRedirect, false, 39860, new Class[]{MediaImageModel.class}, Boolean.TYPE);
if (proxy.isSupported) {
z4 = ((Boolean) proxy.result).booleanValue();
} else {
String str = mediaImageModel.filterPath;
z4 = !(str == null || str.length() == 0) || mediaImageModel.picTemplateData != null || t20.c.a(mediaImageModel.stickerItems) || t20.c.a(mediaImageModel.tagModels) || mediaImageModel.cropParams != null;
}
if (z4) {
z5 = true;
break;
}
}
i3++;
}
t().setVideoOrImagesEdited(z5);
t().setMediaViewModels(r());
}
}
}
@Override // com.shizhuang.duapp.common.ui.BaseFragment, androidx.fragment.app.Fragment
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39853, new Class[0], Void.TYPE).isSupported) {
_boostWeave.FragmentMethodWeaver_onResume(this);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseFragment, androidx.fragment.app.Fragment
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39870, new Class[0], Void.TYPE).isSupported) {
_boostWeave.FragmentMethodWeaver_onStart(this);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseFragment, androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{view, bundle}, this, changeQuickRedirect, false, 39874, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.FragmentMethodWeaver_onViewCreated(this, view, bundle);
}
}
@NotNull
public final ImageTagViewModel p() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39728, new Class[0], ImageTagViewModel.class);
return (ImageTagViewModel) (proxy.isSupported ? proxy.result : this.f9666u.getValue());
}
@NotNull
public final PublishMaterialViewModel q() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39730, new Class[0], PublishMaterialViewModel.class);
return (PublishMaterialViewModel) (proxy.isSupported ? proxy.result : this.w.getValue());
}
@NotNull
public final SparseArray<MediaImageModel> r() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39732, new Class[0], SparseArray.class);
return (SparseArray) (proxy.isSupported ? proxy.result : this.y.getValue());
}
@NotNull
public final PdPropertyViewModel s() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39723, new Class[0], PdPropertyViewModel.class);
return (PdPropertyViewModel) (proxy.isSupported ? proxy.result : this.p.getValue());
}
@NotNull
public final PublishProcessShareViewModel t() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39720, new Class[0], PublishProcessShareViewModel.class);
return (PublishProcessShareViewModel) (proxy.isSupported ? proxy.result : this.m.getValue());
}
public final SmartMarkHelperV2 u() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39718, new Class[0], SmartMarkHelperV2.class);
return (SmartMarkHelperV2) (proxy.isSupported ? proxy.result : this.i.getValue());
}
@NotNull
public final String v() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39704, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : this.d;
}
@NotNull
public final StickerViewModel w() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39724, new Class[0], StickerViewModel.class);
return (StickerViewModel) (proxy.isSupported ? proxy.result : this.f9665q.getValue());
}
@NotNull
public final TagViewModel x() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39725, new Class[0], TagViewModel.class);
return (TagViewModel) (proxy.isSupported ? proxy.result : this.r.getValue());
}
@NotNull
public final PublishImageTemplateViewModel y() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39721, new Class[0], PublishImageTemplateViewModel.class);
return (PublishImageTemplateViewModel) (proxy.isSupported ? proxy.result : this.n.getValue());
}
@NotNull
public final TextListViewModel z() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 39737, new Class[0], TextListViewModel.class);
return (TextListViewModel) (proxy.isSupported ? proxy.result : this.B.getValue());
}
}