package com.tencent.mm.plugin.game.ui.message; import android.content.Context; import android.content.DialogInterface; import android.view.MenuItem; import android.view.View; import com.tencent.mm.R; import com.tencent.mm.game.report.g; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.Util; import com.tencent.wechat.aff.ting.TingProto; import i14.d0; import i14.l0; import i14.p0; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import l92.m3; import l92.u1; import n72.q; import p64.g; import p64.n; import yz3.j; public class e implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ GameMsgCenterUI f127238d; public class a implements l0 { public a() { } @Override // i14.l0 public void onCreateMMMenu(d0 d0Var) { if (e.this.f127238d.f127198r == 0) { d0Var.a(0, R.string.flb); return; } d0Var.a(1, R.string.fop); d0Var.a(2, R.string.fld); } } public class b implements p0 { public class a implements DialogInterface.OnClickListener { public a(b bVar) { } public void onClick(DialogInterface dialogInterface, int i15) { } } /* renamed from: com.tencent.mm.plugin.game.ui.message.e$b$b reason: collision with other inner class name */ public class DialogInterface$OnCancelListenerC1289b implements DialogInterface.OnCancelListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ HashMap f127241d; public DialogInterface$OnCancelListenerC1289b(HashMap hashMap) { this.f127241d = hashMap; } public void onCancel(DialogInterface dialogInterface) { this.f127241d.put("tab", "1"); this.f127241d.put("actionstatus", "1"); g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 2, 2, e.this.f127238d.f127188e, g.b(this.f127241d)); } } public class c implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ HashMap f127243d; public c(HashMap hashMap) { this.f127243d = hashMap; } public void onClick(DialogInterface dialogInterface, int i15) { ((q) j.c(q.class)).lw0().fb(1); c cVar = e.this.f127238d.f127194n; if (cVar != null) { cVar.a(); } this.f127243d.put("tab", "1"); this.f127243d.put("actionstatus", "2"); g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 2, 2, e.this.f127238d.f127188e, g.b(this.f127243d)); } } public class d implements DialogInterface.OnCancelListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ HashMap f127245d; public d(HashMap hashMap) { this.f127245d = hashMap; } public void onCancel(DialogInterface dialogInterface) { this.f127245d.put("tab", "2"); this.f127245d.put("actionstatus", "1"); g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 2, 2, e.this.f127238d.f127188e, g.b(this.f127245d)); } } /* renamed from: com.tencent.mm.plugin.game.ui.message.e$b$e reason: collision with other inner class name */ public class DialogInterface$OnClickListenerC1290e implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ HashMap f127247d; public DialogInterface$OnClickListenerC1290e(HashMap hashMap) { this.f127247d = hashMap; } public void onClick(DialogInterface dialogInterface, int i15) { ((q) j.c(q.class)).lw0().fb(2); j jVar = e.this.f127238d.f127195o; if (jVar != null) { jVar.a(); } this.f127247d.put("tab", "2"); this.f127247d.put("actionstatus", "2"); g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 2, 2, e.this.f127238d.f127188e, g.b(this.f127247d)); } } public b() { } @Override // i14.p0 public void onMMMenuItemSelected(MenuItem menuItem, int i15) { u1 u1Var; String str; Log.i("MicroMsg.GameMsgCenterUI", "bottomSheet itemId:%d", Integer.valueOf(menuItem.getItemId())); g.i iVar = new g.i(e.this.f127238d.getContext()); iVar.f281189b.A = false; iVar.d(R.string.f367394sg); iVar.f281189b.F = new a(this); HashMap hashMap = new HashMap(); int itemId = menuItem.getItemId(); if (itemId == 0) { iVar.c(R.string.flc); iVar.e(R.string.f367399sl); c cVar = new c(hashMap); p64.a aVar = iVar.f281189b; aVar.E = cVar; aVar.G = new DialogInterface$OnCancelListenerC1289b(hashMap); iVar.a().show(); hashMap.put("tab", "1"); hashMap.put("actionstatus", "2"); com.tencent.mm.game.report.g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 1, 2, e.this.f127238d.f127188e, com.tencent.mm.game.report.g.b(hashMap)); } else if (itemId == 1) { if (com.tencent.mm.plugin.game.commlib.c.e() != null) { u1Var = com.tencent.mm.plugin.game.commlib.c.f125069a.GeneralJumpInfo; } else { com.tencent.mm.plugin.game.commlib.c.q(); u1Var = null; } if (u1Var != null && !Util.isNullOrNil(u1Var.f251726d)) { Iterator<m3> it = u1Var.f251726d.iterator(); while (true) { if (!it.hasNext()) { break; } m3 next = it.next(); if (next.f251553d == 1 && !Util.isNullOrNil(next.f251555f)) { str = next.f251555f; break; } } q92.c.s(e.this.f127238d.getContext(), str); hashMap.put("tab", "2"); hashMap.put("actionstatus", "1"); com.tencent.mm.game.report.g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 1, 2, e.this.f127238d.f127188e, com.tencent.mm.game.report.g.b(hashMap)); } str = "https://game.weixin.qq.com/cgi-bin/h5/static/gamecenter/subscription_list.html?wechat_pkgid=gamecenter_subscription_list&ssid=5"; q92.c.s(e.this.f127238d.getContext(), str); hashMap.put("tab", "2"); hashMap.put("actionstatus", "1"); com.tencent.mm.game.report.g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 1, 2, e.this.f127238d.f127188e, com.tencent.mm.game.report.g.b(hashMap)); } else if (itemId == 2) { iVar.c(R.string.fle); iVar.e(R.string.f367399sl); DialogInterface$OnClickListenerC1290e eVar = new DialogInterface$OnClickListenerC1290e(hashMap); p64.a aVar2 = iVar.f281189b; aVar2.E = eVar; aVar2.G = new d(hashMap); iVar.a().show(); hashMap.put("tab", "2"); hashMap.put("actionstatus", "2"); com.tencent.mm.game.report.g.c(e.this.f127238d.getContext(), 13, TingProto.TingReportAction.TingReportAction_Comment_VALUE, 1, 2, e.this.f127238d.f127188e, com.tencent.mm.game.report.g.b(hashMap)); } } } public e(GameMsgCenterUI gameMsgCenterUI) { this.f127238d = gameMsgCenterUI; } public void onClick(View view) { ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/game/ui/message/GameMsgCenterUI$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); n nVar = new n((Context) this.f127238d.getContext(), 1, false); nVar.f281245i = new a(); nVar.f281259q = new b(); nVar.q(); j30.a.g(this, "com/tencent/mm/plugin/game/ui/message/GameMsgCenterUI$2", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } }