得物.apk(点击下载) / UnlockNewUserDialog.java
package com.shizhuang.duapp.modules.newbie.ui.dialog;
import android.app.Dialog;
import android.os.Bundle;
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.TextView;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
import co.c;
import com.knightboost.weaver.api.Scope;
import com.knightboost.weaver.api.annotations.Insert;
import com.knightboost.weaver.api.annotations.TargetClass;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.common.dialog.BaseDialogFragment;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.pop.IDialogFragmentPop;
import com.shizhuang.duapp.common.pop.manager.ShowStrategy;
import com.shizhuang.duapp.libs.animation.DuAnimationView;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.newbie.model.UnlockPopDTO;
import com.shizhuang.dudatastatistics.factory.PoizonAnalyzeFactory;
import ij.d0;
import java.util.HashMap;
import jn.b;
import kotlin.Metadata;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
@Metadata(bv = {}, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u00012\u00020\u0002:\u0001\u0007B\u0007¢\u0006\u0004\b\u0005\u0010\u0006J\b\u0010\u0004\u001a\u00020\u0003H\u0016¨\u0006\b"}, d2 = {"Lcom/shizhuang/duapp/modules/newbie/ui/dialog/UnlockNewUserDialog;", "Lcom/shizhuang/duapp/common/dialog/BaseDialogFragment;", "Lcom/shizhuang/duapp/common/pop/IDialogFragmentPop;", "", "onResume", "<init>", "()V", "a", "du_newbie_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: UnlockNewUserDialog.kt */
public final class UnlockNewUserDialog extends BaseDialogFragment implements IDialogFragmentPop {
public static ChangeQuickRedirect changeQuickRedirect;
@NotNull
/* renamed from: g reason: collision with root package name */
public static final a f20695g = new a(null);
public UnlockPopDTO e;
public HashMap f;
public class _boostWeave {
public static ChangeQuickRedirect changeQuickRedirect;
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onCreate")
@Keep
public static void FragmentMethodWeaver_onCreate(UnlockNewUserDialog unlockNewUserDialog, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{unlockNewUserDialog, bundle}, null, changeQuickRedirect, true, 235442, new Class[]{UnlockNewUserDialog.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
UnlockNewUserDialog.t(unlockNewUserDialog, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (unlockNewUserDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.newbie.ui.dialog.UnlockNewUserDialog")) {
b.f34396a.fragmentOnCreateMethod(unlockNewUserDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onCreateView")
@Keep
public static View FragmentMethodWeaver_onCreateView(@NonNull UnlockNewUserDialog unlockNewUserDialog, @Nullable LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{unlockNewUserDialog, layoutInflater, viewGroup, bundle}, null, changeQuickRedirect, true, 235444, new Class[]{UnlockNewUserDialog.class, LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
long currentTimeMillis = System.currentTimeMillis();
View v4 = UnlockNewUserDialog.v(unlockNewUserDialog, layoutInflater, viewGroup, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (unlockNewUserDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.newbie.ui.dialog.UnlockNewUserDialog")) {
b.f34396a.fragmentOnCreateViewMethod(unlockNewUserDialog, currentTimeMillis, currentTimeMillis2);
}
return v4;
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void FragmentMethodWeaver_onResume(UnlockNewUserDialog unlockNewUserDialog) {
if (!PatchProxy.proxy(new Object[]{unlockNewUserDialog}, null, changeQuickRedirect, true, 235441, new Class[]{UnlockNewUserDialog.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
UnlockNewUserDialog.s(unlockNewUserDialog);
long currentTimeMillis2 = System.currentTimeMillis();
if (unlockNewUserDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.newbie.ui.dialog.UnlockNewUserDialog")) {
b.f34396a.fragmentOnResumeMethod(unlockNewUserDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void FragmentMethodWeaver_onStart(UnlockNewUserDialog unlockNewUserDialog) {
if (!PatchProxy.proxy(new Object[]{unlockNewUserDialog}, null, changeQuickRedirect, true, 235443, new Class[]{UnlockNewUserDialog.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
UnlockNewUserDialog.u(unlockNewUserDialog);
long currentTimeMillis2 = System.currentTimeMillis();
if (unlockNewUserDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.newbie.ui.dialog.UnlockNewUserDialog")) {
b.f34396a.fragmentOnStartMethod(unlockNewUserDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.fragment.app.Fragment")
@Insert(mayCreateSuper = true, value = "onViewCreated")
@Keep
public static void FragmentMethodWeaver_onViewCreated(@NonNull UnlockNewUserDialog unlockNewUserDialog, @Nullable View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{unlockNewUserDialog, view, bundle}, null, changeQuickRedirect, true, 235445, new Class[]{UnlockNewUserDialog.class, View.class, Bundle.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
UnlockNewUserDialog.w(unlockNewUserDialog, view, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (unlockNewUserDialog.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.newbie.ui.dialog.UnlockNewUserDialog")) {
b.f34396a.fragmentOnViewCreatedMethod(unlockNewUserDialog, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: UnlockNewUserDialog.kt */
public static final class a {
public static ChangeQuickRedirect changeQuickRedirect;
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
@JvmStatic
@NotNull
public final UnlockNewUserDialog a(@NotNull UnlockPopDTO unlockPopDTO) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{unlockPopDTO}, this, changeQuickRedirect, false, 235440, new Class[]{UnlockPopDTO.class}, UnlockNewUserDialog.class);
if (proxy.isSupported) {
return (UnlockNewUserDialog) proxy.result;
}
UnlockNewUserDialog unlockNewUserDialog = new UnlockNewUserDialog();
Bundle bundle = new Bundle();
bundle.putParcelable("unlockPopData", unlockPopDTO);
unlockNewUserDialog.setArguments(bundle);
return unlockNewUserDialog;
}
}
public static void s(UnlockNewUserDialog unlockNewUserDialog) {
if (!PatchProxy.proxy(new Object[0], unlockNewUserDialog, changeQuickRedirect, false, 235428, new Class[0], Void.TYPE).isSupported) {
super.onResume();
if (!PatchProxy.proxy(new Object[0], d0.f33456a, d0.changeQuickRedirect, false, 20986, new Class[0], Void.TYPE).isSupported) {
PoizonAnalyzeFactory.a().track("venue_pop_ups_exposure", a01.a.j("current_page", "300000", "block_type", "3272"));
}
}
}
public static void t(UnlockNewUserDialog unlockNewUserDialog, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, unlockNewUserDialog, changeQuickRedirect, false, 235433, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreate(bundle);
}
}
public static void u(UnlockNewUserDialog unlockNewUserDialog) {
if (!PatchProxy.proxy(new Object[0], unlockNewUserDialog, changeQuickRedirect, false, 235435, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public static View v(UnlockNewUserDialog unlockNewUserDialog, LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{layoutInflater, viewGroup, bundle}, unlockNewUserDialog, changeQuickRedirect, false, 235437, new Class[]{LayoutInflater.class, ViewGroup.class, Bundle.class}, View.class);
return proxy.isSupported ? (View) proxy.result : super.onCreateView(layoutInflater, viewGroup, bundle);
}
public static void w(UnlockNewUserDialog unlockNewUserDialog, View view, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{view, bundle}, unlockNewUserDialog, changeQuickRedirect, false, 235439, new Class[]{View.class, Bundle.class}, Void.TYPE).isSupported) {
super.onViewCreated(view, bundle);
}
}
public View _$_findCachedViewById(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 235429, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.f == null) {
this.f = new HashMap();
}
View view = (View) this.f.get(Integer.valueOf(i));
if (view != null) {
return view;
}
View view2 = getView();
if (view2 == null) {
return null;
}
View findViewById = view2.findViewById(i);
this.f.put(Integer.valueOf(i), findViewById);
return findViewById;
}
@Override // com.shizhuang.duapp.common.dialog.DuDialogFragment
public void g() {
Dialog dialog;
Window window;
FragmentActivity activity;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 235424, new Class[0], Void.TYPE).isSupported && (dialog = getDialog()) != null && (window = dialog.getWindow()) != null && (activity = getActivity()) != null) {
WindowManager.LayoutParams attributes = window.getAttributes();
float[] g3 = fi.b.g(activity);
float f12 = g3[0];
float f13 = g3[1];
attributes.width = (int) f12;
attributes.height = (int) f13;
window.setAttributes(attributes);
}
}
@Override // com.shizhuang.duapp.common.pop.manager.PopInterface
@NotNull
public ShowStrategy isCanShowNow() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 235426, new Class[0], ShowStrategy.class);
return proxy.isSupported ? (ShowStrategy) proxy.result : ShowStrategy.SHOW_NOW;
}
@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, 235432, 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, 235436, 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, 235430, new Class[0], Void.TYPE).isSupported && (hashMap = this.f) != null) {
hashMap.clear();
}
}
@Override // androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment
public void onDetach() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 235423, new Class[0], Void.TYPE).isSupported) {
super.onDetach();
}
}
@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, 235427, 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, 235434, 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, 235438, 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, 235420, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.nb_dialog_unlock_new_user;
}
@Override // com.shizhuang.duapp.common.dialog.BaseDialogFragment
public void r(@org.jetbrains.annotations.Nullable View view) {
Bundle arguments;
UnlockPopDTO unlockPopDTO;
TextView textView;
TextView textView2;
DuImageLoaderView duImageLoaderView;
c i;
c cVar;
DuAnimationView F;
if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 235421, new Class[]{View.class}, Void.TYPE).isSupported && (arguments = getArguments()) != null && (unlockPopDTO = (UnlockPopDTO) arguments.getParcelable("unlockPopData")) != null) {
this.e = unlockPopDTO;
if (getContext() != null) {
DuAnimationView duAnimationView = (DuAnimationView) _$_findCachedViewById(R.id.anim_view);
if (!(duAnimationView == null || (F = duAnimationView.F("https://videocdn.poizon.com/node-common/a145c876-99c7-8e99-a878-2360f694f9e6.mp4")) == null)) {
F.s();
}
ImageView imageView = (ImageView) _$_findCachedViewById(R.id.closeIcon);
if (imageView != null) {
ViewExtensionKt.h(imageView, new UnlockNewUserDialog$initView$1(this));
}
TextView textView3 = (TextView) _$_findCachedViewById(R.id.closeBtn);
if (textView3 != null) {
ViewExtensionKt.h(textView3, new UnlockNewUserDialog$initView$2(this));
}
UnlockPopDTO unlockPopDTO2 = this.e;
if (unlockPopDTO2 != null) {
String imgUrl = unlockPopDTO2.getImgUrl();
if (!(imgUrl == null || (duImageLoaderView = (DuImageLoaderView) _$_findCachedViewById(R.id.imgView)) == null || (i = duImageLoaderView.i(imgUrl)) == null || (cVar = (c) h.b.h(1080, 1080, i)) == null)) {
cVar.x();
}
String mainTitle = unlockPopDTO2.getMainTitle();
if (!(mainTitle == null || (textView2 = (TextView) _$_findCachedViewById(R.id.title)) == null)) {
textView2.setText(mainTitle);
}
String subTitle = unlockPopDTO2.getSubTitle();
if (subTitle != null && (textView = (TextView) _$_findCachedViewById(R.id.subTitle)) != null) {
textView.setText(subTitle);
}
}
}
}
}
@Override // com.shizhuang.duapp.common.pop.IDialogFragmentPop
public void showPop(@NotNull FragmentManager fragmentManager, @org.jetbrains.annotations.Nullable String str) {
if (!PatchProxy.proxy(new Object[]{fragmentManager, str}, this, changeQuickRedirect, false, 235425, new Class[]{FragmentManager.class, String.class}, Void.TYPE).isSupported) {
show(fragmentManager, str);
}
}
public final void x() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 235422, new Class[0], Void.TYPE).isSupported) {
dismissAllowingStateLoss();
if (!PatchProxy.proxy(new Object[0], d0.f33456a, d0.changeQuickRedirect, false, 20985, new Class[0], Void.TYPE).isSupported) {
PoizonAnalyzeFactory.a().track("venue_pop_ups_click", a01.a.j("current_page", "300000", "block_type", "3272"));
}
}
}
}