得物.apk(点击下载) / BlindBoxHomeActivity.java
package com.shizhuang.duapp.modules.blindbox.box.activity;
import a.f;
import android.os.Bundle;
import android.util.ArrayMap;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.Space;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.core.view.OneShotPreDrawListener;
import androidx.core.view.ViewCompat;
import androidx.lifecycle.ViewModelLazy;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager.widget.ViewPager;
import cd.e;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
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.helper.LoginHelper;
import com.shizhuang.duapp.common.poplayer.model.BlindBoxHomeStatusEvent;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.common.utils.livebus.PageEventBus;
import com.shizhuang.duapp.common.widget.font.IconFontTextView;
import com.shizhuang.duapp.common.widget.shapeview.ShapeView;
import com.shizhuang.duapp.libs.bpm.BM;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.duapp.modules.blindbox.api.BoxApi;
import com.shizhuang.duapp.modules.blindbox.api.BoxFacade;
import com.shizhuang.duapp.modules.blindbox.box.adapter.BlindBoxHomeListFragmentAdapter;
import com.shizhuang.duapp.modules.blindbox.box.fragment.BlindBoxHomeListFragment;
import com.shizhuang.duapp.modules.blindbox.box.model.BlindBoxActivityCategoryItemModel;
import com.shizhuang.duapp.modules.blindbox.box.views.HomeLooperView;
import com.shizhuang.duapp.modules.blindbox.lifecircle.BindLifeCycleUtils;
import com.shizhuang.duapp.modules.blindbox.viewmodel.BlindBoxHomeViewModel;
import com.shizhuang.duapp.modules.du_mall_common.constant.MallABTest;
import com.shizhuang.duapp.modules.du_mall_common.extension.LiveDataExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.extension.ViewExtensionKt;
import com.shizhuang.duapp.modules.du_mall_common.guide.helper.GuideViewHelper;
import com.shizhuang.duapp.modules.du_mall_common.guide.view.GuideView;
import com.shizhuang.duapp.modules.du_mall_common.widget.tablayout.MTabLayout;
import com.shizhuang.duapp.modules.pay.R$styleable;
import df.b0;
import df.r0;
import java.util.HashMap;
import java.util.List;
import k60.a;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.JvmField;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Reflection;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import td.j;
import td.s;
import tw.i;
import tw.k;
import us.h;
@Route(path = "/blindBox/HomePage")
@Metadata(bv = {}, d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0006\u0010\u0007J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0007¨\u0006\b"}, d2 = {"Lcom/shizhuang/duapp/modules/blindbox/box/activity/BlindBoxHomeActivity;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "Lcom/shizhuang/duapp/common/poplayer/model/BlindBoxHomeStatusEvent;", "event", "", "homeCouponEvent", "<init>", "()V", "du_blind_box_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: BlindBoxHomeActivity.kt */
public final class BlindBoxHomeActivity extends BaseLeftBackActivity {
public static ChangeQuickRedirect changeQuickRedirect;
@Autowired
@JvmField
/* renamed from: c reason: collision with root package name */
public int f11131c = -1;
@Autowired
@JvmField
@Nullable
public String d;
@Autowired
@JvmField
@Nullable
public String e;
public final Lazy f = LazyKt__LazyJVMKt.lazy(new BlindBoxHomeActivity$lightAnimatorSet$2(this));
/* renamed from: g reason: collision with root package name */
public final k60.a f11132g = new a();
/* renamed from: h reason: collision with root package name */
public xw.a f11133h = new xw.a();
public List<BlindBoxActivityCategoryItemModel> i;
public BlindBoxHomeListFragmentAdapter j;
public final Lazy k = new ViewModelLazy(Reflection.getOrCreateKotlinClass(BlindBoxHomeViewModel.class), new BlindBoxHomeActivity$$special$$inlined$viewModels$2(this), new BlindBoxHomeActivity$$special$$inlined$viewModels$1(this));
public HashMap l;
public class _boostWeave {
public static ChangeQuickRedirect changeQuickRedirect;
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onCreate")
@Keep
public static void ActivityMethodWeaver_onCreate(@androidx.annotation.Nullable BlindBoxHomeActivity blindBoxHomeActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{blindBoxHomeActivity, bundle}, null, changeQuickRedirect, true, 68847, new Class[]{BlindBoxHomeActivity.class, Bundle.class}, Void.TYPE).isSupported) {
jn.b bVar = jn.b.f34396a;
if (!bVar.b()) {
bVar.d(true);
}
long currentTimeMillis = System.currentTimeMillis();
BlindBoxHomeActivity.d(blindBoxHomeActivity, bundle);
long currentTimeMillis2 = System.currentTimeMillis();
if (blindBoxHomeActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.blindbox.box.activity.BlindBoxHomeActivity")) {
bVar.activityOnCreateMethod(blindBoxHomeActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onResume")
@Keep
public static void ActivityMethodWeaver_onResume(BlindBoxHomeActivity blindBoxHomeActivity) {
if (!PatchProxy.proxy(new Object[]{blindBoxHomeActivity}, null, changeQuickRedirect, true, 68848, new Class[]{BlindBoxHomeActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
BlindBoxHomeActivity.e(blindBoxHomeActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (blindBoxHomeActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.blindbox.box.activity.BlindBoxHomeActivity")) {
jn.b.f34396a.activityOnResumeMethod(blindBoxHomeActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
@TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
@Insert(mayCreateSuper = true, value = "onStart")
@Keep
public static void ActivityMethodWeaver_onStart(BlindBoxHomeActivity blindBoxHomeActivity) {
if (!PatchProxy.proxy(new Object[]{blindBoxHomeActivity}, null, changeQuickRedirect, true, 68849, new Class[]{BlindBoxHomeActivity.class}, Void.TYPE).isSupported) {
long currentTimeMillis = System.currentTimeMillis();
BlindBoxHomeActivity.f(blindBoxHomeActivity);
long currentTimeMillis2 = System.currentTimeMillis();
if (blindBoxHomeActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.blindbox.box.activity.BlindBoxHomeActivity")) {
jn.b.f34396a.activityOnStartMethod(blindBoxHomeActivity, currentTimeMillis, currentTimeMillis2);
}
}
}
}
/* compiled from: BlindBoxHomeActivity.kt */
public static final class a extends k60.a {
public static ChangeQuickRedirect changeQuickRedirect;
@Override // k60.a
public void m(@NotNull a.C0525a aVar) {
if (!PatchProxy.proxy(new Object[]{aVar}, this, changeQuickRedirect, false, 68850, new Class[]{a.C0525a.class}, Void.TYPE).isSupported) {
super.m(aVar);
BM.mall().b("mall_blind_box_home_load", aVar.a(), aVar.f(), MapsKt__MapsKt.mapOf(tf.a.e(aVar, "prepareDuration"), u1.a.h(aVar, "requestDuration"), h.e(aVar, "layoutDuration")));
}
}
}
/* compiled from: BlindBoxHomeActivity.kt */
public static final class b implements Runnable {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ BlindBoxHomeActivity b;
public b(BlindBoxHomeActivity blindBoxHomeActivity) {
this.b = blindBoxHomeActivity;
}
public final void run() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68851, new Class[0], Void.TYPE).isSupported) {
this.b.i().subScribe(!((AppCompatTextView) this.b._$_findCachedViewById(R.id.subscribeBtn)).isSelected());
}
}
}
/* compiled from: BlindBoxHomeActivity.kt */
public static final class c implements Runnable {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ BlindBoxHomeActivity b;
public c(BlindBoxHomeActivity blindBoxHomeActivity) {
this.b = blindBoxHomeActivity;
}
public final void run() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68870, new Class[0], Void.TYPE).isSupported) {
Space space = (Space) this.b._$_findCachedViewById(R.id.toolbarSpace);
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) space.getLayoutParams();
marginLayoutParams.height = this.b.toolbar.getHeight();
space.setLayoutParams(marginLayoutParams);
}
}
}
/* compiled from: View.kt */
public static final class d implements Runnable {
public static ChangeQuickRedirect changeQuickRedirect;
public final /* synthetic */ View b;
/* renamed from: c reason: collision with root package name */
public final /* synthetic */ BlindBoxHomeActivity f11134c;
public final /* synthetic */ View d;
public final /* synthetic */ IconFontTextView e;
public d(View view, BlindBoxHomeActivity blindBoxHomeActivity, View view2, IconFontTextView iconFontTextView) {
this.b = view;
this.f11134c = blindBoxHomeActivity;
this.d = view2;
this.e = iconFontTextView;
}
public final void run() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68877, new Class[0], Void.TYPE).isSupported) {
int i = ((ViewGroup.MarginLayoutParams) this.d.getLayoutParams()).topMargin;
IconFontTextView iconFontTextView = this.e;
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) iconFontTextView.getLayoutParams();
marginLayoutParams.topMargin = fi.b.j(this.f11134c.getContext()) - i;
iconFontTextView.setLayoutParams(marginLayoutParams);
}
}
}
public static void d(BlindBoxHomeActivity blindBoxHomeActivity, Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, blindBoxHomeActivity, changeQuickRedirect, false, 68813, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
blindBoxHomeActivity.f11132g.d();
super.onCreate(bundle);
ex.d.f32063a.b(blindBoxHomeActivity.d);
blindBoxHomeActivity.i().loadResource();
blindBoxHomeActivity.i().setCategoryId(blindBoxHomeActivity.f11131c);
blindBoxHomeActivity.i().getLoadSource().observe(blindBoxHomeActivity, new BlindBoxHomeActivity$onCreate$1(blindBoxHomeActivity));
LiveDataExtensionKt.b(blindBoxHomeActivity.i().getGroupData(), blindBoxHomeActivity, new BlindBoxHomeActivity$onCreate$2(blindBoxHomeActivity));
blindBoxHomeActivity.i().getSubScribeStatus().observe(blindBoxHomeActivity, new BlindBoxHomeActivity$onCreate$3(blindBoxHomeActivity));
blindBoxHomeActivity.i().getChangeSubScribe().observe(blindBoxHomeActivity, new BlindBoxHomeActivity$onCreate$4(blindBoxHomeActivity));
}
}
public static void e(BlindBoxHomeActivity blindBoxHomeActivity) {
if (!PatchProxy.proxy(new Object[0], blindBoxHomeActivity, changeQuickRedirect, false, 68827, new Class[0], Void.TYPE).isSupported) {
super.onResume();
i60.a aVar = i60.a.f33292a;
String str = blindBoxHomeActivity.e;
if (str == null) {
str = "";
}
ex.d dVar = ex.d.f32063a;
String a5 = dVar.a();
if (!PatchProxy.proxy(new Object[]{str, a5}, aVar, i60.a.changeQuickRedirect, false, 125159, new Class[]{Object.class, Object.class}, Void.TYPE).isSupported) {
i60.b.f33293a.b("trade_box_pageview", "449", "", g.a.e(8, "push_task_id", str, "prior_page_url", a5));
}
i60.b bVar = i60.b.f33293a;
bVar.b("trade_box_block_exposure", "449", "668", new ArrayMap(8));
ArrayMap arrayMap = new ArrayMap(8);
e.a(arrayMap, TuplesKt.to("prior_page_url", dVar.a()));
bVar.b("trade_box_block_exposure", "449", "667", arrayMap);
}
}
public static void f(BlindBoxHomeActivity blindBoxHomeActivity) {
if (!PatchProxy.proxy(new Object[0], blindBoxHomeActivity, changeQuickRedirect, false, 68843, new Class[0], Void.TYPE).isSupported) {
super.onStart();
}
}
public View _$_findCachedViewById(int i3) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i3)}, this, changeQuickRedirect, false, 68840, new Class[]{Integer.TYPE}, View.class);
if (proxy.isSupported) {
return (View) proxy.result;
}
if (this.l == null) {
this.l = new HashMap();
}
View view = (View) this.l.get(Integer.valueOf(i3));
if (view != null) {
return view;
}
View findViewById = findViewById(i3);
this.l.put(Integer.valueOf(i3), findViewById);
return findViewById;
}
public final void g() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68823, new Class[0], Void.TYPE).isSupported) {
LoginHelper.k(this, new b(this));
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public int getLayout() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68814, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_blind_box_home;
}
public final uw.c h() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68809, new Class[0], uw.c.class);
return (uw.c) (proxy.isSupported ? proxy.result : this.f.getValue());
}
@Subscribe(threadMode = ThreadMode.MAIN)
public final void homeCouponEvent(@NotNull BlindBoxHomeStatusEvent blindBoxHomeStatusEvent) {
if (!PatchProxy.proxy(new Object[]{blindBoxHomeStatusEvent}, this, changeQuickRedirect, false, 68836, new Class[]{BlindBoxHomeStatusEvent.class}, Void.TYPE).isSupported) {
StringBuilder h12 = f.h("blind : ");
h12.append(blindBoxHomeStatusEvent.getStatus());
fo.a.m(h12.toString(), new Object[0]);
String status = blindBoxHomeStatusEvent.getStatus();
if (status != null) {
switch (status.hashCode()) {
case 49:
if (status.equals("1")) {
j(true);
ViewExtensionKt.o((ShapeView) _$_findCachedViewById(R.id.redPointView));
PageEventBus.h(this).d(new vw.e());
return;
}
return;
case 50:
if (!status.equals(PushConstants.PUSH_TYPE_UPLOAD_LOG)) {
return;
}
break;
case 51:
if (!status.equals(PushConstants.PUSH_FLYME_3_CHANGE_VERSION_START)) {
return;
}
break;
default:
return;
}
this.f11133h.a();
}
}
}
public final BlindBoxHomeViewModel i() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68810, new Class[0], BlindBoxHomeViewModel.class);
return (BlindBoxHomeViewModel) (proxy.isSupported ? proxy.result : this.k.getValue());
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initData() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68817, new Class[0], Void.TYPE).isSupported) {
i().getSubScribeStatus(isLogin());
((HomeLooperView) _$_findCachedViewById(R.id.blindBoxLooperView)).a();
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68824, new Class[0], Void.TYPE).isSupported) {
this.f11132g.j();
BoxFacade boxFacade = BoxFacade.f11119a;
i iVar = new i(this, this);
if (!PatchProxy.proxy(new Object[]{iVar}, boxFacade, BoxFacade.changeQuickRedirect, false, 68679, new Class[]{s.class}, Void.TYPE).isSupported) {
j.doRequest(((BoxApi) j.getJavaGoApi(BoxApi.class)).getBoxCategoryActivity(cd.c.b(new Pair[0])), iVar);
}
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68818, new Class[0], Void.TYPE).isSupported) {
BoxFacade.f11119a.B(new tw.j(this, this));
}
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initStatusBar() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68820, new Class[0], Void.TYPE).isSupported) {
r0.z(this, null);
fi.d.a(getWindow(), false, true);
r0.u(this, ViewCompat.MEASURED_STATE_MASK);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void initView(@Nullable Bundle bundle) {
boolean z;
boolean z4;
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 68815, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.initView(bundle);
((co.c) ((DuImageLoaderView) _$_findCachedViewById(R.id.blindBoxDescImg)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/blind_box/blind_box_title.webp").v(ex.a.f32060a.i())).x();
this.toolbar.post(new c(this));
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68822, new Class[0], Void.TYPE).isSupported) {
TextView textView = (TextView) _$_findCachedViewById(R.id.tvBlindBoxMachine);
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], MallABTest.f13351a, MallABTest.changeQuickRedirect, false, 115440, new Class[0], Boolean.TYPE);
if (proxy.isSupported) {
z4 = ((Boolean) proxy.result).booleanValue();
} else {
z4 = fd.c.d(MallABTest.Keys.BLIND_BOX_MACHINE_ENTRY, 0) == 1;
}
textView.setVisibility(z4 ? 0 : 8);
com.shizhuang.duapp.common.extension.ViewExtensionKt.j((TextView) _$_findCachedViewById(R.id.tvBlindBoxMachine), 0, new BlindBoxHomeActivity$initClick$1(this), 1);
((AppCompatTextView) _$_findCachedViewById(R.id.ruleTv)).setOnClickListener(new BlindBoxHomeActivity$initClick$2(this));
((AppCompatTextView) _$_findCachedViewById(R.id.mineBoxTv)).setOnClickListener(new BlindBoxHomeActivity$initClick$3(this));
com.shizhuang.duapp.common.extension.ViewExtensionKt.h((AppCompatTextView) _$_findCachedViewById(R.id.couponTv), new BlindBoxHomeActivity$initClick$4(this));
((HomeLooperView) _$_findCachedViewById(R.id.blindBoxLooperView)).getMAdapter().c(new BlindBoxHomeActivity$initClick$5(this));
ViewExtensionKt.e((AppCompatTextView) _$_findCachedViewById(R.id.subscribeBtn), 0, new BlindBoxHomeActivity$initClick$6(this), 1);
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68816, new Class[0], Void.TYPE).isSupported) {
BindLifeCycleUtils bindLifeCycleUtils = BindLifeCycleUtils.f11191a;
bindLifeCycleUtils.a(this, h());
bindLifeCycleUtils.a(this, (HomeLooperView) _$_findCachedViewById(R.id.blindBoxLooperView));
}
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68833, new Class[0], Void.TYPE).isSupported) {
this.j = new BlindBoxHomeListFragmentAdapter(getSupportFragmentManager());
((ViewPager) _$_findCachedViewById(R.id.homeViewPager)).setAdapter(this.j);
((MTabLayout) _$_findCachedViewById(R.id.homeTabLayout)).setupWithViewPager((ViewPager) _$_findCachedViewById(R.id.homeViewPager));
((MTabLayout) _$_findCachedViewById(R.id.homeTabLayout)).c(new k(this));
}
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68837, new Class[0], Boolean.TYPE);
if (proxy2.isSupported) {
z = ((Boolean) proxy2.result).booleanValue();
} else {
z = ((Boolean) b0.f("has_show_blind_box_coupon_red_point", Boolean.FALSE)).booleanValue();
}
if (z) {
ViewExtensionKt.o((ShapeView) _$_findCachedViewById(R.id.redPointView));
}
xw.a aVar = this.f11133h;
BlindBoxHomeActivity$initView$2 blindBoxHomeActivity$initView$2 = new BlindBoxHomeActivity$initView$2(this);
if (!PatchProxy.proxy(new Object[]{blindBoxHomeActivity$initView$2}, aVar, xw.a.changeQuickRedirect, false, 69264, new Class[]{Function0.class}, Void.TYPE).isSupported) {
aVar.f40127c = blindBoxHomeActivity$initView$2;
}
}
}
public final void j(boolean z) {
if (!PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 68838, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
b0.l("has_show_blind_box_coupon_red_point", Boolean.valueOf(z));
}
}
public final void k() {
BlindBoxHomeListFragmentAdapter blindBoxHomeListFragmentAdapter;
BlindBoxHomeListFragment blindBoxHomeListFragment;
RecyclerView recyclerView;
GuideViewHelper guideViewHelper;
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68830, new Class[0], Void.TYPE).isSupported) {
Window window = getWindow();
View decorView = window != null ? window.getDecorView() : null;
if (!(decorView instanceof ViewGroup)) {
decorView = null;
}
ViewGroup viewGroup = (ViewGroup) decorView;
if (viewGroup != null && (blindBoxHomeListFragmentAdapter = this.j) != null) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], blindBoxHomeListFragmentAdapter, BlindBoxHomeListFragmentAdapter.changeQuickRedirect, false, 69026, new Class[0], BlindBoxHomeListFragment.class);
if (proxy.isSupported) {
blindBoxHomeListFragment = (BlindBoxHomeListFragment) proxy.result;
} else {
blindBoxHomeListFragment = blindBoxHomeListFragmentAdapter.d;
}
if (blindBoxHomeListFragment != null) {
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[0], blindBoxHomeListFragment, BlindBoxHomeListFragment.changeQuickRedirect, false, 69110, new Class[0], RecyclerView.class);
if (proxy2.isSupported) {
recyclerView = (RecyclerView) proxy2.result;
} else {
recyclerView = (RecyclerView) blindBoxHomeListFragment._$_findCachedViewById(R.id.recyclerView);
}
View b2 = h.b(viewGroup, R.layout.view_blind_box_home_layer, viewGroup, false);
GuideViewHelper guideViewHelper2 = new GuideViewHelper(viewGroup, null, null, 6);
IconFontTextView iconFontTextView = (IconFontTextView) b2.findViewById(R.id.closeIv);
((co.c) ((DuImageLoaderView) b2.findViewById(R.id.ivCollection)).i("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/blind_box/blind_box_icon_step_one.png").v(ex.a.f32060a.f())).x();
ViewExtensionKt.e(iconFontTextView, 0, new BlindBoxHomeActivity$showBoxListLayer$1(this, guideViewHelper2), 1);
boolean z = i().getStyle() == 2;
byte b5 = z ? (byte) 1 : 0;
byte b12 = z ? (byte) 1 : 0;
byte b13 = z ? (byte) 1 : 0;
PatchProxyResult proxy3 = PatchProxy.proxy(new Object[]{new Byte(b5)}, guideViewHelper2, GuideViewHelper.changeQuickRedirect, false, 117152, new Class[]{Boolean.TYPE}, GuideViewHelper.class);
if (proxy3.isSupported) {
guideViewHelper = (GuideViewHelper) proxy3.result;
} else {
GuideView guideView = guideViewHelper2.b;
if (guideView != null) {
guideView.setLightShowOneRow(z);
}
guideViewHelper = guideViewHelper2;
}
BlindBoxHomeActivity$showBoxListLayer$2 blindBoxHomeActivity$showBoxListLayer$2 = new BlindBoxHomeActivity$showBoxListLayer$2(recyclerView, guideViewHelper2);
PatchProxyResult proxy4 = PatchProxy.proxy(new Object[]{blindBoxHomeActivity$showBoxListLayer$2}, guideViewHelper, GuideViewHelper.changeQuickRedirect, false, 117151, new Class[]{Function1.class}, GuideViewHelper.class);
if (proxy4.isSupported) {
guideViewHelper = (GuideViewHelper) proxy4.result;
} else {
GuideView guideView2 = guideViewHelper.b;
if (guideView2 != null) {
guideView2.setLightClickCallBack(blindBoxHomeActivity$showBoxListLayer$2);
}
}
guideViewHelper.b(recyclerView, new n50.a(b2, 0, 0, 6)).d(R$styleable.AppCompatTheme_windowFixedWidthMajor).n();
OneShotPreDrawListener.add(b2, new d(b2, this, b2, iconFontTextView));
}
}
}
}
@Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onCreate(Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 68812, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
}
}
@Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
public void onCreateViewBefore(@Nullable Bundle bundle) {
if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 68811, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
super.onCreateViewBefore(bundle);
ex.a.f32060a.j(getApplicationContext());
}
}
@Override // androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onResume() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68826, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onResume(this);
}
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity
public void onStart() {
if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 68842, new Class[0], Void.TYPE).isSupported) {
_boostWeave.ActivityMethodWeaver_onStart(this);
}
}
}