package com.tencent.mm.plugin.collect.ui; import android.os.Bundle; import android.view.MenuItem; import android.view.View; import android.widget.ImageView; import android.widget.RelativeLayout; import com.tencent.mm.R; import com.tencent.mm.sdk.platformtools.LocaleUtil; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.sdk.platformtools.Util; import com.tencent.mm.storage.w1; import com.tencent.mm.wallet_core.model.z0; import com.tencent.mm.wallet_core.ui.c0; import com.tencent.mm.wallet_core.ui.t; import com.tencent.wechat.aff.ting.TingProto; import d60.z; import nf0.u0; import s71.j0; import yf0.y; public class CollectHKMainUI extends CollectMainUI { public boolean G1 = false; public class a implements MenuItem.OnMenuItemClickListener { public a() { } public boolean onMenuItemClick(MenuItem menuItem) { t.S(CollectHKMainUI.this.getContext(), "https://hkwallet.moneydata.hk/hybrid/www/weixin/f2f/zh_hk/faq.shtml", true); return false; } } public class b extends c0 { /* renamed from: g reason: collision with root package name */ public final /* synthetic */ j0 f102612g; public b(j0 j0Var) { this.f102612g = j0Var; } @Override // com.tencent.mm.wallet_core.ui.c0 public void a(View view) { t.S(CollectHKMainUI.this.getContext(), this.f102612g.f299469r, false); } } public class c extends c0 { /* renamed from: g reason: collision with root package name */ public final /* synthetic */ j0 f102614g; public c(j0 j0Var) { this.f102614g = j0Var; } @Override // com.tencent.mm.wallet_core.ui.c0 public void a(View view) { if (!Util.isNullOrNil(this.f102614g.f299472u)) { t.S(CollectHKMainUI.this.getContext(), this.f102614g.f299472u, true); } } } @Override // com.tencent.mm.plugin.collect.ui.CollectMainUI, com.tencent.mm.wallet_core.ui.WalletPreferenceUI public boolean U7(int i15, int i16, String str, y yVar) { if (yVar instanceof j0) { j0 j0Var = (j0) yVar; if (i15 != 0 || i16 != 0) { Log.e("MicroMsg.CollectHKMainUI", "net error: %s", yVar); } else if (j0Var.f299460f == 0) { this.M = j0Var.f299462h; this.N = j0Var.f299473v; this.P = j0Var.f299470s; n8(); if (!Util.isNullOrNil(j0Var.f299468q)) { this.f102616a1.setText(j0Var.f299468q); this.f102619d1.setOnClickListener(new b(j0Var)); this.f102619d1.setVisibility(0); } else { this.f102619d1.setVisibility(8); } if (!Util.isNullOrNil(j0Var.f299471t)) { this.J.setText(j0Var.f299471t); this.J.setOnClickListener(new c(j0Var)); this.I.setVisibility(0); } else { this.I.setVisibility(8); } return true; } if (!this.G1) { return true; } } return false; } @Override // com.tencent.mm.plugin.collect.ui.CollectMainUI public void Z7() { z.h(); this.M = (String) z.s().i().f(w1.a.f175198c9, ""); j0 j0Var = new j0(0, u0.m()); if (!Util.isNullOrNil(this.M)) { T7().d(j0Var, false); return; } Log.i("MicroMsg.CollectHKMainUI", "force load payurl"); this.G1 = true; T7().d(j0Var, true); } @Override // com.tencent.mm.plugin.collect.ui.CollectMainUI public String d8() { if (Util.isNullOrNil(this.P)) { this.P = z0.b(); } return this.P; } @Override // com.tencent.mm.plugin.collect.ui.CollectMainUI public String h8() { return this.N; } @Override // com.tencent.mm.plugin.collect.ui.CollectMainUI public void i8() { ImageView imageView = (ImageView) this.B.findViewById(R.id.f362725c42); ImageView imageView2 = (ImageView) this.B.findViewById(R.id.c3t); RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) imageView2.getLayoutParams(); layoutParams.topMargin = 0; layoutParams.bottomMargin = 0; layoutParams.addRule(13); imageView2.setLayoutParams(layoutParams); if (LocaleUtil.getApplicationLanguage().equals("zh_HK")) { imageView.setImageResource(R.raw.collect_top_logo_hk_traditional); imageView2.setImageResource(R.raw.collect_bottom_logo_hk_traditional); return; } imageView.setImageResource(R.raw.collect_top_logo_hk); imageView2.setImageResource(R.raw.collect_bottom_logo_hk); } @Override // com.tencent.mm.plugin.collect.ui.CollectMainUI public void m8() { super.m8(); if (this.W) { View findViewById = findViewById(R.id.c3d); k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(8); j30.a.d(findViewById, aVar.b(), "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "refreshQRCodeArea", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(findViewById, "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "refreshQRCodeArea", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); return; } View findViewById2 = findViewById(R.id.c3d); k30.a aVar2 = new k30.a(); ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a; aVar2.c(0); j30.a.d(findViewById2, aVar2.b(), "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "refreshQRCodeArea", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById2.setVisibility(((Integer) aVar2.a(0)).intValue()); j30.a.e(findViewById2, "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "refreshQRCodeArea", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } @Override // androidx.core.app.ComponentActivity, androidx.appcompat.app.AppCompatActivity, com.tencent.mm.ui.MMActivity, com.tencent.mm.plugin.collect.ui.CollectMainUI, com.tencent.mm.ui.vas.VASActivity, androidx.activity.ComponentActivity, com.tencent.mm.wallet_core.ui.WalletPreferenceUI, androidx.fragment.app.FragmentActivity, com.tencent.mm.ui.component.UIComponentActivity, com.tencent.mm.hellhoundlib.activities.HellActivity, com.tencent.mm.ui.MMFragmentActivity, com.tencent.mm.ui.base.preference.MMPreference public void onCreate(Bundle bundle) { super.onCreate(bundle); this.f102619d1.setVisibility(8); View findViewById = findViewById(R.id.c3d); k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(0); j30.a.d(findViewById, aVar.b(), "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "onCreate", "(Landroid/os/Bundle;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(findViewById, "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "onCreate", "(Landroid/os/Bundle;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); View findViewById2 = findViewById(R.id.c4j); k30.a aVar2 = new k30.a(); aVar2.c(8); j30.a.d(findViewById2, aVar2.b(), "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "onCreate", "(Landroid/os/Bundle;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); findViewById2.setVisibility(((Integer) aVar2.a(0)).intValue()); j30.a.e(findViewById2, "com/tencent/mm/plugin/collect/ui/CollectHKMainUI", "onCreate", "(Landroid/os/Bundle;)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); T7().c(TingProto.TingReportAction.TingReportAction_ImageCover_ArticleClicked_VALUE); addIconOptionMenu(0, R.drawable.chy, new a()); r8(); } @Override // androidx.appcompat.app.AppCompatActivity, com.tencent.mm.ui.MMActivity, com.tencent.mm.plugin.collect.ui.CollectMainUI, com.tencent.mm.ui.vas.VASActivity, com.tencent.mm.wallet_core.ui.WalletPreferenceUI, androidx.fragment.app.FragmentActivity, com.tencent.mm.ui.component.UIComponentActivity, com.tencent.mm.hellhoundlib.activities.HellActivity, com.tencent.mm.ui.MMFragmentActivity public void onDestroy() { super.onDestroy(); T7().i(TingProto.TingReportAction.TingReportAction_ImageCover_ArticleClicked_VALUE); } }