package com.tencent.mm.plugin.location.ui.impl; import ak.a; import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Looper; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import bw3.fg0; import bw3.pg0; import bw3.tf0; import bw3.uf0; import bw3.vg0; import com.tencent.mm.R; import com.tencent.mm.autogen.events.DoFavoriteEvent; import com.tencent.mm.autogen.events.NotifyWNNoteOperationEvent; import com.tencent.mm.plugin.location.model.LocationInfo; import com.tencent.mm.plugin.location_soso.ViewManager; import com.tencent.mm.plugin.mmsight.segment.FFmpegMetadataRetriever; import com.tencent.mm.plugin.report.service.q; import com.tencent.mm.pluginsdk.ui.tools.b2; import com.tencent.mm.remoteservice.d; import com.tencent.mm.sdk.platformtools.ClipboardHelper; import com.tencent.mm.sdk.platformtools.LocaleUtil; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.MMApplicationContext; import com.tencent.mm.sdk.platformtools.MMHandler; import com.tencent.mm.sdk.platformtools.Util; import com.tencent.mm.sendtowework.LocationData; import com.tencent.mm.ui.o1; import com.tencent.mm.ui.x4; import com.tencent.thumbplayer.tplayer.plugins.report.TPReportKeys; import com.tencent.wxmm.v2helper; import cu3.e0; import cu3.u; import d60.z; import i14.d0; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import mg0.b; import nf0.u0; import p64.g; import p64.w; import qh1.a0; import qh1.b0; import qh1.f1; import qh1.n1; import qh1.q1; import qh1.r; import sd2.i; import t32.q4; import wd2.c; import wd2.t; import wy3.k; import yf0.n; import yf0.y; import yz3.j; import zy.e; import zy.f; public abstract class b1 extends a implements n, k.d { public d A = new d(this.f129739d); public t B; public p64.n C; public boolean D = false; public Serializable E; public boolean F = false; public e0 G = ((e0) j.c(e0.class)).YI0(); public g H; public b.a I = new b1$$j(this); public boolean J = false; public ProgressDialog K = null; public MMHandler L = new MMHandler(Looper.getMainLooper()); public Runnable M = new b1$$k(this); public boolean N = false; public float P = 0.0f; public float Q = 0.0f; /* renamed from: y reason: collision with root package name */ public long f129773y = -1; /* renamed from: z reason: collision with root package name */ public String f129774z = ""; public b1(Activity activity) { super(activity); z.d().a(v2helper.EMethodSetSpkEnhance, this); } public static void t(b1 b1Var, MenuItem menuItem, int i15) { ViewGroup.LayoutParams layoutParams; b1Var.getClass(); HashMap hashMap = new HashMap(); switch (menuItem.getItemId()) { case 0: b1Var.x(); return; case 1: int i16 = b1Var.f129741f; if (i16 == 2 || i16 == 12 || i16 == 13) { b0.d(b1Var.n().getLongExtra("kFavInfoLocalId", -1), 1, 0, -1); } Intent intent = new Intent(); intent.putExtra("Retr_Msg_content", i.b(b1Var.f129742g)); intent.putExtra("Retr_Msg_Type", 9); LocationInfo locationInfo = b1Var.f129742g; if (locationInfo != null) { LocationData locationData = new LocationData(locationInfo.f129562j, locationInfo.f129560h, Double.valueOf(locationInfo.f129558f), Double.valueOf(b1Var.f129742g.f129557e), Double.valueOf((double) b1Var.f129742g.f129559g)); intent.putExtra("content_type_forward_to_wework", 6); intent.putExtra("Select_Data_Send_To_WeWork", locationData); } sv3.b.t(b1Var.f129739d, ".ui.transmit.MsgRetransmitUI", intent, null); ((f1) j.c(f1.class)).Wq(b1Var.n(), b1Var.f129754v, b1Var.f129753u, 3); ((q4) j.c(q4.class)).rl(null, true, false, "forward_button_in_menu_in_poi_page", hashMap); return; case 2: b1Var.B(); return; case 3: double d15 = b1Var.f129742g.f129557e; b1Var.f129739d.setResult(-1, b1Var.v()); b1Var.f129739d.finish(); ((q4) j.c(q4.class)).rl(null, true, false, "fav_button_in_menu_in_poi_page", hashMap); return; case 4: Activity activity = b1Var.f129739d; i14.j.u(activity, activity.getString(R.string.f367416t2), "", new c1(b1Var), null); ((f1) j.c(f1.class)).Wq(b1Var.n(), b1Var.f129754v, b1Var.f129753u, 6); return; case 5: long longExtra = b1Var.n().getLongExtra("kFavInfoLocalId", -1); Intent intent2 = new Intent(); intent2.putExtra("key_fav_item_id", longExtra); intent2.putExtra("key_fav_scene", 2); r.E0(b1Var.f129739d, ".ui.FavTagEditUI", intent2, null); ((f1) j.c(f1.class)).Wq(b1Var.n(), b1Var.f129754v, b1Var.f129753u, 7); return; case 6: Intent intent3 = new Intent(); intent3.putExtra("Retr_Msg_content", i.b(b1Var.f129742g)); intent3.putExtra("Retr_Msg_Id", b1Var.f129773y); sv3.b.t(b1Var.f129739d, ".ui.chatting.ChattingSendDataToDeviceUI", intent3, null); return; case 7: ((f1) j.c(f1.class)).Wq(b1Var.n(), b1Var.f129754v, b1Var.f129753u, 5); try { a0 sb5 = ((bi1.d) ((q1) j.c(q1.class)).mu()).sb(b1Var.n().getLongExtra("kFavInfoLocalId", -1)); q.INSTANCE.g(15378, Integer.valueOf(sb5.field_id), Integer.valueOf(sb5.field_type)); b1Var.w(sb5); b1Var.y(b1Var.f129739d, sb5, true, new pg0()); b1Var.f129739d.finish(); return; } catch (Throwable unused) { a.makeText(b1Var.f129739d, (int) R.string.cco, 0).show(); return; } case 8: Intent v15 = b1Var.v(); DoFavoriteEvent doFavoriteEvent = new DoFavoriteEvent(); ((n1) j.c(n1.class)).wr0(doFavoriteEvent, v15); DoFavoriteEvent.a aVar = doFavoriteEvent.f62174d; aVar.f62184i = b1Var.f129739d; aVar.f62188m = 42; doFavoriteEvent.publish(); return; case 9: b1Var.l(); return; case 10: ClipboardHelper.setText(Util.nullAsNil(b1Var.f129742g.f129562j) + " " + Util.nullAsNil(b1Var.f129742g.f129560h)); a.makeText(b1Var.f129739d, (int) R.string.f367407st, 0).show(); return; case 11: w wVar = new w(b1Var.f129739d); View inflate = LayoutInflater.from(b1Var.f129739d).inflate(R.layout.bso, (ViewGroup) null); ((q4) j.c(q4.class)).rl(inflate, false, true, "poi_info_from_qqmap_guide", null); View findViewById = inflate.findViewById(R.id.c9x); View findViewById2 = inflate.findViewById(R.id.bys); View findViewById3 = inflate.findViewById(R.id.h5n); TextView textView = (TextView) inflate.findViewById(R.id.obc); findViewById2.setOnClickListener(new b1$$g(wVar)); findViewById.setOnClickListener(new b1$$h(wVar)); float p15 = gy3.a.p(b1Var.f129739d); if (!(p15 == 1.0f || (layoutParams = findViewById3.getLayoutParams()) == null)) { int dimension = (int) (b1Var.f129739d.getResources().getDimension(R.dimen.f359104df) * p15); layoutParams.width = dimension; layoutParams.height = dimension; findViewById3.setLayoutParams(layoutParams); } x4.m0(textView.getPaint(), 0.8f); wVar.k(inflate); wVar.p(); ((q4) j.c(q4.class)).rl(null, true, false, "click_report_addr_in_menu_in_poi_page", hashMap); return; case 12: long longExtra2 = b1Var.n().getLongExtra("kFavOriginFavInfoLocalId", -1); String stringExtra = b1Var.n().getStringExtra("KFavOriginDataId"); if (longExtra2 < 0 || Util.isNullOrNil(stringExtra)) { Log.w("MicroMsg.ViewMapUI", "favLocalId < 0 || Util.isNullOrNil(detailDataId)"); return; } a0 sb6 = ((bi1.d) ((q1) j.c(q1.class)).mu()).sb(longExtra2); if (sb6 == null) { Log.w("MicroMsg.ViewMapUI", "goFavDetails() favItemInfo is null"); return; } StringBuilder sb7 = new StringBuilder(); String str = sb6.field_id + "_" + (System.currentTimeMillis() / 1000); LinkedList<String> linkedList = sb6.field_tagProto.f19322e; if (!Util.isNullOrNil(linkedList)) { for (String str2 : linkedList) { sb7.append(str2); sb7.append(";"); } } pg0 pg02 = new pg0(); pg02.f32998d = 9; pg02.f32999e = 0; pg02.f33002h = ""; pg02.f33001g = str; pg02.f33003i = sb7.toString(); sb6.f289520c1 = stringExtra; ((qh1.b1) j.c(qh1.b1.class)).vA(b1Var.f129752t.getContext(), sb6, pg02); return; default: return; } } public final void A() { boolean q15 = q(); boolean z15 = true; if (q15) { p64.n nVar = new p64.n((Context) this.f129739d, 0, false); this.C = nVar; int i15 = this.f129741f; if (i15 == 2 || i15 == 12 || i15 == 13) { nVar.f281247j = new b1$$a(this); } else { nVar.f281247j = new b1$$b(this); } nVar.f281263s = new b1$$c(this); nVar.f281259q = new b1$$c(this); if (!this.F) { String str = this.f129742g.f129565p; if (str == null || !str.startsWith("UgcPoiEx_")) { z15 = false; } if (!z15) { this.G.qt0(this.f129739d, this.C, 1, null, new b1$$d(this)); } } } else { p64.n nVar2 = new p64.n((Context) this.f129739d, 1, false); this.C = nVar2; nVar2.f281259q = new b1$$c(this); } this.C.f281245i = new b1$$e(this, q15); } public void B() { double d15 = this.f129742g.f129557e; double d16 = this.f129742g.f129558f; double d17 = this.f129743h.f129557e; double d18 = this.f129743h.f129558f; if (this.f129743h.a()) { H(); return; } q.INSTANCE.g(12809, 3, ""); this.J = true; MMHandler mMHandler = this.L; if (mMHandler != null) { Runnable runnable = this.M; if (runnable != null) { mMHandler.removeCallbacks(runnable); } this.L.postDelayed(this.M, 10000); Activity activity = this.f129739d; this.K = i14.j.Q(activity, activity.getString(R.string.f367625yv), this.f129739d.getString(R.string.fry), true, true, new b1$$l(this)); } } public abstract void C(); public final void D(d0 d0Var) { if (n().getBooleanExtra("kFavCanRemark", true)) { d0Var.g(9, this.f129739d.getString(R.string.guk), R.raw.icons_outlined_pencil); } if (n().getBooleanExtra("kFavCanDel", true)) { d0Var.k(7, this.f129739d.getString(R.string.ccm), R.raw.icons_outlined_pencil, this.F); d0Var.g(5, this.f129739d.getString(R.string.ca5), R.raw.fav_tags_icon); d0Var.g(4, this.f129739d.getString(R.string.f367414t0), R.raw.icons_outlined_delete); int intExtra = n().getIntExtra("kFavShowIconType", 0); Log.i("MicroMsg.ViewMapUI", "[onCreateFavMenu], showIcon type = " + intExtra); if (intExtra == 2) { d0Var.c(0, 12, 0, gy3.a.q(this.f129739d, R.string.f368058cb0), R.raw.icons_outlined_chats); } if (intExtra == 1) { d0Var.c(0, 12, 0, gy3.a.q(this.f129739d, R.string.f368058cb0), R.raw.note_filled); } } } public void E() { } public abstract void F(); public void G(double d15, double d16, int i15, double d17) { } public void H() { } @Override // xd2.b public boolean b(MotionEvent motionEvent) { int action = motionEvent.getAction(); if (action == 0) { this.P = motionEvent.getX(); this.Q = motionEvent.getY(); System.currentTimeMillis(); this.N = false; E(); } else if (action == 1) { if (!this.N) { System.currentTimeMillis(); } F(); } else if (action == 2 && (Math.abs(motionEvent.getX() - this.P) > 10.0f || Math.abs(motionEvent.getY() - this.Q) > 10.0f)) { this.N = true; C(); } return false; } @Override // xd2.b public void c(int i15, int i16, Intent intent) { String str; String str2; if (-1 == i16) { if (4096 == i15) { if (this.f129744i.f129767i != null) { CharSequence charSequenceExtra = intent.getCharSequenceExtra("key_result"); if (charSequenceExtra == null) { str2 = ""; } else { str2 = charSequenceExtra.toString(); } this.f129747o = str2; r(); } } else if (4100 == i15 && this.f129744i.f129768j != null) { this.f129749q = intent.getStringArrayListExtra("key_fav_result_list"); r(); } } if (i15 == 4098 || i15 == 4099) { c cVar = this.f129740e; cVar.getClass(); if (i15 != 4098) { if (i15 == 4099 && -1 == i16 && intent != null) { String stringExtra = intent.getStringExtra("selectpkg"); Intent intent2 = new Intent((Intent) intent.getBundleExtra("transferback").getParcelable("targetintent")); intent2.setPackage(stringExtra); intent2.addFlags(524288); Context context = cVar.f332175a; k30.a aVar = new k30.a(); aVar.c(intent2); j30.a.d(context, aVar.b(), "com/tencent/mm/plugin/location/ui/MapHelper", "onActivityResult", "(IILandroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); context.startActivity((Intent) aVar.a(0)); j30.a.e(context, "com/tencent/mm/plugin/location/ui/MapHelper", "onActivityResult", "(IILandroid/content/Intent;)V", "Undefined", "startActivity", "(Landroid/content/Intent;)V"); } } else if (-1 == i16 && intent != null) { String stringExtra2 = intent.getStringExtra("selectpkg"); Bundle bundleExtra = intent.getBundleExtra("transferback"); boolean booleanExtra = intent.getBooleanExtra("isalways", false); ArrayList parcelableArrayList = bundleExtra.getParcelableArrayList("locations"); cVar.e((LocationInfo) parcelableArrayList.get(0), (LocationInfo) parcelableArrayList.get(1), stringExtra2, booleanExtra); } else if (4097 == i16) { if (intent.getBooleanExtra("isalways", false)) { q.INSTANCE.g(11091, 6, 2); } else { q.INSTANCE.g(11091, 6, 1); } ArrayList parcelableArrayList2 = intent.getBundleExtra("transferback").getParcelableArrayList("locations"); LocationInfo locationInfo = (LocationInfo) parcelableArrayList2.get(0); LocationInfo locationInfo2 = (LocationInfo) parcelableArrayList2.get(1); if (Util.isNullOrNil(locationInfo.f129561i)) { str = "zh-cn"; } else { str = locationInfo.f129561i; } Intent intent3 = new Intent("android.intent.action.VIEW", Uri.parse(String.format("http://maps.google.com/maps?f=d&saddr=%f,%f&daddr=%f,%f&hl=" + str, Double.valueOf(locationInfo2.f129557e), Double.valueOf(locationInfo2.f129558f), Double.valueOf(locationInfo.f129557e), Double.valueOf(locationInfo.f129558f)))); Bundle bundle = new Bundle(); bundle.putParcelable("targetintent", intent3); Intent intent4 = new Intent(); intent4.setClassName(cVar.f332175a, "com.tencent.mm.pluginsdk.ui.tools.AppChooserUI"); intent4.putExtra("type", 1); intent4.putExtra(FFmpegMetadataRetriever.METADATA_KEY_TITLE, cVar.f332175a.getResources().getString(R.string.ggk)); intent4.putExtra("targetintent", intent3); intent4.putExtra("transferback", bundle); intent4.putExtra(TPReportKeys.PlayerStep.PLAYER_BUFFERING_SCENE, 6); Activity activity = (Activity) cVar.f332175a; k30.a aVar2 = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar2.c(4099); aVar2.c(intent4); j30.a.j(activity, aVar2.b(), "com/tencent/mm/plugin/location/ui/MapHelper", "webMap", "(Lcom/tencent/mm/plugin/location/model/LocationInfo;Lcom/tencent/mm/plugin/location/model/LocationInfo;)V", "android/app/Activity", "startActivityForResult", "(Landroid/content/Intent;I)V"); } } } @Override // xd2.b public void e(Bundle bundle) { this.f129755w = ((lt.c) j.c(lt.c.class)).Zv(); LocationInfo locationInfo = this.f129743h; LocationInfo locationInfo2 = this.f129742g; String currentLanguage = LocaleUtil.getCurrentLanguage(this.f129739d); locationInfo2.f129561i = currentLanguage; locationInfo.f129561i = currentLanguage; u.f(this.f129739d); this.f129739d.requestWindowFeature(1); this.f129739d.setContentView(o()); o1.c(this.f129739d); FrameLayout frameLayout = (FrameLayout) m(R.id.jbp); this.f129752t = l.VN0(this.f129739d); if ((this instanceof s0) || ((k) j.c(k.class)).Gk(k.b.f335816f, null)) { frameLayout.addView(this.f129752t); } if (x4.B()) { this.f129752t.enableDarkMode(); } else { this.f129752t.disableDarkMode(); } this.f129740e = new c(this.f129739d); this.f129744i = new a$$c(this); this.f129747o = n().getStringExtra("kRemark"); this.f129749q = n().getStringArrayListExtra("kTags"); this.f129741f = n().getIntExtra("map_view_type", 0); this.f129753u = System.currentTimeMillis(); this.f129754v = ((f1) j.c(f1.class)).getSearchId(); this.E = n().getSerializableExtra("key_from_type"); double doubleExtra = n().getDoubleExtra("kwebmap_slat", 0.0d); double doubleExtra2 = n().getDoubleExtra("kwebmap_lng", 0.0d); Log.i("MicroMsg.ViewMapUI", "start dslat " + doubleExtra + " " + doubleExtra2); int intExtra = n().getIntExtra("kwebmap_scale", 15); this.f129750r = intExtra; if (intExtra <= 0) { this.f129750r = 15; } this.f129748p = n().getStringExtra("kPoiName"); String stringExtra = n().getStringExtra("Kwebmap_locaion"); LocationInfo locationInfo3 = this.f129742g; locationInfo3.f129557e = doubleExtra; locationInfo3.f129558f = doubleExtra2; locationInfo3.f129560h = stringExtra; locationInfo3.f129559g = this.f129750r; locationInfo3.f129562j = this.f129748p; locationInfo3.f129566q = n().getBooleanExtra("KIsFromPoiList", false); this.f129742g.f129567r = n().getStringExtra("KPoiCategoryTips"); this.f129742g.f129568s = n().getStringExtra("kPoiBusinessHour"); this.f129742g.f129569t = n().getStringExtra("KPoiPhone"); this.f129742g.f129570u = n().getFloatExtra("KPoiPriceTips", 0.0f); this.f129742g.f129565p = n().getStringExtra("kPoiid"); this.f129742g.f129571v = n().getStringExtra("kBuildingID"); this.f129742g.f129571v = n().getStringExtra("kFloorName"); this.f129773y = n().getLongExtra("kMsgId", -1); this.f129751s = n().getStringExtra("map_talker_name"); this.f129744i.f129766h = (LinearLayout) m(R.id.gy8); a$$c a__c = this.f129744i; a__c.f129764f = this.f129752t; a__c.f129759a = (RelativeLayout) m(R.id.f364816oa0); this.f129744i.f129760b = (ImageView) m(R.id.obw); this.f129744i.f129761c = (ImageButton) m(R.id.oby); this.f129744i.f129762d = m(R.id.obz); this.f129744i.f129763e = (TextView) m(R.id.f361647fu); this.f129744i.f129765g = (TextView) m(R.id.f364016jl4); this.f129744i.f129764f.getIController().setZoom(15); int i15 = this.f129741f; if (!(i15 == 0 || i15 == 3)) { this.f129744i.f129761c.setVisibility(0); View view = this.f129744i.f129762d; k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(8); j30.a.d(view, aVar.b(), "com/tencent/mm/plugin/location/ui/impl/BaseMapUI", "initView", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(view, "com/tencent/mm/plugin/location/ui/impl/BaseMapUI", "initView", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); this.f129744i.f129761c.setEnabled(false); this.f129744i.f129761c.setImageResource(R.raw.icons_outlined_more); } this.f129744i.f129764f.setBuiltInZoomControls(false); this.f129744i.f129760b.setOnClickListener(new c(this)); this.f129744i.f129763e.setOnClickListener(new d(this)); z(); s(MMApplicationContext.getResources().getColor(R.color.a9e)); this.f129744i.f129764f.setMapAnchor(0.5f, 0.5f); } @Override // xd2.b public void f() { this.A.d(); this.L.removeCallbacks(this.M); this.L = null; z.d().p(v2helper.EMethodSetSpkEnhance, this); g gVar = this.H; if (gVar != null && gVar.isShowing()) { this.H.dismiss(); this.H = null; } ProgressDialog progressDialog = this.K; if (progressDialog != null) { progressDialog.dismiss(); this.K = null; } this.f129746n.a(this.f129756x); this.f129745j.clear(); this.f129744i.f129764f.destroy(); System.gc(); } @Override // xd2.b public boolean g(int i15, KeyEvent keyEvent) { p64.n nVar = this.C; if (nVar == null || !nVar.h()) { A(); this.C.q(); return true; } this.C.p(); return true; } @Override // com.tencent.mm.plugin.location.ui.impl.a public void j() { Intent intent = new Intent(); this.f129740e.getClass(); intent.putExtra("kopenGmapNums", 0); this.f129740e.getClass(); intent.putExtra("kopenOthersNums", 0); this.f129740e.getClass(); intent.putExtra("kopenreportType", -1); intent.putExtra("kRemark", Util.nullAs(this.f129747o, "")); intent.putExtra("soso_street_view_url", this.f129774z); this.f129739d.setResult(-1, intent); } @Override // com.tencent.mm.plugin.location.ui.impl.a public void k() { } @Override // yf0.n public void onSceneEnd(int i15, int i16, String str, y yVar) { yVar.getType(); if (yVar.getType() != 424) { Log.e("MicroMsg.ViewMapUI", "msg failed.errtype:%d, errcode:%d", Integer.valueOf(i15), Integer.valueOf(i16)); } else if (i16 == 0 && i15 == 0) { f fVar = (f) j.c(f.class); ((e) yVar).f(); throw null; } } public boolean u(LocationInfo locationInfo) { if (this.f129744i.f129764f.getIController() == null || !i.d(locationInfo.f129557e, locationInfo.f129558f)) { return false; } this.f129744i.f129764f.getIController().animateTo(locationInfo.f129557e, locationInfo.f129558f); return true; } public final Intent v() { Intent intent = new Intent(); intent.putExtra("kfavorite", true); this.f129740e.getClass(); intent.putExtra("kopenGmapNums", 0); this.f129740e.getClass(); intent.putExtra("kopenOthersNums", 0); this.f129740e.getClass(); intent.putExtra("kopenreportType", -1); intent.putExtra("kRemark", Util.nullAs(this.f129747o, "")); intent.putExtra("kwebmap_slat", this.f129742g.f129557e); intent.putExtra("kwebmap_lng", this.f129742g.f129558f); intent.putExtra("Kwebmap_locaion", this.f129742g.f129560h); intent.putExtra("kPoiName", this.f129748p); intent.putExtra("kPoiid", this.f129742g.f129565p); intent.putExtra("KIsFromPoiList", this.f129742g.f129566q); intent.putExtra("KPoiCategoryTips", this.f129742g.f129567r); intent.putExtra("kPoiBusinessHour", this.f129742g.f129568s); intent.putExtra("KPoiPhone", this.f129742g.f129569t); intent.putExtra("KPoiPriceTips", this.f129742g.f129570u); intent.putExtra("kBuildingID", this.f129742g.f129571v); intent.putExtra("kFloorName", this.f129742g.f129572w); return intent; } public final void w(a0 a0Var) { a0Var.field_flag = 0; a0Var.field_updateTime = System.currentTimeMillis(); a0Var.field_localId = -1; a0Var.field_sourceType = 6; vg0 vg02 = a0Var.field_favProto.f30859d; if (vg02 != null) { vg02.r(""); a0Var.field_favProto.f30859d.q(6); a0Var.field_favProto.f30859d.g(u0.r()); } a0Var.field_fromUser = u0.r(); LinkedList<tf0> linkedList = new LinkedList<>(); tf0 tf02 = new tf0(); uf0 uf02 = new uf0(); uf02.f38614e = a0Var.field_favProto.f30863h; tf02.f37494f1 = uf02; tf02.X("WeNote_0"); tf02.M(6); linkedList.add(0, tf02); a0Var.field_favProto.f(linkedList); a0Var.field_type = 18; a0Var.field_xml = a0.A2(a0Var); } public void x() { if (this.D) { b2.a(((dx.j) j.c(dx.j.class)).QC0()); Intent intent = new Intent(); intent.putExtra("show_bottom", false); intent.putExtra("jsapi_args_appid", "wx751a1acca5688ba3"); intent.putExtra("rawUrl", this.f129774z); intent.putExtra(FFmpegMetadataRetriever.METADATA_KEY_TITLE, R.string.i9h); intent.putExtra("webview_bg_color_rsID", R.color.f358135f3); sv3.b.j(this.f129739d, "webview", "com.tencent.mm.plugin.webview.ui.tools.WebViewUI", intent, null); } } public final void y(Context context, a0 a0Var, boolean z15, pg0 pg02) { NotifyWNNoteOperationEvent notifyWNNoteOperationEvent = new NotifyWNNoteOperationEvent(); NotifyWNNoteOperationEvent.a aVar = notifyWNNoteOperationEvent.f63696d; aVar.field_localId = a0Var.field_localId; aVar.f63708k = 5; aVar.f63699b = a0Var.field_xml; aVar.f63701d = context; Bundle bundle = new Bundle(); fg0 fg02 = a0Var.field_favProto.G; if (fg02 != null) { bundle.putString("noteauthor", fg02.f21607d); bundle.putString("noteeditor", fg02.f21608e); } bundle.putLong("edittime", a0Var.field_updateTime); NotifyWNNoteOperationEvent.a aVar2 = notifyWNNoteOperationEvent.f63696d; aVar2.f63705h = bundle; aVar2.field_favProto = a0Var.field_favProto; aVar2.f63698a = 2; aVar2.f63709l = z15; aVar2.f63710m = pg02; notifyWNNoteOperationEvent.publish(); } public void z() { Serializable serializable; boolean z15 = true; this.f129744i.f129763e.setEnabled(true); boolean z16 = q() && n().getIntExtra("intent_map_key", -1) == 4 && ((serializable = this.E) == q4.a.f309629e || serializable == q4.a.f309628d); this.F = z16; if (!z16) { u(this.f129742g); } this.f129744i.f129764f.getIController().setZoom(this.f129750r); this.f129744i.f129761c.setEnabled(true); if (n().getBooleanExtra("kShowshare", true)) { this.f129744i.f129761c.setVisibility(0); } else { this.f129744i.f129761c.setVisibility(8); } String stringExtra = n().getStringExtra("soso_street_view_url"); this.f129774z = stringExtra; if (!Util.isNullOrNil(stringExtra) && (LocaleUtil.isTraditionalChineseAppLang() || LocaleUtil.isSimplifiedChineseAppLang())) { this.D = true; } else if (LocaleUtil.isTraditionalChineseAppLang() || LocaleUtil.isSimplifiedChineseAppLang()) { this.D = false; } this.f129744i.f129761c.setOnClickListener(new b1$$i(this)); t tVar = new t(this.f129744i.f129764f, this.f129739d, false); this.B = tVar; ViewManager viewManager = tVar.f332298p; if (viewManager != null) { viewManager.addView(tVar.f332294i, 0.0d, 0.0d); tVar.f332298p.setMarkerTag(tVar.f332294i, "info_window_tag"); } if (!this.F) { t tVar2 = this.B; LocationInfo locationInfo = this.f129742g; tVar2.getClass(); tVar2.f332290e = locationInfo.f129557e; tVar2.f332291f = locationInfo.f129558f; LocationInfo locationInfo2 = this.f129742g; if (!i.d(locationInfo2.f129557e, locationInfo2.f129558f)) { LocationInfo locationInfo3 = this.f129742g; double d15 = locationInfo3.f129557e; double d16 = locationInfo3.f129558f; t tVar3 = this.B; tVar3.f332289d = false; tVar3.f332295j.setVisibility(8); } } if (2 == this.f129741f) { Log.i("MicroMsg.ViewMapUI", "location id %s", this.f129742g.f129556d); if (n().getBooleanExtra("kFavCanRemark", true) && !q()) { this.f129744i.f129759a.removeAllViews(); View inflate = View.inflate(this.f129739d, R.layout.bsm, null); this.f129744i.f129759a.addView(inflate, new LinearLayout.LayoutParams(-1, -2)); this.f129744i.f129767i = (TextView) inflate.findViewById(R.id.inq); this.f129744i.f129767i.setOnClickListener(new a$$a(this)); this.f129744i.f129768j = (TextView) inflate.findViewById(R.id.inv); this.f129744i.f129768j.setOnClickListener(new b(this)); r(); } if (!Util.isNullOrNil(this.f129742g.f129560h)) { this.f129744i.f129759a.setVisibility(0); } } this.f129745j.put(this.f129742g.f129556d, this.B); LocationInfo locationInfo4 = this.f129742g; if (Util.isNullOrNil(locationInfo4.f129560h) && Util.isNullOrNil(locationInfo4.f129562j)) { z15 = false; } if (z15) { String str = this.f129748p; if (str != null && !str.equals("")) { this.B.f332297o = this.f129748p; } t tVar4 = this.B; StringBuilder sb5 = new StringBuilder(); this.B.getClass(); sb5.append(""); sb5.append(this.f129742g.f129560h); tVar4.setText(sb5.toString()); } else { LocationInfo locationInfo5 = this.f129742g; if (i.d(locationInfo5.f129557e, locationInfo5.f129558f)) { LocationInfo locationInfo6 = this.f129742g; lt.d dVar = new lt.d(locationInfo6.f129557e, locationInfo6.f129558f); dVar.f254763f = locationInfo6.f129556d; this.f129746n.b(dVar, this.f129756x); } } this.B.getClass(); } }