得物.apk(点击下载) / ArProductWearShareDialog.java
package com.shizhuang.duapp.modules.mall_ar.dialogs;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.ArrayMap;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.lifecycle.LifecycleOwnerKt;
import cd.l;
import co.d;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.sensorsdata.analytics.android.sdk.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.dialog.BaseDialogFragment;
import com.shizhuang.duapp.common.utils.RxPermissionsHelper;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.du_mall_common.model.product.QrCodeInfoModel;
import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.MallShareProductArContentView;
import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.MallShareProductArContentView$update$3;
import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.MallShareProductArContentView$update$6;
import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.MallShareProductArQrCodeView;
import com.shizhuang.duapp.modules.du_mall_common.widget.ar_3d.MallShareProductArQrCodeView$setQrData$1;
import com.shizhuang.duapp.modules.mall_ar.constants.SensorCommunitySharePlatform;
import com.shizhuang.duapp.modules.mall_ar.constants.SensorContentType;
import com.vk.duapp.utils.ArShareDataBean;
import df.r0;
import ij.c;
import ik1.b0;
import ik1.f;
import java.io.File;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u00012\u00020\u0002:\u0002\u0005\u0006B\u0007¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/modules/mall_ar/dialogs/ArProductWearShareDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "Landroid/view/View$OnClickListener;", "<init>", "()V", "a", "ProductArDuShareCallback", "du_mall_ar_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: ArProductWearShareDialog.kt */
public final class ArProductWearShareDialog extends BaseDialogFragment implements View.OnClickListener {
public static ChangeQuickRedirect changeQuickRedirect;
@NotNull
public static final a p = new a(null);
public String e;
public QrCodeInfoModel f;
/* renamed from: g reason: collision with root package name */
public String f18966g;
/* renamed from: h reason: collision with root package name */
public MallShareProductArContentView.a f18967h;
public String i = "";
public final int[] j = {0, 0};
public final int[] k = {0, 0};
public Bitmap l;
public Bitmap m;
@Nullable
public ProductArDuShareCallback n;
public HashMap o;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\bæ\u0001\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H&¨\u0006\u0006"}, d2 = {"Lcom/shizhuang/duapp/modules/mall_ar/dialogs/ArProductWearShareDialog$ProductArDuShareCallback;", "", "onArDuShare", "", "bitmapPath", "", "du_mall_ar_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: ArProductWearShareDialog.kt */
public interface ProductArDuShareCallback {
void onArDuShare(@NotNull String str);
}
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(ArProductWearShareDialog arProductWearShareDialog, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{arProductWearShareDialog, bundle}, null, changeQuickRedirect, true, 206495, new Class[]{ArProductWearShareDialog.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
ArProductWearShareDialog.s(arProductWearShareDialog, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (arProductWearShareDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_ar.dialogs.ArProductWearShareDialog")) {
jn.b.f34396a.fragmentOnCreateMethod(arProductWearShareDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onCreateView")
@Keep
public static View FragmentMethodWeaver_onCreateView(@NonNull ArProductWearShareDialog arProductWearShareDialog, @androidx.annotation.Nullable LayoutInflater layoutInflater, @androidx.annotation.Nullable ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{arProductWearShareDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 206497, new Class[]{ArProductWearShareDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
long currentTimeMillis = System.currentTimeMillis();
View u4 = ArProductWearShareDialog.u(arProductWearShareDialog, layoutInflater, viewGroup, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (arProductWearShareDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_ar.dialogs.ArProductWearShareDialog")) {
jn.b.f34396a.fragmentOnCreateViewMethod(arProductWearShareDialog, currentTimeMillis, currentTimeMillis2);
}
return u4;
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void FragmentMethodWeaver_onResume(ArProductWearShareDialog arProductWearShareDialog) {
if (!PatchProxy.proxy(new Object[]{arProductWearShareDialog}, null, changeQuickRedirect, true, 206498, new Class[]{ArProductWearShareDialog.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
ArProductWearShareDialog.v(arProductWearShareDialog);
long currentTimeMillis2 = System.currentTimeMillis();
if (arProductWearShareDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_ar.dialogs.ArProductWearShareDialog")) {
jn.b.f34396a.fragmentOnResumeMethod(arProductWearShareDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void FragmentMethodWeaver_onStart(ArProductWearShareDialog arProductWearShareDialog) {
if (!PatchProxy.proxy(new Object[]{arProductWearShareDialog}, null, changeQuickRedirect, true, 206496, new Class[]{ArProductWearShareDialog.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
ArProductWearShareDialog.t(arProductWearShareDialog);
long currentTimeMillis2 = System.currentTimeMillis();
if (arProductWearShareDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_ar.dialogs.ArProductWearShareDialog")) {
jn.b.f34396a.fragmentOnStartMethod(arProductWearShareDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onViewCreated")
@Keep
public static void FragmentMethodWeaver_onViewCreated(@NonNull ArProductWearShareDialog arProductWearShareDialog, @androidx.annotation.Nullable View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{arProductWearShareDialog, view, bundle}, null, changeQuickRedirect, true, 206499, new Class[]{ArProductWearShareDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
ArProductWearShareDialog.w(arProductWearShareDialog, view, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (arProductWearShareDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.mall_ar.dialogs.ArProductWearShareDialog")) {
jn.b.f34396a.fragmentOnViewCreatedMethod(arProductWearShareDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: ArProductWearShareDialog.kt */
public static final class a {
public static ChangeQuickRedirect changeQuickRedirect;
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: Runnable.kt */
public static final class b implements Runnable {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ ArProductWearShareDialog b;
/* renamed from: c reason: collision with root package name */
public final /* synthetic */ Ref.IntRef f18968c;
public final /* synthetic */ Ref.ObjectRef d;
public b(ArProductWearShareDialog arProductWearShareDialog, Ref.IntRef intRef, Ref.ObjectRef objectRef) {
this.b = arProductWearShareDialog;
this.f18968c = intRef;
this.d = objectRef;
}
public final void run() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 206500, new Class[0], Void.TYPE).isSupported) {
this.b.x(8);
this.f18968c.element = 3;
this.d.element = (T) SensorCommunitySharePlatform.SHARE_PIC_PHOTO_ALBUM.getType();
}
}
}
public static void s(ArProductWearShareDialog arProductWearShareDialog, Bundle bundle) {
String string;
String str;
MallShareProductArContentView.a aVar;
Uri fromFile;
if (!PatchProxy.proxy(new Object[]{bundle}, arProductWearShareDialog, changeQuickRedirect, false, 206474, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
if (!PatchProxy.proxy(new Object[0], arProductWearShareDialog, changeQuickRedirect, false, 206475, new Class[0], Void.TYPE).isSupported) {
Bundle arguments = arProductWearShareDialog.getArguments();
if (arguments == null || (string = arguments.getString("ar_share_dialog_bitmap")) == null) {
arProductWearShareDialog.dismiss();
return;
}
arProductWearShareDialog.e = string;
Bundle arguments2 = arProductWearShareDialog.getArguments();
Bitmap bitmap = null;
arProductWearShareDialog.f18966g = arguments2 != null ? arguments2.getString("ar_share_title") : null;
Bundle arguments3 = arProductWearShareDialog.getArguments();
if (arguments3 != null) {
ArShareDataBean arShareDataBean = (ArShareDataBean) arguments3.getParcelable("shareData");
}
Bundle arguments4 = arProductWearShareDialog.getArguments();
arProductWearShareDialog.f = arguments4 != null ? (QrCodeInfoModel) arguments4.getParcelable("ar_share_qr_info") : null;
Bundle arguments5 = arProductWearShareDialog.getArguments();
if (arguments5 == null || (str = arguments5.getString("page_from_name")) == null) {
str = "";
}
arProductWearShareDialog.i = str;
File file = new File(arProductWearShareDialog.e);
if (!file.exists()) {
file = null;
}
String uri = (file == null || (fromFile = Uri.fromFile(file)) == null) ? null : fromFile.toString();
Bitmap bitmap2 = arProductWearShareDialog.l;
if (bitmap2 != null && (!bitmap2.isRecycled())) {
bitmap = bitmap2;
}
if (bitmap != null) {
aVar = MallShareProductArContentView.a.f13854h.a(uri, null, arProductWearShareDialog.f18966g, arProductWearShareDialog.f, "https://apk.poizon.com/duApp/Android_Config/resource/mall/app/common/mall_share_ar_product_wear_bg.png", arProductWearShareDialog.l);
} else {
aVar = MallShareProductArContentView.a.f13854h.a(uri, null, arProductWearShareDialog.f18966g, arProductWearShareDialog.f, "https://apk.poizon.com/duApp/Android_Config/resource/mall/app/common/mall_share_ar_product_wear_bg.png", null);
}
arProductWearShareDialog.f18967h = aVar;
}
}
}
public static void t(ArProductWearShareDialog arProductWearShareDialog) {
if (!PatchProxy.proxy(new Object[0], arProductWearShareDialog, changeQuickRedirect, false, 206487, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static View u(ArProductWearShareDialog arProductWearShareDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, arProductWearShareDialog, changeQuickRedirect, false, 206489, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
}
public static void v(ArProductWearShareDialog arProductWearShareDialog) {
if (!PatchProxy.proxy(new Object[0], arProductWearShareDialog, changeQuickRedirect, false, 206491, new Class[0], Void.TYPE).isSupported) {
super.onResume();
}
}
public static void w(ArProductWearShareDialog arProductWearShareDialog, View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{view, bundle}, arProductWearShareDialog, changeQuickRedirect, false, 206493, 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, 206484, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.o == null) {
this.o = new HashMap();
}
View view = (View) this.o.get(Integer.valueOf(i3));
if (view != null) {
return view;
}
View view2 = getView();
if (view2 == null) {
return null;
}
View findViewById = view2.findViewById(i3);
this.o.put(Integer.valueOf(i3), findViewById);
return findViewById;
}
@Override // com.shizhuang.duapp.common.dialog.DuDialogFragment
public void g() {
Window window;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 206479, new Class[0], Void.TYPE).isSupported) {
super.g();
Dialog dialog = getDialog();
if (dialog != null && (window = dialog.getWindow()) != null) {
window.getDecorView().setPadding(0, 0, 0, 0);
Dialog dialog2 = getDialog();
Context context = null;
int c5 = z1.a.c(dialog2 != null ? dialog2.getContext() : null);
int f12 = fi.b.f(getActivity());
Dialog dialog3 = getDialog();
if (dialog3 != null) {
context = dialog3.getContext();
}
int i3 = f12 - r0.i(context);
WindowManager.LayoutParams attributes = window.getAttributes();
attributes.width = c5;
attributes.height = i3;
attributes.gravity = 48;
attributes.dimAmount = 0.8f;
window.setAttributes(attributes);
window.setWindowAnimations(R.style.ArDialogStyle);
}
}
}
@SensorsDataInstrumented
public void onClick(@NotNull View view) {
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 206480, new Class[]{View.class}, Void.TYPE).isSupported) {
Ref.IntRef intRef = new Ref.IntRef();
intRef.element = -1;
Ref.ObjectRef objectRef = new Ref.ObjectRef();
objectRef.element = "";
if (Intrinsics.areEqual(view, (ImageView) _$_findCachedViewById(R.id.iv_ar_share_close))) {
dismiss();
} else if (Intrinsics.areEqual(view, (LinearLayout) _$_findCachedViewById(R.id.btnShareWechat))) {
x(1);
intRef.element = 0;
objectRef.element = (T) SensorCommunitySharePlatform.SHARE_PIC_WECHAT_FRIENDS.getType();
} else if (Intrinsics.areEqual(view, (LinearLayout) _$_findCachedViewById(R.id.btnShareWechatCycle))) {
x(2);
intRef.element = 1;
objectRef.element = (T) SensorCommunitySharePlatform.SHARE_PIC_WECHAT_CIRCLE.getType();
} else if (Intrinsics.areEqual(view, (LinearLayout) _$_findCachedViewById(R.id.btnShareQQ))) {
x(4);
intRef.element = 2;
objectRef.element = (T) SensorCommunitySharePlatform.SHARE_PIC_QQ.getType();
} else if (Intrinsics.areEqual(view, (LinearLayout) _$_findCachedViewById(R.id.btnShareDu))) {
x(12);
intRef.element = 4;
objectRef.element = (T) SensorCommunitySharePlatform.PUBLISH.getType();
} else if (Intrinsics.areEqual(view, (LinearLayout) _$_findCachedViewById(R.id.btnSave))) {
if (!nq.b.c(getContext())) {
SensorsDataAutoTrackHelper.trackViewOnClick(view);
return;
}
new RxPermissionsHelper(requireActivity()).a("android.permission.WRITE_EXTERNAL_STORAGE", null).h(new b(this, intRef, objectRef)).i(ArProductWearShareDialog$onClick$2.INSTANCE).j(null).d();
}
if (!TextUtils.isEmpty(objectRef.element)) {
if (Intrinsics.areEqual(this.i, getString(R.string.ar_try))) {
c.f33453a.b(SensorContentType.TREND_IMAGE.getType(), objectRef.element, "0");
} else {
i60.b bVar = i60.b.f33293a;
ArrayMap arrayMap = new ArrayMap(8);
arrayMap.put("content_type", SensorContentType.TREND_VIDEO.getType());
arrayMap.put("community_share_platform_id", objectRef.element);
bVar.b("community_ar_share_platform_click", "473", "155", arrayMap);
}
}
SensorsDataAutoTrackHelper.trackViewOnClick(view);
}
}
@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, 206473, 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, 206488, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
return proxy.isSupported ? (View) proxy.result : _boostWeave.FragmentMethodWeaver_onCreateView(this, layoutInflater, viewGroup, bundle);
}
@Override // androidx.fragment.app.Fragment, com.shizhuang.duapp.common.dialog.BaseDialogFragment, androidx.fragment.app.DialogFragment
public void onDestroyView() {
HashMap hashMap;
super.onDestroyView();
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 206485, new Class[0], Void.TYPE).isSupported && (hashMap = this.o) != 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, 206490, 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, 206486, 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, 206492, 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, 206472, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.dialog_ar_product_wear_share;
}
@Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
public void r(@Nullable View view) {
String str;
String str2;
String str3;
String str4;
String str5;
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 206476, new Class[]{View.class}, Void.TYPE).isSupported) {
MallShareProductArContentView mallShareProductArContentView = (MallShareProductArContentView) _$_findCachedViewById(R.id.shareContentView);
MallShareProductArContentView.a aVar = this.f18967h;
if (!PatchProxy.proxy(new Object[]{aVar}, mallShareProductArContentView, MallShareProductArContentView.changeQuickRedirect, false, 127835, new Class[]{MallShareProductArContentView.a.class}, Void.TYPE).isSupported && aVar != null) {
Bitmap b2 = aVar.b();
if (b2 == null || !(!b2.isRecycled())) {
b2 = null;
}
if (b2 != null) {
((DuImageLoaderView) mallShareProductArContentView.a(R.id.productArBg)).e(aVar.b());
Unit unit = Unit.INSTANCE;
} else {
DuImageLoaderView duImageLoaderView = (DuImageLoaderView) mallShareProductArContentView.a(R.id.productArBg);
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], aVar, MallShareProductArContentView.a.changeQuickRedirect, false, 127845, new Class[0], String.class);
if (proxy.isSupported) {
str5 = (String) proxy.result;
} else {
str5 = aVar.f;
}
if (str5 == null) {
str5 = "";
}
((co.c) ((co.c) duImageLoaderView.i(str5).v(new d(fi.b.b((float) 354), fi.b.b((float) 560)))).u(new MallShareProductArContentView$update$3(mallShareProductArContentView))).x();
}
Bitmap a5 = aVar.a();
if (a5 == null || !(!a5.isRecycled())) {
a5 = null;
}
if (a5 != null) {
((DuImageLoaderView) mallShareProductArContentView.a(R.id.imgContent)).e(aVar.a());
Unit unit2 = Unit.INSTANCE;
} else {
DuImageLoaderView duImageLoaderView2 = (DuImageLoaderView) mallShareProductArContentView.a(R.id.imgContent);
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], aVar, MallShareProductArContentView.a.changeQuickRedirect, false, 127840, new Class[0], String.class);
if (proxy2.isSupported) {
str4 = (String) proxy2.result;
} else {
str4 = aVar.f13855a;
}
co.c i3 = duImageLoaderView2.i(str4);
i3.C = true;
((co.c) i3.u(new MallShareProductArContentView$update$6(mallShareProductArContentView))).x();
}
TextView textView = (TextView) mallShareProductArContentView.a(R.id.tvDesc);
PatchProxyResult proxy3 = PatchProxy.proxy(new Object[0], aVar, MallShareProductArContentView.a.changeQuickRedirect, false, 127842, new Class[0], String.class);
if (proxy3.isSupported) {
str = (String) proxy3.result;
} else {
str = aVar.f13856c;
}
textView.setText(str);
MallShareProductArQrCodeView mallShareProductArQrCodeView = (MallShareProductArQrCodeView) mallShareProductArContentView.a(R.id.arCode);
PatchProxyResult proxy4 = PatchProxy.proxy(new Object[0], aVar, MallShareProductArContentView.a.changeQuickRedirect, false, 127843, new Class[0], String.class);
if (proxy4.isSupported) {
str2 = (String) proxy4.result;
} else {
str2 = aVar.d;
}
PatchProxyResult proxy5 = PatchProxy.proxy(new Object[0], aVar, MallShareProductArContentView.a.changeQuickRedirect, false, 127844, new Class[0], String.class);
if (proxy5.isSupported) {
str3 = (String) proxy5.result;
} else {
str3 = aVar.e;
}
if (!PatchProxy.proxy(new Object[]{str2, str3}, mallShareProductArQrCodeView, MallShareProductArQrCodeView.changeQuickRedirect, false, 127851, new Class[]{String.class, String.class}, Void.TYPE).isSupported) {
f50.b.a(f.i(b0.b(), null, null, new MallShareProductArQrCodeView$setQrData$1(mallShareProductArQrCodeView, str2, null), 3, null), mallShareProductArQrCodeView);
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 206478, new Class[0], Void.TYPE).isSupported) {
((ImageView) _$_findCachedViewById(R.id.iv_ar_share_close)).setOnClickListener(this);
((LinearLayout) _$_findCachedViewById(R.id.btnShareWechat)).setOnClickListener(this);
((LinearLayout) _$_findCachedViewById(R.id.btnShareWechatCycle)).setOnClickListener(this);
((LinearLayout) _$_findCachedViewById(R.id.btnShareQQ)).setOnClickListener(this);
((LinearLayout) _$_findCachedViewById(R.id.btnShareDu)).setOnClickListener(this);
((LinearLayout) _$_findCachedViewById(R.id.btnSave)).setOnClickListener(this);
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 206477, new Class[0], Void.TYPE).isSupported) {
((ConstraintLayout) _$_findCachedViewById(R.id.shareRoot)).post(new wq0.c(this));
}
}
}
public final void x(int i3) {
if (!PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 206481, new Class[]{Integer.TYPE}, Void.TYPE).isSupported && l.c(this)) {
LifecycleOwnerKt.getLifecycleScope(this).launchWhenCreated(new ArProductWearShareDialog$share$1(this, i3, null));
}
}
}