得物.apk(点击下载) / OfflineShareActivity.java


package com.shizhuang.duapp.modules.product_detail.detailv3.ui;

import a01.a;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.Keep;
import androidx.lifecycle.LifecycleOwnerKt;
import co.c;
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.shizhuang.duapp.R;
import com.shizhuang.duapp.common.extension.ViewExtensionKt;
import com.shizhuang.duapp.common.ui.BaseLeftBackActivity;
import com.shizhuang.duapp.libs.duimageloaderview.DuImageLoaderView;
import com.shizhuang.dudatastatistics.factory.PoizonAnalyzeFactory;
import df.r0;
import fi.d;
import ij.c0;
import ik1.f;
import java.util.HashMap;
import jn.b;
import kotlin.Metadata;
import kotlin.jvm.JvmField;
import org.jetbrains.annotations.Nullable;

@Route(path = "/product/face_scan_share")
@Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/shizhuang/duapp/modules/product_detail/detailv3/ui/OfflineShareActivity;", "Lcom/shizhuang/duapp/common/ui/BaseLeftBackActivity;", "<init>", "()V", "du_product_detail_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: OfflineShareActivity.kt */
public final class OfflineShareActivity extends BaseLeftBackActivity {
    public static ChangeQuickRedirect changeQuickRedirect;
    @Autowired
    @JvmField
    @Nullable

    /* renamed from: c  reason: collision with root package name */
    public String f22221c = "";
    @Autowired
    @JvmField
    @Nullable
    public String d = "";
    @Autowired
    @JvmField
    @Nullable
    public String e = "";
    @Autowired
    @JvmField
    @Nullable
    public String f = "";

    /* renamed from: g  reason: collision with root package name */
    public HashMap f22222g;

    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 OfflineShareActivity offlineShareActivity, Bundle bundle) {
            if (!PatchProxy.proxy(new Object[]{offlineShareActivity, bundle}, null, changeQuickRedirect, true, 269820, new Class[]{OfflineShareActivity.class, Bundle.class}, Void.TYPE).isSupported) {
                b bVar = b.f34396a;
                if (!bVar.b()) {
                    bVar.d(true);
                }
                long currentTimeMillis = System.currentTimeMillis();
                OfflineShareActivity.e(offlineShareActivity, bundle);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (offlineShareActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.detailv3.ui.OfflineShareActivity")) {
                    bVar.activityOnCreateMethod(offlineShareActivity, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
        @Insert(mayCreateSuper = true, value = "onResume")
        @Keep
        public static void ActivityMethodWeaver_onResume(OfflineShareActivity offlineShareActivity) {
            if (!PatchProxy.proxy(new Object[]{offlineShareActivity}, null, changeQuickRedirect, true, 269819, new Class[]{OfflineShareActivity.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                OfflineShareActivity.d(offlineShareActivity);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (offlineShareActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.detailv3.ui.OfflineShareActivity")) {
                    b.f34396a.activityOnResumeMethod(offlineShareActivity, currentTimeMillis, currentTimeMillis2);
                }
            }
        }

        @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity")
        @Insert(mayCreateSuper = true, value = "onStart")
        @Keep
        public static void ActivityMethodWeaver_onStart(OfflineShareActivity offlineShareActivity) {
            if (!PatchProxy.proxy(new Object[]{offlineShareActivity}, null, changeQuickRedirect, true, 269821, new Class[]{OfflineShareActivity.class}, Void.TYPE).isSupported) {
                long currentTimeMillis = System.currentTimeMillis();
                OfflineShareActivity.f(offlineShareActivity);
                long currentTimeMillis2 = System.currentTimeMillis();
                if (offlineShareActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.product_detail.detailv3.ui.OfflineShareActivity")) {
                    b.f34396a.activityOnStartMethod(offlineShareActivity, currentTimeMillis, currentTimeMillis2);
                }
            }
        }
    }

    public static void d(OfflineShareActivity offlineShareActivity) {
        boolean z = false;
        if (!PatchProxy.proxy(new Object[0], offlineShareActivity, changeQuickRedirect, false, 269809, new Class[0], Void.TYPE).isSupported) {
            super.onResume();
            c0 c0Var = c0.f33454a;
            String str = offlineShareActivity.f;
            if (!PatchProxy.proxy(new Object[]{str}, c0Var, c0.changeQuickRedirect, false, 20973, new Class[]{String.class}, Void.TYPE).isSupported) {
                HashMap j = a.j("current_page", "400000", "block_type", "3135");
                if (str != null) {
                    if (str.length() > 0) {
                        z = true;
                    }
                    if (z) {
                        j.put("spu_id", str);
                    }
                }
                PoizonAnalyzeFactory.a().track("venue_pop_ups_exposure", j);
            }
        }
    }

    public static void e(OfflineShareActivity offlineShareActivity, Bundle bundle) {
        if (!PatchProxy.proxy(new Object[]{bundle}, offlineShareActivity, changeQuickRedirect, false, 269815, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.onCreate(bundle);
        }
    }

    public static void f(OfflineShareActivity offlineShareActivity) {
        if (!PatchProxy.proxy(new Object[0], offlineShareActivity, changeQuickRedirect, false, 269817, new Class[0], Void.TYPE).isSupported) {
            super.onStart();
        }
    }

    public View _$_findCachedViewById(int i) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 269812, new Class[]{Integer.TYPE}, View.class);
        if (proxy.isSupported) {
            return (View) proxy.result;
        }
        if (this.f22222g == null) {
            this.f22222g = new HashMap();
        }
        View view = (View) this.f22222g.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.f22222g.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    @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, 269805, new Class[0], Integer.TYPE);
        return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_offline_share;
    }

    @Override // com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController
    public void initData() {
        c i;
        c cVar;
        if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 269806, new Class[0], Void.TYPE).isSupported) {
            if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 269810, new Class[0], Void.TYPE).isSupported) {
                f.i(LifecycleOwnerKt.getLifecycleScope(this), null, null, new OfflineShareActivity$initQRCode$1(this, null), 3, null);
            }
            DuImageLoaderView duImageLoaderView = (DuImageLoaderView) _$_findCachedViewById(R.id.product_img);
            if (!(duImageLoaderView == null || (i = duImageLoaderView.i(this.d)) == null || (cVar = (c) i.d()) == null)) {
                cVar.x();
            }
            TextView textView = (TextView) _$_findCachedViewById(R.id.product_desc);
            if (textView != null) {
                textView.setText(this.e);
            }
        }
    }

    @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, 269811, new Class[0], Void.TYPE).isSupported) {
            r0.z(this, null);
            r0.B(this);
            d.a(getWindow(), true, true);
        }
    }

    @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) {
        if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 269807, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            super.initView(bundle);
            ((DuImageLoaderView) _$_findCachedViewById(R.id.bgQrIv)).i("https://cdn.poizon.com/node-common/6a44428e-092d-99a3-3472-182cc66080d6-996-996.png").x();
            ImageView imageView = (ImageView) _$_findCachedViewById(R.id.close_btn);
            if (imageView != null) {
                ViewExtensionKt.h(imageView, new OfflineShareActivity$initView$1(this));
            }
        }
    }

    @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, 269814, new Class[]{Bundle.class}, Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onCreate(this, bundle);
        }
    }

    @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, 269808, 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, 269816, new Class[0], Void.TYPE).isSupported) {
            _boostWeave.ActivityMethodWeaver_onStart(this);
        }
    }
}