package com.shizhuang.duapp.modules.user.setting.common.ui; import a.f; import a01.a; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.Keep; import androidx.annotation.Nullable; import butterknife.BindView; import butterknife.OnClick; import com.alibaba.android.arouter.facade.annotation.Route; import com.alibaba.android.arouter.launcher.ARouter; 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.update.DuUpdateCompatClient; import com.shizhuang.duapp.common.ui.BaseLeftBackActivity; import com.shizhuang.duapp.libs.robustplus.core.InstallService; import com.shizhuang.duapp.modules.router.ServiceManager; import com.shizhuang.duapp.modules.share.ShareDialog; import com.shizhuang.duapp.modules.share.ShareManager; import com.shizhuang.dudatastatistics.factory.PoizonAnalyzeFactory; import df.q; import ee.h; import ij.t; import java.util.HashMap; import jn.b; import ka.c; import pb1.i; import u91.e; @Route(path = "/account/MyAboutPage") public class MyAboutActivity extends BaseLeftBackActivity { public static ChangeQuickRedirect changeQuickRedirect; @BindView(5232) public ImageView imgRedDot; @BindView(5460) public View lineAppInfo; @BindView(5510) public View llAppInfo; @BindView(6734) public TextView tvVersion; 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(@Nullable MyAboutActivity myAboutActivity, Bundle bundle) { if (!PatchProxy.proxy(new Object[]{myAboutActivity, bundle}, null, changeQuickRedirect, true, 326121, new Class[]{MyAboutActivity.class, Bundle.class}, Void.TYPE).isSupported) { b bVar = b.f34396a; if (!bVar.b()) { bVar.d(true); } long currentTimeMillis = System.currentTimeMillis(); MyAboutActivity.e(myAboutActivity, bundle); long currentTimeMillis2 = System.currentTimeMillis(); if (myAboutActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.user.setting.common.ui.MyAboutActivity")) { bVar.activityOnCreateMethod(myAboutActivity, currentTimeMillis, currentTimeMillis2); } } } @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity") @Insert(mayCreateSuper = true, value = "onResume") @Keep public static void ActivityMethodWeaver_onResume(MyAboutActivity myAboutActivity) { if (!PatchProxy.proxy(new Object[]{myAboutActivity}, null, changeQuickRedirect, true, 326120, new Class[]{MyAboutActivity.class}, Void.TYPE).isSupported) { long currentTimeMillis = System.currentTimeMillis(); MyAboutActivity.d(myAboutActivity); long currentTimeMillis2 = System.currentTimeMillis(); if (myAboutActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.user.setting.common.ui.MyAboutActivity")) { b.f34396a.activityOnResumeMethod(myAboutActivity, currentTimeMillis, currentTimeMillis2); } } } @TargetClass(scope = Scope.ALL_CHILDREN, value = "androidx.appcompat.app.AppCompatActivity") @Insert(mayCreateSuper = true, value = "onStart") @Keep public static void ActivityMethodWeaver_onStart(MyAboutActivity myAboutActivity) { if (!PatchProxy.proxy(new Object[]{myAboutActivity}, null, changeQuickRedirect, true, 326122, new Class[]{MyAboutActivity.class}, Void.TYPE).isSupported) { long currentTimeMillis = System.currentTimeMillis(); MyAboutActivity.f(myAboutActivity); long currentTimeMillis2 = System.currentTimeMillis(); if (myAboutActivity.getClass().getCanonicalName().equals("com.shizhuang.duapp.modules.user.setting.common.ui.MyAboutActivity")) { b.f34396a.activityOnStartMethod(myAboutActivity, currentTimeMillis, currentTimeMillis2); } } } } public static void d(MyAboutActivity myAboutActivity) { boolean z = false; if (!PatchProxy.proxy(new Object[0], myAboutActivity, changeQuickRedirect, false, 326113, new Class[0], Void.TYPE).isSupported) { super.onResume(); t tVar = t.f33476a; String str = h.b().d ? PushConstants.PUSH_TYPE_UPLOAD_LOG : "0"; if (!PatchProxy.proxy(new Object[]{str, null}, tVar, t.changeQuickRedirect, false, 20776, new Class[]{String.class, String.class}, Void.TYPE).isSupported) { HashMap j = a.j("current_page", "1338", "block_type", "2497"); if (str.length() > 0) { z = true; } if (z) { j.put("badge_type", str); } PoizonAnalyzeFactory.a().track("activity_app_download_exposure", j); } } } public static void e(MyAboutActivity myAboutActivity, Bundle bundle) { if (!PatchProxy.proxy(new Object[]{bundle}, myAboutActivity, changeQuickRedirect, false, 326116, new Class[]{Bundle.class}, Void.TYPE).isSupported) { super.onCreate(bundle); } } public static void f(MyAboutActivity myAboutActivity) { if (!PatchProxy.proxy(new Object[0], myAboutActivity, changeQuickRedirect, false, 326118, new Class[0], Void.TYPE).isSupported) { super.onStart(); } } @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, 326106, new Class[0], Integer.TYPE); return proxy.isSupported ? ((Integer) proxy.result).intValue() : R.layout.activity_my_about_layout; } @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, 326105, new Class[0], Void.TYPE).isSupported) { ServiceManager.o().getInitViewModel(); TextView textView = this.tvVersion; StringBuilder h12 = f.h("POIZON "); h12.append(vh.a.c(this)); h12.append("."); h12.append(InstallService.REAL_PATCH_VERSION()); textView.setText(h12.toString()); } } @Override // com.shizhuang.duapp.common.ui.BaseLeftBackActivity, com.shizhuang.duapp.common.ui.BaseActivity, com.shizhuang.duapp.common.base.inter.IViewController public void initView(Bundle bundle) { if (!PatchProxy.proxy(new Object[]{bundle}, this, changeQuickRedirect, false, 326107, new Class[]{Bundle.class}, Void.TYPE).isSupported) { super.initView(bundle); if (qc.b.f37325a && !PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 326109, new Class[0], Void.TYPE).isSupported) { View findViewById = findViewById(R.id.iv_icon); findViewById.setOnClickListener(new os.b(this, findViewById, 4)); if (this.llAppInfo != null && !TextUtils.isEmpty(c.a(getApplicationContext(), "componentLogId"))) { this.llAppInfo.setVisibility(0); this.lineAppInfo.setVisibility(0); } } if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 326108, new Class[0], Void.TYPE).isSupported) { if (!h.b().d) { this.imgRedDot.setVisibility(8); } else { this.imgRedDot.setVisibility(0); } } } } @Override // androidx.activity.ComponentActivity, androidx.fragment.app.FragmentActivity public void onActivityResult(int i, int i3, Intent intent) { Object[] objArr = {new Integer(i), new Integer(i3), intent}; ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect; Class cls = Integer.TYPE; if (!PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 326111, new Class[]{cls, cls, Intent.class}, Void.TYPE).isSupported) { super.onActivityResult(i, i3, intent); ShareManager.b(this).c(i, i3, intent); } } @OnClick({5538, 6249, 5515, 5509, 4771, 5529, 5536, 5510}) public void onClick(View view) { i iVar; boolean z = true; if (!PatchProxy.proxy(new Object[]{view}, this, changeQuickRedirect, false, 326102, new Class[]{View.class}, Void.TYPE).isSupported) { int id2 = view.getId(); if (id2 == R.id.toolbar_right_img) { if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 326110, new Class[0], Void.TYPE).isSupported) { ShareDialog k = ShareDialog.k(); PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, lc1.a.changeQuickRedirect, true, 324580, new Class[0], i.class); if (proxy.isSupported) { iVar = (i) proxy.result; } else { iVar = new i(); String str = qc.f.g() + "client/barcode"; String m = fd0.c.m("这里有最毒的运动×潮流×装备,你也赶快加入吧!", " ", str, " ", "(分享自 @得物APP)"); iVar.G("这里有最毒的运动×潮流×装备,你也赶快加入吧!"); iVar.s("这里有最毒的运动×潮流×装备,你也赶快加入吧!"); iVar.A(R.mipmap.du_logo_small); iVar.F(str); iVar.D(m); } k.x(iVar).E(getSupportFragmentManager()); } } else if (id2 == R.id.ll_company_information) { e.S(this, "https://fast.dewu.com/nezha-plus/detail/61823bf6e1507e429e4430e0"); } else if (id2 == R.id.ll_rate_us) { if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 326103, new Class[0], Void.TYPE).isSupported) { try { Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + getPackageName())); intent.addFlags(268435456); startActivity(intent); } catch (Exception e) { q.n("您的手机没有安装Android应用市场"); e.printStackTrace(); } } } else if (id2 == R.id.ll_agreements) { e.S(view.getContext(), "https://fast.dewu.com/nezha-plus/detail/5fa7ca261bcbb77076c53d86"); } else { String str2 = PushConstants.PUSH_TYPE_UPLOAD_LOG; if (id2 == R.id.cl_check_update) { qf1.a.A("501100", "5", "1", null); wd.a.m("update"); DuUpdateCompatClient.h(this); h.b().a(); t tVar = t.f33476a; if (!h.b().d) { str2 = "0"; } if (!PatchProxy.proxy(new Object[]{str2, null}, tVar, t.changeQuickRedirect, false, 20777, new Class[]{String.class, String.class}, Void.TYPE).isSupported) { HashMap j = a.j("current_page", "1338", "block_type", "2497"); if (str2.length() <= 0) { z = false; } if (z) { j.put("badge_type", str2); } PoizonAnalyzeFactory.a().track("activity_app_download_click", j); } } else if (id2 == R.id.ll_join_us) { e.S(view.getContext(), "https://app.mokahr.com/m/apply/thedu/4503?from=singlemessage&isappinstalled=0"); HashMap hashMap = new HashMap(); hashMap.put("userid", ServiceManager.d().getUserId()); qf1.a.A("501100", "5", str2, hashMap); } else if (id2 == R.id.ll_privacy) { String str3 = ServiceManager.o().getInitViewModel().privacyPolicyUrl; Context context = view.getContext(); if (ei.a.a(str3)) { str3 = "https://cdn-fast.dewu.com/nezha-plus/detail/61b1c2ca11d1cb2fe24f756a?duWebviewBg=%23ffffff"; } e.S(context, str3); } else if (id2 == R.id.ll_app_info) { ARouter.getInstance().build("/developer/appInfo").navigation(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, 326115, 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, 326112, 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, 326117, new Class[0], Void.TYPE).isSupported) { _boostWeave.ActivityMethodWeaver_onStart(this); } } }