package com.tencent.mm.plugin.profile.ui.newbizinfo; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import android.text.SpannableString; import android.text.style.ForegroundColorSpan; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import as2.f; import bg0.l; import bg0.m; import bg0.n; import bw3.d40; import bw3.nu5; import com.tencent.mm.R; import com.tencent.mm.modelavatar.o; import com.tencent.mm.plugin.profile.ui.BizInfoPayInfoIconPreference; import com.tencent.mm.plugin.profile.ui.IconWidgetPreference; import com.tencent.mm.plugin.report.service.q; import com.tencent.mm.sdk.http.HttpWrapperBase; import com.tencent.mm.sdk.platformtools.ClipboardHelper; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMHandlerThread; import com.tencent.mm.sdk.platformtools.Util; import com.tencent.mm.sdk.platformtools.WeChatHosts; import com.tencent.mm.sdk.storage.IAutoDBItem; import com.tencent.mm.storage.z1; import com.tencent.mm.ui.base.preference.KeyValuePreference; import com.tencent.mm.ui.base.preference.MMPreference; import com.tencent.mm.ui.base.preference.Preference; import com.tencent.mm.ui.base.preference.PreferenceSmallCategory; import hz.h; import i14.j; import ih.c; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Set; import k14.g; import nf0.p3; import nf0.u0; import nf0.w0; import org.json.JSONObject; import xr2.b; import yn.i; public class NewBizInfoMoreInofUI extends MMPreference implements n.c { /* renamed from: s reason: collision with root package name */ public static final String f138174s = (HttpWrapperBase.PROTOCAL_HTTPS + WeChatHosts.domainString(R.string.fy9) + "/mp/infringement?username=%s&from=1#wechat_redirect"); /* renamed from: e reason: collision with root package name */ public g f138175e; /* renamed from: f reason: collision with root package name */ public z1 f138176f; /* renamed from: g reason: collision with root package name */ public d40 f138177g; /* renamed from: h reason: collision with root package name */ public c f138178h; /* renamed from: i reason: collision with root package name */ public c.b f138179i; /* renamed from: j reason: collision with root package name */ public List<c.a> f138180j; /* renamed from: n reason: collision with root package name */ public boolean f138181n = false; /* renamed from: o reason: collision with root package name */ public Bundle f138182o; /* renamed from: p reason: collision with root package name */ public int f138183p; /* renamed from: q reason: collision with root package name */ public String f138184q; /* renamed from: r reason: collision with root package name */ public boolean f138185r; public class a implements Preference.c { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ KeyValuePreference f138186a; public a(KeyValuePreference keyValuePreference) { this.f138186a = keyValuePreference; } public boolean a(Preference preference) { ClipboardHelper.setText(this.f138186a.f177762n); j.T(NewBizInfoMoreInofUI.this.getContext(), NewBizInfoMoreInofUI.this.getContext().getString(R.string.f367407st)); return true; } } public final void T7(m mVar) { System.currentTimeMillis(); o oVar = (o) ((yn.g) yz3.j.c(yn.g.class)).Ci(); if (oVar.Sa(mVar.field_openId) == null) { com.tencent.mm.modelavatar.n nVar = new com.tencent.mm.modelavatar.n(); nVar.f78487a = mVar.field_openId; nVar.f78490d = mVar.field_headImgUrl; nVar.f78492f = 0; nVar.f78488b = 3; oVar.sb(nVar); } ((com.tencent.mm.modelavatar.g) ((yn.g) yz3.j.c(yn.g.class)).DE()).b(mVar.field_openId); System.currentTimeMillis(); } /* JADX WARNING: Removed duplicated region for block: B:7:0x001c */ public final c.a U7() { List<c.a> list = this.f138180j; if (list == null || list.size() < 0) { Log.w("MicroMsg.NewBizInfoMoreInofUI", "brandInfoList is null not show location"); return null; } for (c.a aVar : this.f138180j) { if (aVar.f233082b.equals("__mp_wording__brandinfo_location") || getString(R.string.bcn).equals(aVar.f233081a)) { return aVar; } while (r0.hasNext()) { } } Log.w("MicroMsg.NewBizInfoMoreInofUI", "brandInfoList is null not show location"); return null; } public final void V7(int i15, String str) { String str2; Bundle bundle = this.f138182o; if (bundle != null) { int i16 = this.f138183p; if (i16 != 39 && i16 != 56 && i16 != 35 && i16 != 87 && i16 != 88 && i16 != 89 && i16 != 85) { return; } if (this.f138176f == null) { Log.i("MicroMsg.NewBizInfoMoreInofUI", "contact is null."); return; } String string = bundle.getString("Contact_Ext_Args_Search_Id"); String nullAsNil = Util.nullAsNil(this.f138182o.getString("Contact_Ext_Args_Query_String")); int i17 = this.f138182o.getInt("Contact_Ext_Args_Index"); int i18 = 0; int i19 = this.f138183p; if (i19 == 35) { i18 = 1; } else if (i19 != 85) { switch (i19) { case 87: i18 = 2; break; case 88: i18 = 3; break; case 89: i18 = 4; break; } } else { i18 = 5; } String nullAsNil2 = Util.nullAsNil(this.f138182o.getString("Contact_Ext_Extra_Params")); String str3 = nullAsNil + "," + i15 + "," + Util.nullAsNil(this.f138176f.getUsername()) + "," + i17 + "," + (System.currentTimeMillis() / 1000) + "," + string + "," + i18; if (!Util.isNullOrNil(str)) { str2 = str3 + "," + str + "," + nullAsNil2; } else { str2 = str3 + ",," + nullAsNil2; } q.INSTANCE.kvStat(10866, str2); } } @Override // bg0.n.c public String a7() { return "MicroMsg.NewBizInfoMoreInofUI"; } @Override // com.tencent.mm.ui.base.preference.MMPreference public int getResourceId() { return R.xml.f370581b9; } /* JADX WARNING: Removed duplicated region for block: B:106:0x0373 */ /* JADX WARNING: Removed duplicated region for block: B:143:0x047f */ /* JADX WARNING: Removed duplicated region for block: B:151:0x04b9 */ /* JADX WARNING: Removed duplicated region for block: B:172:0x0566 */ /* JADX WARNING: Removed duplicated region for block: B:173:0x0568 */ /* JADX WARNING: Removed duplicated region for block: B:180:0x057b */ /* JADX WARNING: Removed duplicated region for block: B:189:0x05d8 */ /* JADX WARNING: Removed duplicated region for block: B:195:0x05f8 */ /* JADX WARNING: Removed duplicated region for block: B:196:0x05fe */ /* JADX WARNING: Removed duplicated region for block: B:199:0x060d */ /* JADX WARNING: Removed duplicated region for block: B:254:? A[ADDED_TO_REGION, ORIG_RETURN, RETURN, SYNTHETIC] */ /* JADX WARNING: Removed duplicated region for block: B:87:0x028e */ /* JADX WARNING: Removed duplicated region for block: B:95:0x02db */ @Override // com.tencent.mm.ui.MMActivity public void initView() { c.b bVar; c.b bVar2; c.b bVar3; c.b bVar4; c.b bVar5; c.b bVar6; int d15; List<c.a> list; int d16; String str; String str2; c.b bVar7; SpannableString spannableString; IndexOutOfBoundsException e15; String str3; g gVar = this.f138175e; Boolean bool = Boolean.TRUE; gVar.n("biz_placed_to_the_top", true); c b15 = l.b(this.f138176f.getUsername()); this.f138180j = null; this.f138179i = null; if ((b15 == null || b15.w2(false) == null) && this.f138177g != null) { b15 = new c(); b15.field_username = this.f138176f.getUsername(); d40 d402 = this.f138177g; b15.field_brandFlag = d402.f18974d; b15.field_brandIconURL = d402.f18977g; b15.field_brandInfo = d402.f18976f; b15.field_extInfo = d402.f18975e; b15.field_type = b15.w2(false).j(); } if (b15 != null && b15.field_brandInfo == null && b15.field_extInfo == null && this.f138177g != null) { b15.field_username = this.f138176f.getUsername(); d40 d403 = this.f138177g; b15.field_brandFlag = d403.f18974d; b15.field_brandIconURL = d403.f18977g; b15.field_brandInfo = d403.f18976f; b15.field_extInfo = d403.f18975e; b15.field_type = b15.w2(false).j(); } if (b15 != null) { this.f138178h = b15; this.f138180j = b15.s2(); c.b w25 = b15.w2(false); this.f138179i = w25; JSONObject jSONObject = w25.f233085a; if (jSONObject != null) { w25.f233087c = "1".equals(jSONObject.optString("IsShowMember")); } this.f138181n = w25.f233087c; } if (this.f138176f.z3()) { c cVar = this.f138178h; if (cVar == null ? true : cVar.g0()) { KeyValuePreference keyValuePreference = (KeyValuePreference) this.f138175e.a("contact_info_wechat_account"); if (!Util.isNullOrNil(this.f138176f.q2())) { this.f138175e.n("contact_info_wechat_account", false); keyValuePreference.M(((h) yz3.j.c(h.class)).g2(this, this.f138176f.q2())); } else if (z1.Q4(this.f138176f.getUsername()) || z1.M5(this.f138176f.getUsername())) { this.f138175e.n("contact_info_wechat_account", true); } else { this.f138175e.n("contact_info_wechat_account", false); String nullAsNil = Util.nullAsNil(this.f138176f.s3()); keyValuePreference.M(com.tencent.mm.plugin.profile.g.b(getContext(), this.f138176f.getUsername()) + com.tencent.mm.plugin.profile.g.c(this.f138176f.getUsername(), nullAsNil)); } keyValuePreference.f177758g = new a(keyValuePreference); bVar = this.f138179i; if (bVar != null || bVar.n() == null || Util.isNullOrNil(this.f138179i.n().f233127b)) { bVar7 = this.f138179i; if (bVar7 != null || bVar7.h() == null || Util.isNullOrNil(this.f138179i.h().f233138a)) { Log.w("MicroMsg.NewBizInfoMoreInofUI", "has not verify info"); this.f138175e.n("contact_info_verifyuser", true); } else { KeyValuePreference keyValuePreference2 = (KeyValuePreference) this.f138175e.a("contact_info_verifyuser"); if (keyValuePreference2 != null) { keyValuePreference2.M(this.f138179i.h().f233138a); } } } else { c.b.e n15 = this.f138179i.n(); KeyValuePreference keyValuePreference3 = (KeyValuePreference) this.f138175e.a("contact_info_verifyuser"); if (keyValuePreference3 != null) { keyValuePreference3.R = true; keyValuePreference3.T = 49; keyValuePreference3.N = false; if (Util.isNullOrNil(n15.f233128c)) { int i15 = n15.f233126a; if (i15 == 0) { str3 = getResources().getString(R.string.bjb); } else if (i15 == 1) { str3 = getResources().getString(R.string.bcf); } else if (i15 != 2) { Log.w("MicroMsg.NewBizInfoMoreInofUI", "getVerifyStr, error type %d", Integer.valueOf(i15)); str3 = getResources().getString(R.string.be6); } else { str3 = getResources().getString(R.string.bcg); } keyValuePreference3.Q = str3; } else { keyValuePreference3.Q = n15.f233128c; } Log.i("MicroMsg.NewBizInfoMoreInofUI", "verify bmp is null ? %B", bool); keyValuePreference3.X = null; if (n15.f233127b != null) { String str4 = n15.f233130e; SpannableString g25 = ((h) yz3.j.c(h.class)).g2(this, n15.f233127b.trim()); if (!Util.isNullOrNil(str4)) { try { spannableString = new SpannableString(str4 + " " + ((Object) g25)); try { spannableString.setSpan(new ForegroundColorSpan(-36352), 0, str4.length(), 17); } catch (IndexOutOfBoundsException e16) { e15 = e16; } } catch (IndexOutOfBoundsException e17) { spannableString = g25; e15 = e17; Log.e("MicroMsg.NewBizInfoMoreInofUI", "verifySummary setSpan error: %s", e15.getMessage()); g25 = spannableString; keyValuePreference3.M(g25); bVar2 = this.f138179i; if (bVar2 != null) { } Log.w("MicroMsg.NewBizInfoMoreInofUI", "has not trademark info"); this.f138175e.n("contact_info_trademark", true); bVar3 = this.f138179i; if (bVar3 != null) { } this.f138175e.n("contact_info_privilege", true); String stringExtra = getIntent().getStringExtra("Contact_BIZ_KF_WORKER_ID"); if (!this.f138185r) { } bVar4 = this.f138179i; if (bVar4 != null) { } this.f138175e.n("contact_info_service_phone", true); bVar5 = this.f138179i; if (bVar5 != null) { } this.f138175e.n("contact_info_reputation", true); this.f138175e.n("contact_info_guarantee_info", true); this.f138175e.n("contact_info_scope_of_business", true); z1 z1Var = this.f138176f; Set<String> set = w0.f270844a; str2 = ""; if (!str.equals(str2)) { } this.f138175e.n("contact_info_verifyuser_weibo", true); bVar6 = this.f138179i; if (bVar6 != null) { } this.f138175e.n("near_field_service", true); if (U7() == null) { } d15 = this.f138175e.d("contact_info_category2"); if (d15 >= 0) { } } g25 = spannableString; } keyValuePreference3.M(g25); } else { Log.e("MicroMsg.NewBizInfoMoreInofUI", "[arthurdan.emojiSpan] Notice!!!! extInfo.verifyInfo.verifySourceDescription is null"); } } else { this.f138175e.n("contact_info_verifyuser", true); } } bVar2 = this.f138179i; if (bVar2 != null || Util.isNullOrNil(bVar2.l())) { Log.w("MicroMsg.NewBizInfoMoreInofUI", "has not trademark info"); this.f138175e.n("contact_info_trademark", true); } else { KeyValuePreference keyValuePreference4 = (KeyValuePreference) this.f138175e.a("contact_info_trademark"); if (keyValuePreference4 != null) { keyValuePreference4.R = true; keyValuePreference4.T = 49; keyValuePreference4.N = false; Log.i("MicroMsg.NewBizInfoMoreInofUI", "trademark bmp is null ? %B", bool); keyValuePreference4.X = null; keyValuePreference4.M(this.f138179i.l()); this.f138179i.l(); this.f138179i.m(); } } bVar3 = this.f138179i; if (bVar3 != null || bVar3.g() == null || this.f138179i.g().size() <= 0) { this.f138175e.n("contact_info_privilege", true); } else { KeyValuePreference keyValuePreference5 = (KeyValuePreference) this.f138175e.a("contact_info_privilege"); keyValuePreference5.R = true; keyValuePreference5.T = 49; keyValuePreference5.Q(false); ((LinkedList) keyValuePreference5.Z).clear(); for (c.b.g gVar2 : this.f138179i.g()) { LinearLayout linearLayout = (LinearLayout) View.inflate(this, R.layout.bms, null); ((ImageView) linearLayout.findViewById(R.id.h9o)).setImageDrawable(new js2.c(getResources(), gVar2.f233135a)); String str5 = gVar2.f233136b; getResources().getIdentifier(gVar2.f233137c, "string", getPackageName()); ((TextView) linearLayout.findViewById(R.id.ns9)).setText(str5); ((LinkedList) keyValuePreference5.Z).add(linearLayout); } } String stringExtra2 = getIntent().getStringExtra("Contact_BIZ_KF_WORKER_ID"); if (!this.f138185r) { this.f138184q = stringExtra2; c.b bVar8 = this.f138179i; if (bVar8 != null) { JSONObject jSONObject2 = bVar8.f233085a; if (jSONObject2 != null) { bVar8.f233109y = jSONObject2.optInt("FunctionFlag"); } int i16 = bVar8.f233109y; IAutoDBItem.MAutoDBInfo mAutoDBInfo = c.f233078y0; if (((i16 & 1) > 0) && this.f138176f != null) { if (Util.isNullOrNil(stringExtra2)) { m fb5 = bg0.w0.iO0().fb(this.f138176f.getUsername()); if (fb5 == null) { this.f138175e.n("contact_info_kf_worker", true); bg0.w0.hO0().a(this); bg0.w0.hO0().c(this.f138176f.getUsername(), u0.r()); this.f138185r = true; } else { this.f138175e.n("contact_info_kf_worker", false); IconWidgetPreference iconWidgetPreference = (IconWidgetPreference) this.f138175e.a("contact_info_kf_worker"); iconWidgetPreference.M(fb5.field_nickname); Bitmap Yg0 = ((i) yz3.j.c(i.class)).Yg0(fb5.field_openId); if (Yg0 == null) { T7(fb5); MMHandlerThread.postToMainThreadDelayed(new b(this, fb5.field_openId), 2000); } else { iconWidgetPreference.Q(Yg0); } } } else { bg0.o iO0 = bg0.w0.iO0(); m Sa = iO0.Sa(stringExtra2); if (Sa == null || iO0.sb(Sa)) { bg0.w0.hO0().a(this); bg0.w0.hO0().d(this.f138176f.getUsername(), stringExtra2, 1); this.f138185r = true; } if (Sa == null) { Sa = iO0.fb(this.f138176f.getUsername()); } if (Sa == null) { this.f138175e.n("contact_info_kf_worker", true); } else { this.f138175e.n("contact_info_kf_worker", false); IconWidgetPreference iconWidgetPreference2 = (IconWidgetPreference) this.f138175e.a("contact_info_kf_worker"); iconWidgetPreference2.M(Sa.field_nickname); Bitmap Yg02 = ((i) yz3.j.c(i.class)).Yg0(Sa.field_openId); if (Yg02 == null) { T7(Sa); MMHandlerThread.postToMainThreadDelayed(new b(this, Sa.field_openId), 2000); } else { iconWidgetPreference2.Q(Yg02); } } } } } this.f138175e.n("contact_info_kf_worker", true); } bVar4 = this.f138179i; if (bVar4 != null || Util.isNullOrNil(bVar4.i())) { this.f138175e.n("contact_info_service_phone", true); } else { this.f138175e.n("contact_info_service_phone", false); Preference a15 = this.f138175e.a("contact_info_service_phone"); if (a15 != null) { a15.M(this.f138179i.i()); a15.f177774z = getResources().getColor(R.color.f358734vo); } } bVar5 = this.f138179i; if (bVar5 != null || bVar5.f() == null) { this.f138175e.n("contact_info_reputation", true); this.f138175e.n("contact_info_guarantee_info", true); this.f138175e.n("contact_info_scope_of_business", true); } else { BizInfoPayInfoIconPreference bizInfoPayInfoIconPreference = (BizInfoPayInfoIconPreference) this.f138175e.a("contact_info_reputation"); if (this.f138179i.f().f233131a > 0) { int i17 = this.f138179i.f().f233131a; if (i17 != bizInfoPayInfoIconPreference.P) { bizInfoPayInfoIconPreference.P = i17; bizInfoPayInfoIconPreference.R(); } } else { this.f138175e.n("contact_info_reputation", true); } BizInfoPayInfoIconPreference bizInfoPayInfoIconPreference2 = (BizInfoPayInfoIconPreference) this.f138175e.a("contact_info_guarantee_info"); if (this.f138179i.f().f233133c == null || ((ArrayList) this.f138179i.f().f233133c).size() <= 0) { this.f138175e.n("contact_info_guarantee_info", true); } else { bizInfoPayInfoIconPreference2.N = this.f138179i.f().f233133c; bizInfoPayInfoIconPreference2.R(); } KeyValuePreference keyValuePreference6 = (KeyValuePreference) this.f138175e.a("contact_info_scope_of_business"); if (!Util.isNullOrNil(this.f138179i.f().f233132b)) { keyValuePreference6.M(this.f138179i.f().f233132b); keyValuePreference6.V = 4; keyValuePreference6.Q(false); } else { this.f138175e.n("contact_info_scope_of_business", true); } } z1 z1Var2 = this.f138176f; Set<String> set2 = w0.f270844a; if (((z1Var2.O2() & 1) != 0) && (str = this.f138176f.f263311p0) != null) { str2 = ""; if (!str.equals(str2)) { KeyValuePreference keyValuePreference7 = (KeyValuePreference) this.f138175e.a("contact_info_verifyuser_weibo"); if (keyValuePreference7 != null) { StringBuilder sb5 = new StringBuilder(); sb5.append(Util.nullAs(this.f138176f.P2(), str2)); Object[] objArr = new Object[1]; String str6 = this.f138176f.f263311p0; if (w0.T(str6)) { str2 = str6.replace("http://t.qq.com/", str2).replace("t.qq.com/", str2); } objArr[0] = str2; sb5.append(getString(R.string.iy6, objArr)); keyValuePreference7.M(sb5.toString()); keyValuePreference7.f177774z = gy3.a.d(this, R.color.f358734vo); keyValuePreference7.Q(false); } bVar6 = this.f138179i; if (bVar6 != null || !bVar6.q()) { this.f138175e.n("near_field_service", true); } else { this.f138175e.a("near_field_service").L(R.string.l_8); } if (U7() == null) { this.f138175e.n("contact_info_see_locate", false); } else { this.f138175e.n("contact_info_see_locate", true); } d15 = this.f138175e.d("contact_info_category2"); if (d15 >= 0 && (list = this.f138180j) != null && list.size() > 0) { for (int size = this.f138180j.size() - 1; size >= 0; size--) { if (this.f138180j.get(size) != null && ((!getString(R.string.bch).equals(this.f138180j.get(size).f233081a) || this.f138181n) && ((!Util.isNullOrNil(this.f138180j.get(size).f233081a) || !Util.isNullOrNil(this.f138180j.get(size).f233082b)) && !this.f138180j.get(size).f233082b.equals("__mp_wording__brandinfo_location") && !getString(R.string.bcn).equals(this.f138180j.get(size).f233081a) && !this.f138180j.get(size).f233082b.equals("__mp_wording__brandinfo_history_massmsg")))) { Preference preference = new Preference(this); preference.I("contact_info_bizinfo_external#" + size); String str7 = this.f138180j.get(size).f233081a; int identifier = getResources().getIdentifier(this.f138180j.get(size).f233082b, "string", getPackageName()); if (identifier > 0) { str7 = getString(identifier); } if (this.f138178h.z2() && ("__mp_wording__brandinfo_history_massmsg".equals(this.f138180j.get(size).f233082b) || str7.equals(getString(R.string.__mp_wording__brandinfo_history_massmsg)))) { str7 = getString(R.string.f368007c11); } preference.P(str7); if (!Util.isNullOrNil(this.f138180j.get(size).f233084d)) { preference.M(this.f138180j.get(size).f233084d); } int i18 = (!Util.nullAsNil(this.f138180j.get(size).f233082b).equals("__mp_wording__brandinfo_feedback") || (d16 = this.f138175e.d("contact_info_scope_of_business")) <= 0) ? d15 : d16 + 1; this.f138175e.h(preference, i18); if (Util.nullAsNil(this.f138180j.get(size).f233082b).equals("__mp_wording__brandinfo_biz_detail")) { this.f138175e.h(new PreferenceSmallCategory(this, null), i18); } } } return; } return; } } this.f138175e.n("contact_info_verifyuser_weibo", true); bVar6 = this.f138179i; if (bVar6 != null) { } this.f138175e.n("near_field_service", true); if (U7() == null) { } d15 = this.f138175e.d("contact_info_category2"); if (d15 >= 0) { return; } return; } } this.f138175e.n("contact_info_wechat_account", true); bVar = this.f138179i; if (bVar != null) { } bVar7 = this.f138179i; if (bVar7 != null) { } Log.w("MicroMsg.NewBizInfoMoreInofUI", "has not verify info"); this.f138175e.n("contact_info_verifyuser", true); bVar2 = this.f138179i; if (bVar2 != null) { } Log.w("MicroMsg.NewBizInfoMoreInofUI", "has not trademark info"); this.f138175e.n("contact_info_trademark", true); bVar3 = this.f138179i; if (bVar3 != null) { } this.f138175e.n("contact_info_privilege", true); String stringExtra22 = getIntent().getStringExtra("Contact_BIZ_KF_WORKER_ID"); if (!this.f138185r) { } bVar4 = this.f138179i; if (bVar4 != null) { } this.f138175e.n("contact_info_service_phone", true); bVar5 = this.f138179i; if (bVar5 != null) { } this.f138175e.n("contact_info_reputation", true); this.f138175e.n("contact_info_guarantee_info", true); this.f138175e.n("contact_info_scope_of_business", true); z1 z1Var22 = this.f138176f; Set<String> set22 = w0.f270844a; str2 = ""; if (!str.equals(str2)) { } this.f138175e.n("contact_info_verifyuser_weibo", true); bVar6 = this.f138179i; if (bVar6 != null) { } this.f138175e.n("near_field_service", true); if (U7() == null) { } d15 = this.f138175e.d("contact_info_category2"); if (d15 >= 0) { } } @Override // bg0.n.c public void n5(LinkedList<nu5> linkedList) { bg0.w0.hO0().e(this); if (this.f138175e == null) { Log.e("MicroMsg.NewBizInfoMoreInofUI", "onKFSceneEnd, screen is null"); } else if (this.f138176f == null) { Log.e("MicroMsg.NewBizInfoMoreInofUI", "onKFSceneEnd, contact is null"); } else if (linkedList == null || linkedList.size() <= 0) { Log.w("MicroMsg.NewBizInfoMoreInofUI", "onKFSceneEnd, worker is null"); } else { if (!Util.isNullOrNil(this.f138184q)) { Iterator<nu5> it = linkedList.iterator(); while (it.hasNext()) { nu5 next = it.next(); String str = next.f31342d; if (str != null && str.equals(this.f138184q)) { this.f138175e.n("contact_info_kf_worker", false); this.f138175e.a("contact_info_kf_worker").M(next.f31344f); return; } } } this.f138175e.n("contact_info_kf_worker", false); this.f138175e.a("contact_info_kf_worker").M(linkedList.get(0).f31344f); } } @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, com.tencent.mm.ui.component.UIComponentActivity, com.tencent.mm.ui.MMActivity, com.tencent.mm.hellhoundlib.activities.HellActivity, com.tencent.mm.ui.vas.VASActivity, com.tencent.mm.ui.MMFragmentActivity, com.tencent.mm.ui.base.preference.MMPreference public void onCreate(Bundle bundle) { d40 d402; super.onCreate(bundle); this.f138175e = getPreferenceScreen(); setActionbarColor(getContext().getResources().getColor(R.color.a07)); setMMTitle(R.string.bc9); setTitleDividerVis(false); hideActionbarLine(); setBackBtn(new xr2.a(this)); String nullAsNil = Util.nullAsNil(getIntent().getStringExtra("Contact_User")); String nullAsNil2 = Util.nullAsNil(getIntent().getStringExtra("Contact_Alias")); int intExtra = getIntent().getIntExtra("Contact_VUser_Info_Flag", 0); int intExtra2 = getIntent().getIntExtra("Contact_KWeibo_flag", 0); String stringExtra = getIntent().getStringExtra("Contact_KWeibo"); String stringExtra2 = getIntent().getStringExtra("Contact_KWeiboNick"); z1 z1Var = p3.b().v().get(nullAsNil); this.f138176f = z1Var; if (z1Var == null || ((int) z1Var.V1) == 0 || Util.nullAsNil(z1Var.getUsername()).length() <= 0) { z1 z1Var2 = new z1(); this.f138176f = z1Var2; z1Var2.setUsername(nullAsNil); this.f138176f.Q2(nullAsNil2); this.f138176f.l3(intExtra); this.f138176f.A4(stringExtra); this.f138176f.m3(intExtra2); this.f138176f.n3(stringExtra2); } else if (intExtra != 0) { this.f138176f.l3(intExtra); } this.f138178h = l.b(this.f138176f.getUsername()); byte[] byteArrayExtra = getIntent().getByteArrayExtra("Contact_customInfo"); if (byteArrayExtra == null) { d402 = null; } else { try { d402 = (d40) new d40().parseFrom(byteArrayExtra); } catch (IOException e15) { Log.printErrStackTrace("MicroMsg.NewBizInfoMoreInofUI", e15, "", new Object[0]); } } this.f138177g = d402; this.f138183p = getIntent().getIntExtra("Contact_Scene", 9); this.f138182o = getIntent().getBundleExtra("Contact_Ext_Args"); initView(); } @Override // com.tencent.mm.ui.base.preference.MMPreference public boolean onPreferenceTreeClick(g gVar, Preference preference) { String str; String str2; String str3; String str4; String str5; String str6; String str7; z1 z1Var; int i15; int i16; int i17; Preference a15; c.b w25; String str8; int i18; int i19; String str9 = preference.f177766r; Log.i("MicroMsg.NewBizInfoMoreInofUI", str9 + " item has been clicked!"); if ("contact_info_see_locate".endsWith(str9)) { c.a U7 = U7(); if (U7 == null) { Log.e("MicroMsg.NewBizInfoMoreInofUI", "[onPreferenceTreeClick] info is null, err"); return false; } String str10 = U7.f233083c; Intent intent = new Intent(); intent.putExtra("rawUrl", str10); intent.putExtra("useJs", true); intent.putExtra("vertical_scroll", true); intent.putExtra("geta8key_scene", 3); intent.putExtra("KPublisherId", "brand_profile"); intent.putExtra("prePublishId", "brand_profile"); if ((this.f138182o != null && ((i19 = this.f138183p) == 39 || i19 == 56 || i19 == 35)) || (i18 = this.f138183p) == 87 || i18 == 89 || i18 == 85 || i18 == 88) { Bundle bundle = new Bundle(); bundle.putBoolean("KFromBizSearch", true); bundle.putBundle("KBizSearchExtArgs", this.f138182o); intent.putExtra("jsapiargs", bundle); int i25 = this.f138176f.z3() ? 7 : 6; int identifier = getResources().getIdentifier(U7.f233082b, "string", getPackageName()); String str11 = U7.f233081a; if (identifier > 0) { str11 = getString(identifier); } V7(i25, str11); } sv3.b.j(this, "webview", ".ui.tools.WebViewUI", intent, null); return true; } else if ("contact_info_verifyuser".endsWith(str9)) { c cVar = this.f138178h; if (cVar == null || (w25 = cVar.w2(false)) == null) { return true; } if (w25.n() == null || Util.isNullOrNil(w25.n().f233129d)) { str8 = (w25.h() == null || Util.isNullOrNil(w25.h().f233139b)) ? null : w25.h().f233139b; } else { str8 = w25.n().f233129d; } if (!Util.isNullOrNil(str8)) { Intent intent2 = new Intent(); intent2.putExtra("rawUrl", str8); intent2.putExtra("useJs", true); intent2.putExtra("vertical_scroll", true); intent2.putExtra("geta8key_scene", 3); sv3.b.j(this, "webview", ".ui.tools.WebViewUI", intent2, null); } f.a(this.f138176f.getUsername(), 1200, this.f138183p, 0, getIntent()); return true; } else if ("contact_info_trademark".endsWith(str9)) { c cVar2 = this.f138178h; if (cVar2 == null || cVar2.w2(false) == null || Util.isNullOrNil(cVar2.w2(false).m())) { return true; } Intent intent3 = new Intent(); intent3.putExtra("rawUrl", cVar2.w2(false).m()); intent3.putExtra("useJs", true); intent3.putExtra("vertical_scroll", true); intent3.putExtra("geta8key_scene", 3); sv3.b.j(this, "webview", ".ui.tools.WebViewUI", intent3, null); return true; } else { if (!"contact_info_service_phone".equals(str9) || (a15 = gVar.a("contact_info_service_phone")) == null || a15.y() == null || Util.isNullOrNil(a15.y().toString())) { str5 = "vertical_scroll"; str4 = "geta8key_scene"; str3 = "rawUrl"; str2 = "brand_profile"; str = "KPublisherId"; str6 = "webview"; str7 = "prePublishId"; } else { String charSequence = a15.y().toString(); str5 = "vertical_scroll"; str4 = "geta8key_scene"; str3 = "rawUrl"; str2 = "brand_profile"; str = "KPublisherId"; str6 = "webview"; str7 = "prePublishId"; j.K(this, true, charSequence, "", getString(R.string.bd7), getString(R.string.f367394sg), new xr2.c(this, charSequence), null); } if (str9.startsWith("contact_info_bizinfo_external#") && (i15 = Util.getInt(str9.replace("contact_info_bizinfo_external#", ""), -1)) >= 0 && i15 < this.f138180j.size()) { c.a aVar = this.f138180j.get(i15); String str12 = aVar.f233083c; Intent intent4 = new Intent(); intent4.putExtra(str3, str12); intent4.putExtra("useJs", true); intent4.putExtra(str5, true); intent4.putExtra(str4, 3); intent4.putExtra(str, str2); intent4.putExtra(str7, str2); if ((this.f138182o != null && ((i17 = this.f138183p) == 39 || i17 == 56 || i17 == 35)) || (i16 = this.f138183p) == 87 || i16 == 89 || i16 == 85 || i16 == 88) { Bundle bundle2 = new Bundle(); bundle2.putBoolean("KFromBizSearch", true); bundle2.putBundle("KBizSearchExtArgs", this.f138182o); intent4.putExtra("jsapiargs", bundle2); int i26 = this.f138176f.z3() ? 7 : 6; int identifier2 = getResources().getIdentifier(aVar.f233082b, "string", getPackageName()); String str13 = aVar.f233081a; if (identifier2 > 0) { str13 = getString(identifier2); } V7(i26, str13); } sv3.b.j(this, str6, ".ui.tools.WebViewUI", intent4, null); return true; } else if (str9.equals("contact_info_verifyuser_weibo")) { wr2.a aVar2 = new wr2.a(this); z1 z1Var2 = this.f138176f; aVar2.a(z1Var2.f263311p0, z1Var2.getUsername()); return true; } else { if ("contact_info_guarantee_info".equals(str9) && this.f138179i.f() != null && !Util.isNullOrNil(this.f138179i.f().f233134d)) { Intent intent5 = new Intent(); intent5.putExtra(str3, this.f138179i.f().f233134d); intent5.putExtra("useJs", true); intent5.putExtra(str5, true); intent5.putExtra(str4, 3); sv3.b.j(this, str6, ".ui.tools.WebViewUI", intent5, null); } if (!"contact_info_expose_btn".equals(str9) || (z1Var = this.f138176f) == null || Util.isNullOrNil(z1Var.getUsername())) { return false; } Intent intent6 = new Intent(); intent6.putExtra(str3, String.format(f138174s, this.f138176f.getUsername())); intent6.putExtra("showShare", false); sv3.b.j(this, str6, ".ui.tools.WebViewUI", intent6, null); return false; } } } }