package ct1; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.text.InputFilter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.ViewParent; import android.view.Window; import android.widget.Button; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.ScrollView; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import bw3.kn0; import bw3.wd1; import bw3.x12; import bw3.zk1; import com.tencent.mm.R; import com.tencent.mm.autogen.mmdata.rpt.LiveAudienceCommodityLogStruct; import com.tencent.mm.plugin.finder.utils.a5; import com.tencent.mm.protocal.protobuf.FinderContact; 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.storage.w1; import com.tencent.mm.storage.z1; import com.tencent.mm.ui.MMActivity; import com.tencent.mm.ui.component.UIComponent; import com.tencent.mm.ui.tools.KeyboardHeightProvider; import com.tencent.mm.ui.tools.q0; import com.tencent.mm.ui.tools.u0; import com.tencent.mm.ui.widget.MMEditText; import com.tencent.mm.ui.widget.MMSwitchBtn; import com.tencent.mm.ui.widget.imageview.WeImageView; import com.tencent.tinker.loader.hotplug.EnvConsts; import cs1.f0; import dj1.a; import ek0.v2; import ek0.w2; import ek0.x2; import i14.y0; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.LinkedList; import java.util.List; import t32.e2; import tt1.h0; import tt1.v0; public final class i extends UIComponent implements yf0.n { public final wg4.g A; public final wg4.g B; public final wg4.g C; public final wg4.g D; public final wg4.g E; public final wg4.g F; public final wg4.g G; public final wg4.g H; public final wg4.g I; public final wg4.g J; public final wg4.g K; public final wg4.g L; public final wg4.g M; public final wg4.g N; public final wg4.g P; public final wg4.g Q; public int R; public zk1 S; public a T; public final int T0; public final String U; public KeyboardHeightProvider U0; public p64.i0 V; public int V0; public FinderContact W; public final float W0; public x12 X; public final float X0; public boolean Y; public final float Y0; public boolean Z; public final float Z0; /* renamed from: a1 reason: collision with root package name */ public final float f193725a1; /* renamed from: b1 reason: collision with root package name */ public final int f193726b1; /* renamed from: c1 reason: collision with root package name */ public final int f193727c1; /* renamed from: d reason: collision with root package name */ public final String f193728d = "FinderLiveNoticeUIC"; /* renamed from: d1 reason: collision with root package name */ public int f193729d1; /* renamed from: e reason: collision with root package name */ public final wg4.g f193730e; /* renamed from: e1 reason: collision with root package name */ public boolean f193731e1; /* renamed from: f reason: collision with root package name */ public final wg4.g f193732f; /* renamed from: g reason: collision with root package name */ public final wg4.g f193733g; /* renamed from: h reason: collision with root package name */ public final wg4.g f193734h; /* renamed from: i reason: collision with root package name */ public final wg4.g f193735i; /* renamed from: j reason: collision with root package name */ public final wg4.g f193736j; /* renamed from: n reason: collision with root package name */ public final wg4.g f193737n; /* renamed from: o reason: collision with root package name */ public final wg4.g f193738o; /* renamed from: p reason: collision with root package name */ public final wg4.g f193739p; /* renamed from: p0 reason: collision with root package name */ public boolean f193740p0; /* renamed from: q reason: collision with root package name */ public final wg4.g f193741q; /* renamed from: r reason: collision with root package name */ public final wg4.g f193742r; /* renamed from: s reason: collision with root package name */ public final wg4.g f193743s; /* renamed from: t reason: collision with root package name */ public final wg4.g f193744t; /* renamed from: u reason: collision with root package name */ public final wg4.g f193745u; /* renamed from: v reason: collision with root package name */ public final wg4.g f193746v; /* renamed from: w reason: collision with root package name */ public final wg4.g f193747w; /* renamed from: x reason: collision with root package name */ public final wg4.g f193748x; /* renamed from: x0 reason: collision with root package name */ public boolean f193749x0; /* renamed from: y reason: collision with root package name */ public final wg4.g f193750y; /* renamed from: y0 reason: collision with root package name */ public int f193751y0; /* renamed from: z reason: collision with root package name */ public final wg4.g f193752z; public final class a { /* renamed from: a reason: collision with root package name */ public String f193753a = ""; /* renamed from: b reason: collision with root package name */ public String f193754b = ""; /* JADX WARN: Incorrect args count in method signature: ()V */ public a(i iVar) { } } public static final class a0 implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ i f193755d; public static final class a implements u0 { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ i f193756d; public a(i iVar) { this.f193756d = iVar; } @Override // com.tencent.mm.ui.tools.u0 public final void K1(int i15, boolean z15) { boolean z16; ViewGroup.LayoutParams layoutParams; LinearLayout.LayoutParams layoutParams2; ViewGroup.LayoutParams layoutParams3; LinearLayout.LayoutParams layoutParams4; ViewGroup.LayoutParams layoutParams5; RelativeLayout.LayoutParams layoutParams6; ViewGroup.LayoutParams layoutParams7; RelativeLayout.LayoutParams layoutParams8; ViewParent viewParent; Log.i(this.f193756d.f193728d, "onKeyboardHeightChanged, height:" + i15 + ", isResized:" + z15); i iVar = this.f193756d; if (i15 > 0) { z16 = true; } else { z16 = false; } TextView m55 = iVar.m5(); ViewGroup viewGroup = null; if (m55 != null) { layoutParams = m55.getLayoutParams(); } else { layoutParams = null; } if (layoutParams instanceof LinearLayout.LayoutParams) { layoutParams2 = (LinearLayout.LayoutParams) layoutParams; } else { layoutParams2 = null; } TextView p55 = iVar.p5(); if (p55 != null) { layoutParams3 = p55.getLayoutParams(); } else { layoutParams3 = null; } if (layoutParams3 instanceof LinearLayout.LayoutParams) { layoutParams4 = (LinearLayout.LayoutParams) layoutParams3; } else { layoutParams4 = null; } View n55 = iVar.n5(); if (n55 != null) { layoutParams5 = n55.getLayoutParams(); } else { layoutParams5 = null; } if (layoutParams5 instanceof RelativeLayout.LayoutParams) { layoutParams6 = (RelativeLayout.LayoutParams) layoutParams5; } else { layoutParams6 = null; } ScrollView scrollView = (ScrollView) ((wg4.n) iVar.f193744t).getValue(); if (scrollView != null) { layoutParams7 = scrollView.getLayoutParams(); } else { layoutParams7 = null; } if (layoutParams7 instanceof RelativeLayout.LayoutParams) { layoutParams8 = (RelativeLayout.LayoutParams) layoutParams7; } else { layoutParams8 = null; } if (z16) { if (layoutParams6 != null) { layoutParams6.bottomMargin = (int) iVar.Z0; } if (layoutParams2 != null) { layoutParams2.bottomMargin = (int) iVar.X0; } if (layoutParams4 != null) { layoutParams4.bottomMargin = (int) iVar.X0; } if (layoutParams8 != null) { layoutParams8.height = iVar.V0 - i15; } } else { if (layoutParams6 != null) { layoutParams6.bottomMargin = (int) iVar.f193725a1; } if (layoutParams2 != null) { layoutParams2.bottomMargin = (int) iVar.Y0; } if (layoutParams4 != null) { layoutParams4.bottomMargin = (int) iVar.W0; } if (layoutParams8 != null) { layoutParams8.height = iVar.V0; } } TextView m56 = iVar.m5(); if (m56 != null) { viewParent = m56.getParent(); } else { viewParent = null; } if (viewParent instanceof ViewGroup) { viewGroup = (ViewGroup) viewParent; } if (viewGroup != null) { viewGroup.updateViewLayout(iVar.m5(), layoutParams2); viewGroup.updateViewLayout(iVar.p5(), layoutParams4); } } } public a0(i iVar) { this.f193755d = iVar; } public final void run() { i iVar = this.f193755d; if (iVar.U0 == null) { iVar.U0 = new KeyboardHeightProvider(iVar.getActivity()); i iVar2 = this.f193755d; KeyboardHeightProvider keyboardHeightProvider = iVar2.U0; if (keyboardHeightProvider != null) { keyboardHeightProvider.f186156b = new a(iVar2); } } KeyboardHeightProvider keyboardHeightProvider2 = this.f193755d.U0; if (keyboardHeightProvider2 != null) { keyboardHeightProvider2.e(); } } } public static final class b extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193757d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(AppCompatActivity appCompatActivity) { super(0); this.f193757d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193757d.findViewById(R.id.fev); } } public static final class b0 implements DialogInterface.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ i f193758d; public b0(i iVar) { this.f193758d = iVar; } public final void onClick(DialogInterface dialogInterface, int i15) { i.j5(this.f193758d); } } public static final class c extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193759d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(AppCompatActivity appCompatActivity) { super(0); this.f193759d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193759d.findViewById(R.id.few); } } public static final class c0 extends lh4.o implements kh4.a<MMSwitchBtn> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193760d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c0(AppCompatActivity appCompatActivity) { super(0); this.f193760d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public MMSwitchBtn invoke() { MMSwitchBtn mMSwitchBtn = (MMSwitchBtn) this.f193760d.findViewById(R.id.fkl); mMSwitchBtn.setCheck(true); return mMSwitchBtn; } } public static final class d extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193761d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(AppCompatActivity appCompatActivity) { super(0); this.f193761d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193761d.findViewById(R.id.fdv); } } public static final class d0 extends lh4.o implements kh4.a<WeImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193762d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d0(AppCompatActivity appCompatActivity) { super(0); this.f193762d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public WeImageView invoke() { return (WeImageView) this.f193762d.findViewById(R.id.f363309fh4); } } public static final class e extends lh4.o implements kh4.a<MMSwitchBtn> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193763d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e(AppCompatActivity appCompatActivity) { super(0); this.f193763d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public MMSwitchBtn invoke() { return (MMSwitchBtn) this.f193763d.findViewById(R.id.ew5); } } public static final class e0 extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193764d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e0(AppCompatActivity appCompatActivity) { super(0); this.f193764d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193764d.findViewById(R.id.fgz); } } public static final class f extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193765d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f(AppCompatActivity appCompatActivity) { super(0); this.f193765d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return (LinearLayout) this.f193765d.findViewById(R.id.ew7); } } public static final class f0 extends lh4.o implements kh4.a<RelativeLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193766d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f0(AppCompatActivity appCompatActivity) { super(0); this.f193766d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public RelativeLayout invoke() { return (RelativeLayout) this.f193766d.findViewById(R.id.f363305fh0); } } public static final class g extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193767d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g(AppCompatActivity appCompatActivity) { super(0); this.f193767d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193767d.findViewById(R.id.ew_); } } public static final class g0 extends lh4.o implements kh4.a<LinearLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193768d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g0(AppCompatActivity appCompatActivity) { super(0); this.f193768d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public LinearLayout invoke() { return (LinearLayout) this.f193768d.findViewById(R.id.f363307fh2); } } public static final class h extends lh4.o implements kh4.a<RelativeLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193769d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h(AppCompatActivity appCompatActivity) { super(0); this.f193769d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public RelativeLayout invoke() { return (RelativeLayout) this.f193769d.findViewById(R.id.ewa); } } public static final class h0 extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193770d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h0(AppCompatActivity appCompatActivity) { super(0); this.f193770d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193770d.findViewById(R.id.f363308fh3); } } /* renamed from: ct1.i$i reason: collision with other inner class name */ public static final class C2017i extends lh4.o implements kh4.a<ViewGroup> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193771d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public C2017i(AppCompatActivity appCompatActivity) { super(0); this.f193771d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public ViewGroup invoke() { return (ViewGroup) this.f193771d.findViewById(R.id.fet); } } public static final class i0 extends lh4.o implements kh4.a<RelativeLayout> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193772d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i0(AppCompatActivity appCompatActivity) { super(0); this.f193772d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public RelativeLayout invoke() { return (RelativeLayout) this.f193772d.findViewById(R.id.fh5); } } public static final class j extends lh4.o implements kh4.a<Boolean> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193773d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public j(AppCompatActivity appCompatActivity) { super(0); this.f193773d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public Boolean invoke() { return Boolean.valueOf(u54.e.a(this.f193773d)); } } public static final class j0 extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193774d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public j0(AppCompatActivity appCompatActivity) { super(0); this.f193774d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193774d.findViewById(R.id.fh7); } } public static final class k extends lh4.o implements kh4.a<ImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193775d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public k(AppCompatActivity appCompatActivity) { super(0); this.f193775d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public ImageView invoke() { return (ImageView) this.f193775d.findViewById(R.id.fdn); } } public static final class k0 extends lh4.o implements kh4.a<ScrollView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193776d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public k0(AppCompatActivity appCompatActivity) { super(0); this.f193776d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public ScrollView invoke() { return (ScrollView) this.f193776d.findViewById(R.id.mc9); } } public static final class l extends lh4.o implements kh4.a<ImageView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193777d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public l(AppCompatActivity appCompatActivity) { super(0); this.f193777d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public ImageView invoke() { return (ImageView) this.f193777d.findViewById(R.id.fdo); } } public static final class l0 extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193778d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public l0(AppCompatActivity appCompatActivity) { super(0); this.f193778d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { TextView textView = (TextView) this.f193778d.findViewById(R.id.fex); lh4.m.f(textView, LocaleUtil.ITALIAN); com.tencent.mm.plugin.finder.utils.y.a(textView); return textView; } } public static final class m extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193779d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(AppCompatActivity appCompatActivity) { super(0); this.f193779d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193779d.findViewById(R.id.feu); } } public static final class n extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193780d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public n(AppCompatActivity appCompatActivity) { super(0); this.f193780d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193780d.findViewById(R.id.fdp); } } public static final class o extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193781d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o(AppCompatActivity appCompatActivity) { super(0); this.f193781d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193781d.findViewById(R.id.fdu); } } public static final class p extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193782d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public p(AppCompatActivity appCompatActivity) { super(0); this.f193782d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193782d.findViewById(R.id.fdy); } } public static final class q extends lh4.o implements kh4.a<MMEditText> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193783d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public q(AppCompatActivity appCompatActivity) { super(0); this.f193783d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public MMEditText invoke() { MMEditText mMEditText = (MMEditText) this.f193783d.findViewById(R.id.fdx); mMEditText.setHint(a5.f118672a.q()); return mMEditText; } } public static final class r extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193784d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public r(AppCompatActivity appCompatActivity) { super(0); this.f193784d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193784d.findViewById(R.id.fdz); } } public static final class s extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193785d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public s(AppCompatActivity appCompatActivity) { super(0); this.f193785d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193785d.findViewById(R.id.fed); } } public static final class t extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193786d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public t(AppCompatActivity appCompatActivity) { super(0); this.f193786d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193786d.findViewById(R.id.fen); } } public static final class u extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193787d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public u(AppCompatActivity appCompatActivity) { super(0); this.f193787d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193787d.findViewById(R.id.feo); } } public static final class v extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193788d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public v(AppCompatActivity appCompatActivity) { super(0); this.f193788d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193788d.findViewById(R.id.fep); } } public static final class w extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193789d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public w(AppCompatActivity appCompatActivity) { super(0); this.f193789d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193789d.findViewById(R.id.fe_); } } public static final class x extends lh4.o implements kh4.a<ViewGroup> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193790d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public x(AppCompatActivity appCompatActivity) { super(0); this.f193790d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public ViewGroup invoke() { return (ViewGroup) this.f193790d.findViewById(R.id.feb); } } public static final class y extends lh4.o implements kh4.a<View> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193791d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public y(AppCompatActivity appCompatActivity) { super(0); this.f193791d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public View invoke() { return this.f193791d.findViewById(R.id.fea); } } public static final class z extends lh4.o implements kh4.a<TextView> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ AppCompatActivity f193792d; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public z(AppCompatActivity appCompatActivity) { super(0); this.f193792d = appCompatActivity; } /* Return type fixed from 'java.lang.Object' to match base method */ @Override // kh4.a public TextView invoke() { return (TextView) this.f193792d.findViewById(R.id.fec); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(AppCompatActivity appCompatActivity) { super(appCompatActivity); lh4.m.g(appCompatActivity, EnvConsts.ACTIVITY_MANAGER_SRVNAME); this.f193730e = wg4.h.a(new m(appCompatActivity)); this.f193732f = wg4.h.a(new l(appCompatActivity)); this.f193733g = wg4.h.a(new s(appCompatActivity)); this.f193734h = wg4.h.a(new k(appCompatActivity)); this.f193735i = wg4.h.a(new q(appCompatActivity)); this.f193736j = wg4.h.a(new p(appCompatActivity)); this.f193737n = wg4.h.a(new t(appCompatActivity)); this.f193738o = wg4.h.a(new u(appCompatActivity)); this.f193739p = wg4.h.a(new o(appCompatActivity)); this.f193741q = wg4.h.a(new r(appCompatActivity)); this.f193742r = wg4.h.a(new v(appCompatActivity)); this.f193743s = wg4.h.a(new n(appCompatActivity)); this.f193744t = wg4.h.a(new k0(appCompatActivity)); this.f193745u = wg4.h.a(new f(appCompatActivity)); this.f193746v = wg4.h.a(new e(appCompatActivity)); this.f193747w = wg4.h.a(new h(appCompatActivity)); this.f193748x = wg4.h.a(new g(appCompatActivity)); this.f193750y = wg4.h.a(new g0(appCompatActivity)); this.f193752z = wg4.h.a(new d0(appCompatActivity)); this.A = wg4.h.a(new i0(appCompatActivity)); this.B = wg4.h.a(new h0(appCompatActivity)); this.C = wg4.h.a(new f0(appCompatActivity)); this.D = wg4.h.a(new e0(appCompatActivity)); this.E = wg4.h.a(new j0(appCompatActivity)); this.F = wg4.h.a(new y(appCompatActivity)); this.G = wg4.h.a(new z(appCompatActivity)); this.H = wg4.h.a(new w(appCompatActivity)); this.I = wg4.h.a(new b(appCompatActivity)); this.J = wg4.h.a(new c(appCompatActivity)); this.K = wg4.h.a(new l0(appCompatActivity)); this.L = wg4.h.a(new d(appCompatActivity)); this.M = wg4.h.a(new x(appCompatActivity)); this.N = wg4.h.a(new C2017i(appCompatActivity)); this.P = wg4.h.a(new j(appCompatActivity)); this.Q = wg4.h.a(new c0(appCompatActivity)); this.S = new zk1(); this.U = "https://support.weixin.qq.com/cgi-bin/mmsupportacctnodeweb-bin/pages/QnFg1sAtr4PwqQ0T"; this.f193749x0 = true; this.T0 = 120; this.W0 = ((float) appCompatActivity.getResources().getDimensionPixelOffset(R.dimen.f359095d7)) / gy3.a.p(appCompatActivity); this.X0 = ((float) appCompatActivity.getResources().getDimensionPixelOffset(R.dimen.f359075cn)) / gy3.a.p(appCompatActivity); this.Y0 = ((float) appCompatActivity.getResources().getDimensionPixelOffset(R.dimen.f359110dl)) / gy3.a.p(appCompatActivity); this.Z0 = ((float) appCompatActivity.getResources().getDimensionPixelOffset(R.dimen.f359104df)) / gy3.a.p(appCompatActivity); this.f193725a1 = ((float) appCompatActivity.getResources().getDimensionPixelOffset(R.dimen.f359052c0)) / gy3.a.p(appCompatActivity); this.f193726b1 = 1; this.f193727c1 = 2; } public static final void j5(i iVar) { Log.i(iVar.f193728d, "onCreateLiveNote"); lh4.f0 f0Var = new lh4.f0(); f0Var.f253292d = (T) rs1.d.f297303a.t0(); AppCompatActivity activity = iVar.getActivity(); T t15 = f0Var.f253292d; com.tencent.mm.ui.widget.picker.i iVar2 = new com.tencent.mm.ui.widget.picker.i(activity, t15.f332815d, t15.f332816e, t15.f332817f, false); iVar2.k(1, 12, 0); String string = iVar.getActivity().getResources().getString(R.string.e0_); Button button = iVar2.f188170i; if (button != null) { button.setText(string); } iVar2.f188179u = new d0(iVar2, f0Var, iVar); View inflate = LayoutInflater.from(iVar.getActivity()).inflate(R.layout.acq, (ViewGroup) null); lh4.m.f(inflate, "from(activity).inflate(R…live_picker_footer, null)"); View inflate2 = LayoutInflater.from(iVar.getActivity()).inflate(R.layout.awx, (ViewGroup) null); lh4.m.f(inflate2, "from(activity).inflate(R…live_picker_header, null)"); int color = iVar.getActivity().getResources().getColor(R.color.f358484oq); Button button2 = iVar2.f188171j; if (button2 != null) { button2.setTextColor(color); } iVar2.h(2); Button button3 = iVar2.f188170i; if (button3 != null) { button3.setBackgroundResource(R.drawable.f361059a12); } iVar2.g(inflate2); LinearLayout linearLayout = iVar2.f188184z; if (linearLayout != null) { linearLayout.setVisibility(0); iVar2.f188184z.removeAllViews(); iVar2.f188184z.setGravity(17); iVar2.f188184z.addView(inflate, new LinearLayout.LayoutParams(-1, -2)); } iVar2.l(); } public static final void k5(i iVar, int i15, int i16, int i17) { iVar.getClass(); rs1.d dVar = rs1.d.f297303a; wg4.o<ArrayList<String>, ArrayList<List<String>>, ArrayList<List<String>>> t05 = dVar.t0(); Date date = new Date(dVar.u0()); Calendar instance = Calendar.getInstance(); instance.setTime(date); instance.set(5, instance.get(5) + i15); instance.set(11, (24 - ((List) t05.f332816e.get(i15)).size()) + i16); instance.set(12, ((12 - ((List) t05.f332817f.get(i16)).size()) + i17) * 5); instance.set(13, 0); String str = iVar.f193728d; Log.i(str, "chosen time:" + instance.getTime() + ",timeInMills:" + instance.getTimeInMillis()); iVar.f193751y0 = (int) (instance.getTimeInMillis() / ((long) 1000)); ((TextView) ((wg4.n) iVar.f193738o).getValue()).setText(a5.v(a5.f118672a, instance.getTimeInMillis(), null, false, 6, null)); } public static final void r5(i iVar, boolean z15) { int i15 = 8; ((RelativeLayout) ((wg4.n) iVar.A).getValue()).setVisibility(z15 ? 0 : 8); ((RelativeLayout) ((wg4.n) iVar.C).getValue()).setVisibility(z15 ? 0 : 8); if (a5.f118672a.X()) { View view = (View) ((wg4.n) iVar.E).getValue(); if (z15) { i15 = 0; } k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(Integer.valueOf(i15)); j30.a.d(view, aVar.b(), "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "onSaleEnableChange$execute", "(Lcom/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC;Z)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(view, "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "onSaleEnableChange$execute", "(Lcom/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC;Z)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); return; } View view2 = (View) ((wg4.n) iVar.E).getValue(); k30.a aVar2 = new k30.a(); ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a; aVar2.c(8); j30.a.d(view2, aVar2.b(), "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "onSaleEnableChange$execute", "(Lcom/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC;Z)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view2.setVisibility(((Integer) aVar2.a(0)).intValue()); j30.a.e(view2, "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "onSaleEnableChange$execute", "(Lcom/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC;Z)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } @Override // com.tencent.mm.ui.component.UIComponent public int getLayoutId() { return R.layout.aw8; } public final boolean l5() { int i15; ij1.b c15 = a.C2191a.c(dj1.b.f200487e, false, 1, null); if (c15 != null) { i15 = c15.r2().f33815j; } else { i15 = 0; } if (!m60.d.u(i15, 8) || !m60.d.u(i15, 16)) { return false; } return true; } public final TextView m5() { return (TextView) ((wg4.n) this.f193739p).getValue(); } public final View n5() { return (View) ((wg4.n) this.f193736j).getValue(); } public final MMEditText o5() { return (MMEditText) ((wg4.n) this.f193735i).getValue(); } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onActivityResult(int i15, int i16, Intent intent) { byte[] byteArrayExtra; String str; super.onActivityResult(i15, i16, intent); if (!(i15 != 3 || intent == null || (byteArrayExtra = intent.getByteArrayExtra("KEY_PARAMS_WHITE_LIST")) == null)) { zk1 zk12 = new zk1(); zk12.parseFrom(byteArrayExtra); this.S = zk12; TextView textView = (TextView) ((wg4.n) this.D).getValue(); LinkedList<String> linkedList = this.S.f44577f; if (linkedList == null) { linkedList = new LinkedList<>(); } StringBuilder sb5 = new StringBuilder(); int i17 = 0; for (T t15 : linkedList) { int i18 = i17 + 1; if (i17 >= 0) { z1 e35 = ((jh2.k0) d60.z.q(jh2.k0.class)).Zx().e3(t15); if (e35 == null || (str = ((hh2.j) yz3.j.c(hh2.j.class)).oL0(e35, e35.getUsername())) == null) { str = ""; } sb5.append(str); if (i17 < linkedList.size() - 1) { sb5.append(","); } i17 = i18; } else { xg4.u.l(); throw null; } } String sb6 = sb5.toString(); lh4.m.f(sb6, "result.toString()"); textView.setText(sb6); } } @Override // com.tencent.mm.ui.component.UIComponent public void onCreate(Bundle bundle) { int i15; int i16; int i17; int i18; int i19; int i25; int i26; int i27; int i28; int i29; int i35; int i36; super.onCreate(bundle); byte[] byteArrayExtra = getIntent().getByteArrayExtra("KEY_FINDER_LIVE_NOTICE_CONTACT"); if (byteArrayExtra != null) { FinderContact finderContact = new FinderContact(); this.W = finderContact; finderContact.parseFrom(byteArrayExtra); } byte[] byteArrayExtra2 = getIntent().getByteArrayExtra("KEY_FINDER_LIVE_COUPON"); if (byteArrayExtra2 != null) { Log.i(this.f193728d, "#initData ready to parse coupon"); x12 x122 = new x12(); this.X = x122; x122.parseFrom(byteArrayExtra2); } String str = this.f193728d; StringBuilder sb5 = new StringBuilder(); sb5.append("#initData coupon.appUrl "); x12 x123 = this.X; ViewGroup.MarginLayoutParams marginLayoutParams = null; sb5.append(x123 != null ? x123.f41712e : null); Log.i(str, sb5.toString()); this.Y = getIntent().getBooleanExtra("KEY_FINDER_LIVE_NOTICE_IS_FROM_PROFILE", false); this.Z = getIntent().getBooleanExtra("KEY_FINDER_LIVE_NOTICE_IS_FROM_LIVE", false); this.f193740p0 = getIntent().getBooleanExtra("KEY_FINDER_LIVE_NOTICE_IS_FROM_MEMBER", false); this.f193749x0 = getIntent().getBooleanExtra("KEY_FINDER_LIVE_NOTICE_IS_CAN_CREATE", true); a5 a5Var = a5.f118672a; TextView textView = (TextView) ((wg4.n) this.B).getValue(); lh4.m.f(textView, "preSaleValueDesc"); a5Var.j0(textView, true); ((View) ((wg4.n) this.f193730e).getValue()).setOnClickListener(new t(this)); y24.r rVar = y24.r.f342954a; j80.d<tt1.j0> M3 = ((v0) rVar.e(e2.class).c(v0.class)).M3(); FinderContact finderContact2 = this.W; if (finderContact2 != null) { tt1.f fVar = new tt1.f(finderContact2.headUrl, null, 2, null); ImageView imageView = (ImageView) ((wg4.n) this.f193732f).getValue(); lh4.m.f(imageView, "mAvatarView"); M3.c(fVar, imageView, ((v0) rVar.e(e2.class).c(v0.class)).W(h0.a.f315072h)); TextView textView2 = (TextView) ((wg4.n) this.f193733g).getValue(); hz.h hVar = (hz.h) yz3.j.c(hz.h.class); AppCompatActivity activity = getActivity(); FinderContact finderContact3 = this.W; if (finderContact3 != null) { textView2.setText(hVar.g2(activity, finderContact3.nickname)); yz3.d c15 = yz3.j.c(w2.class); lh4.m.f(c15, "getService(IFinderCommon…atureService::class.java)"); w2 w2Var = (w2) c15; ImageView imageView2 = (ImageView) ((wg4.n) this.f193734h).getValue(); lh4.m.f(imageView2, "mAuthView"); FinderContact finderContact4 = this.W; if (finderContact4 != null) { w2.a.j(w2Var, imageView2, finderContact4.authInfo, 0, null, 12, null); ((View) ((wg4.n) this.f193737n).getValue()).setOnClickListener(new u(this)); m5().setOnClickListener(new v(this)); if (this.Z) { m5().setText(getContext().getString(R.string.e0d)); } p5().setOnClickListener(new w(this)); ((TextView) ((wg4.n) this.f193738o).getValue()).post(new x(this)); n5().setOnClickListener(new y(this)); o5().d(null, LocaleUtil.getCurrentLanguage(getContext()), new z(this), null); o5().setFilters(new InputFilter[]{new c0(this), new q0(this.T0, q0.a.MODE_CHINESE_AS_2)}); o5().addTextChangedListener(new a0(this)); ((ScrollView) ((wg4.n) this.f193744t).getValue()).post(new b0(this)); if (this.f193749x0) { m5().setVisibility(0); p5().setVisibility(0); ((TextView) ((wg4.n) this.f193743s).getValue()).setVisibility(4); } else { m5().setVisibility(4); p5().setVisibility(4); ((TextView) ((wg4.n) this.f193743s).getValue()).setVisibility(0); } x12 x124 = this.X; if (x124 != null) { ((LinearLayout) ((wg4.n) this.f193745u).getValue()).setVisibility(0); ((MMSwitchBtn) ((wg4.n) this.f193746v).getValue()).setSwitchListener(new q(this)); ((RelativeLayout) ((wg4.n) this.f193747w).getValue()).setOnClickListener(new r(this, x124)); a50.g gVar = new a50.g(); Context context = MMApplicationContext.getContext(); lh4.m.f(context, "getContext()"); gVar.put("finderuin", r32.b.c(context)); String gVar2 = gVar.toString(); lh4.m.f(gVar2, "paramsJson.toString()"); LiveAudienceCommodityLogStruct liveAudienceCommodityLogStruct = new LiveAudienceCommodityLogStruct(); liveAudienceCommodityLogStruct.s("expose_reserve_wtih_coupon_switch"); liveAudienceCommodityLogStruct.t(ek4.y.q(gVar2, ",", ";", false)); liveAudienceCommodityLogStruct.n(); } if ((!a5Var.X() || this.Z) && !l5()) { View view = (View) ((wg4.n) this.H).getValue(); 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/finder/live/viewmodel/component/FinderLiveNoticeUIC", "initView", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(view, "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "initView", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); } else { ((View) ((wg4.n) this.F).getValue()).setOnClickListener(new s(this)); } if (this.f193740p0) { ((TextView) ((wg4.n) this.G).getValue()).setText(getString(R.string.e0w)); s5(false); this.S = new zk1(); this.f193729d1 = 1; ((LinearLayout) ((wg4.n) this.f193750y).getValue()).setVisibility(8); } ((MMSwitchBtn) ((wg4.n) this.Q).getValue()).setCheck(true); d60.z.d().a(6653, this); if (((Boolean) ((wg4.n) this.P).getValue()).booleanValue()) { AppCompatActivity activity2 = getActivity(); MMActivity mMActivity = activity2 instanceof MMActivity ? (MMActivity) activity2 : null; if (mMActivity != null) { mMActivity.setTitleVisibility(8); } View n55 = n5(); ViewGroup.LayoutParams layoutParams = n5().getLayoutParams(); layoutParams.height = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359052c0); n55.setLayoutParams(layoutParams); ViewGroup.LayoutParams layoutParams2 = ((ImageView) ((wg4.n) this.f193732f).getValue()).getLayoutParams(); layoutParams2.height = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359095d7); layoutParams2.width = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359095d7); ((ImageView) ((wg4.n) this.f193732f).getValue()).setLayoutParams(layoutParams2); View view2 = (View) ((wg4.n) this.f193737n).getValue(); ViewGroup.LayoutParams layoutParams3 = view2.getLayoutParams(); lh4.m.e(layoutParams3, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams"); ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) layoutParams3; ViewGroup.LayoutParams layoutParams4 = view2.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams3 = layoutParams4 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams4 : null; if (marginLayoutParams3 == null) { i15 = 0; } else { i15 = marginLayoutParams3.leftMargin; } int dimensionPixelOffset = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359075cn); ViewGroup.LayoutParams layoutParams5 = view2.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams4 = layoutParams5 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams5 : null; if (marginLayoutParams4 == null) { i16 = 0; } else { i16 = marginLayoutParams4.rightMargin; } ViewGroup.LayoutParams layoutParams6 = view2.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams5 = layoutParams6 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams6 : null; if (marginLayoutParams5 == null) { i17 = 0; } else { i17 = marginLayoutParams5.bottomMargin; } marginLayoutParams2.setMargins(i15, dimensionPixelOffset, i16, i17); View n56 = n5(); ViewGroup.LayoutParams layoutParams7 = n56.getLayoutParams(); lh4.m.e(layoutParams7, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams"); ViewGroup.MarginLayoutParams marginLayoutParams6 = (ViewGroup.MarginLayoutParams) layoutParams7; ViewGroup.LayoutParams layoutParams8 = n56.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams7 = layoutParams8 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams8 : null; if (marginLayoutParams7 == null) { i18 = 0; } else { i18 = marginLayoutParams7.leftMargin; } int dimensionPixelOffset2 = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359119dv); ViewGroup.LayoutParams layoutParams9 = n56.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams8 = layoutParams9 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams9 : null; if (marginLayoutParams8 == null) { i19 = 0; } else { i19 = marginLayoutParams8.rightMargin; } ViewGroup.LayoutParams layoutParams10 = n56.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams9 = layoutParams10 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams10 : null; if (marginLayoutParams9 == null) { i25 = 0; } else { i25 = marginLayoutParams9.bottomMargin; } marginLayoutParams6.setMargins(i18, dimensionPixelOffset2, i19, i25); ViewGroup viewGroup = (ViewGroup) ((wg4.n) this.M).getValue(); ViewGroup.LayoutParams layoutParams11 = viewGroup.getLayoutParams(); lh4.m.e(layoutParams11, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams"); ViewGroup.MarginLayoutParams marginLayoutParams10 = (ViewGroup.MarginLayoutParams) layoutParams11; ViewGroup.LayoutParams layoutParams12 = viewGroup.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams11 = layoutParams12 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams12 : null; if (marginLayoutParams11 == null) { i26 = 0; } else { i26 = marginLayoutParams11.leftMargin; } int dimensionPixelOffset3 = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359119dv); ViewGroup.LayoutParams layoutParams13 = viewGroup.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams12 = layoutParams13 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams13 : null; if (marginLayoutParams12 == null) { i27 = 0; } else { i27 = marginLayoutParams12.rightMargin; } ViewGroup.LayoutParams layoutParams14 = viewGroup.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams13 = layoutParams14 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams14 : null; if (marginLayoutParams13 == null) { i28 = 0; } else { i28 = marginLayoutParams13.bottomMargin; } marginLayoutParams10.setMargins(i26, dimensionPixelOffset3, i27, i28); LinearLayout linearLayout = (LinearLayout) ((wg4.n) this.f193745u).getValue(); ViewGroup.LayoutParams layoutParams15 = linearLayout.getLayoutParams(); lh4.m.e(layoutParams15, "null cannot be cast to non-null type android.view.ViewGroup.MarginLayoutParams"); ViewGroup.MarginLayoutParams marginLayoutParams14 = (ViewGroup.MarginLayoutParams) layoutParams15; ViewGroup.LayoutParams layoutParams16 = linearLayout.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams15 = layoutParams16 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams16 : null; if (marginLayoutParams15 == null) { i29 = 0; } else { i29 = marginLayoutParams15.leftMargin; } int dimensionPixelOffset4 = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359119dv); ViewGroup.LayoutParams layoutParams17 = linearLayout.getLayoutParams(); ViewGroup.MarginLayoutParams marginLayoutParams16 = layoutParams17 instanceof ViewGroup.MarginLayoutParams ? (ViewGroup.MarginLayoutParams) layoutParams17 : null; if (marginLayoutParams16 == null) { i35 = 0; } else { i35 = marginLayoutParams16.rightMargin; } ViewGroup.LayoutParams layoutParams18 = linearLayout.getLayoutParams(); if (layoutParams18 instanceof ViewGroup.MarginLayoutParams) { marginLayoutParams = (ViewGroup.MarginLayoutParams) layoutParams18; } if (marginLayoutParams == null) { i36 = 0; } else { i36 = marginLayoutParams.bottomMargin; } marginLayoutParams14.setMargins(i29, dimensionPixelOffset4, i35, i36); ViewGroup viewGroup2 = (ViewGroup) ((wg4.n) this.N).getValue(); int dimensionPixelOffset5 = getActivity().getResources().getDimensionPixelOffset(R.dimen.f359075cn); viewGroup2.setPadding(viewGroup2.getPaddingLeft(), dimensionPixelOffset5, viewGroup2.getPaddingRight(), dimensionPixelOffset5); View view3 = (View) ((wg4.n) this.I).getValue(); k30.a aVar2 = new k30.a(); ThreadLocal<k30.a> threadLocal2 = k30.c.f244265a; aVar2.c(0); j30.a.d(view3, aVar2.b(), "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "checkAndChange2HalfScreenMode", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view3.setVisibility(((Integer) aVar2.a(0)).intValue()); j30.a.e(view3, "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "checkAndChange2HalfScreenMode", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); View view4 = (View) ((wg4.n) this.J).getValue(); k30.a aVar3 = new k30.a(); aVar3.c(8); j30.a.d(view4, aVar3.b(), "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "checkAndChange2HalfScreenMode", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view4.setVisibility(((Integer) aVar3.a(0)).intValue()); j30.a.e(view4, "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "checkAndChange2HalfScreenMode", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); ((TextView) ((wg4.n) this.K).getValue()).setVisibility(0); View view5 = (View) ((wg4.n) this.L).getValue(); k30.a aVar4 = new k30.a(); aVar4.c(0); j30.a.d(view5, aVar4.b(), "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "checkAndChange2HalfScreenMode", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); view5.setVisibility(((Integer) aVar4.a(0)).intValue()); j30.a.e(view5, "com/tencent/mm/plugin/finder/live/viewmodel/component/FinderLiveNoticeUIC", "checkAndChange2HalfScreenMode", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); ((View) ((wg4.n) this.L).getValue()).setOnClickListener(new l(this)); TextView m55 = m5(); if (m55 != null) { m55.setVisibility(8); return; } return; } return; } lh4.m.p("contact"); throw null; } lh4.m.p("contact"); throw null; } lh4.m.p("contact"); throw null; } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onDestroy() { super.onDestroy(); d60.z.d().p(6653, this); } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onPause() { super.onPause(); KeyboardHeightProvider keyboardHeightProvider = this.U0; if (keyboardHeightProvider != null) { keyboardHeightProvider.d(); } } @Override // y24.g, com.tencent.mm.ui.component.UIComponent public void onResume() { View decorView; super.onResume(); Window window = getActivity().getWindow(); if (window != null && (decorView = window.getDecorView()) != null) { decorView.post(new a0(this)); } } @Override // yf0.n public void onSceneEnd(int i15, int i16, String str, yf0.y yVar) { String str2; Object obj; String str3; String str4; byte[] bArr; boolean z15; byte[] bArr2; boolean z16; boolean z17; Log.i(this.f193728d, "errType " + i15 + ", errCode " + i16 + ", errMsg " + str); int i17 = 0; byte[] bArr3 = null; m60.d.O(new i0(false, this, null)); if (yVar instanceof wk1.w2) { boolean z18 = true; if (i15 == 0 && i16 == 0) { kn0 response = ((wk1.w2) yVar).getResponse(); wd1 wd12 = response.f27549e; if (wd12 != null) { ((x2) yz3.j.c(x2.class)).Gv(wd12); } if (((Boolean) ((wg4.n) this.P).getValue()).booleanValue()) { Intent intent = new Intent(); wd1 wd13 = response.f27549e; if (wd13 != null) { bArr3 = wd13.toByteArray(); } intent.putExtra("KEY_FINDER_LIVE_NOTICE_INFO", bArr3); getActivity().setResult(-1, intent); ((View) ((wg4.n) this.f193730e).getValue()).performClick(); return; } if (this.Y || this.Z || this.f193740p0) { Intent intent2 = new Intent(); intent2.putExtra("KEY_FINDER_LIVE_NOTICE_QR_CONTACT", r32.b.c(getContext())); wd1 wd14 = response.f27549e; if (wd14 != null) { bArr = wd14.toByteArray(); } else { bArr = null; } intent2.putExtra("KEY_FINDER_LIVE_NOTICE_QR_INFO", bArr); intent2.putExtra("KEY_FINDER_LIVE_NOTICE_QR_IS_VISITOR", false); if (this.f193729d1 == 1) { z15 = true; } else { z15 = false; } intent2.putExtra("KEY_FINDER_LIVE_NOTICE_QR_IS_VIP", z15); if (this.f193729d1 != 1 || this.f193740p0 || this.Z) { z18 = false; } intent2.putExtra("KEY_FINDER_LIVE_NOTICE_QR_NEED_BACK_MEMBER", z18); yz3.d c15 = yz3.j.c(v2.class); lh4.m.f(c15, "getService(IActivityRouter::class.java)"); v2.a.b((v2) c15, getActivity(), intent2, 0, 4, null); m60.d.M(500, new j(response, this)); } else { Intent intent3 = new Intent(); intent3.putExtra("KEY_FINDER_LIVE_NOTICE_QR_CONTACT", r32.b.c(getContext())); wd1 wd15 = response.f27549e; if (wd15 != null) { bArr2 = wd15.toByteArray(); } else { bArr2 = null; } intent3.putExtra("KEY_FINDER_LIVE_NOTICE_QR_INFO", bArr2); intent3.putExtra("KEY_FINDER_LIVE_NOTICE_QR_IS_VISITOR", false); if (this.f193729d1 == 0) { z16 = true; } else { z16 = false; } intent3.putExtra("KEY_FINDER_LIVE_NOTICE_QR_NEED_BACK_PROFILE", z16); if (this.f193729d1 != 1 || this.f193740p0) { z17 = false; } else { z17 = true; } intent3.putExtra("KEY_FINDER_LIVE_NOTICE_QR_NEED_BACK_MEMBER", z17); if (this.f193729d1 != 1) { z18 = false; } intent3.putExtra("KEY_FINDER_LIVE_NOTICE_QR_IS_VIP", z18); yz3.d c16 = yz3.j.c(v2.class); lh4.m.f(c16, "getService(IActivityRouter::class.java)"); v2.a.b((v2) c16, getActivity(), intent3, 0, 4, null); m60.d.M(500, new k(this)); } if (response.f27549e != null) { cs1.o oVar = (cs1.o) yz3.j.c(cs1.o.class); f0.b0 b0Var = f0.b0.LIVE_CREATE_BOOK_SUCC; wd1 wd16 = response.f27549e; if (wd16 != null) { i17 = wd16.f40922d; } String valueOf = String.valueOf(((long) i17) * 1000); wd1 wd17 = response.f27549e; if (wd17 == null || (str4 = wd17.f40925g) == null) { str4 = ""; } oVar.Oy0(b0Var, valueOf, str4); } cs1.o oVar2 = (cs1.o) yz3.j.c(cs1.o.class); f0.b0 b0Var2 = f0.b0.LIVE_JUMP_PROFILE_PAGE; wd1 wd18 = response.f27549e; if (wd18 == null || (str3 = wd18.f40925g) == null) { str3 = ""; } oVar2.Oy0(b0Var2, "", str3); return; } if (str != null) { if (str.length() <= 0) { z18 = false; } if (z18) { str2 = str; } else { str2 = null; } if (str2 != null) { switch (i16) { case -200165: case -200164: obj = i14.j.E(getContext(), str2, null, getContext().getResources().getString(R.string.f367504vi), false, new b0(this)); break; default: Toast makeText = y0.makeText(getContext(), str2, 0); makeText.setGravity(17, 0, 0); makeText.show(); obj = wg4.b0.f332794a; break; } if (obj != null) { return; } } } y0.g(getActivity(), getActivity().getResources().getString(R.string.e0f), R.raw.icons_filled_info); } } public final TextView p5() { return (TextView) ((wg4.n) this.f193742r).getValue(); } public final LinearLayout q5() { return (LinearLayout) ((wg4.n) this.f193750y).getValue(); } public final void s5(boolean z15) { if (!z15 || !((MMSwitchBtn) ((wg4.n) this.f193746v).getValue()).f187306y) { Object f15 = d60.z.s().i().f(w1.a.Hh, Boolean.FALSE); lh4.m.e(f15, "null cannot be cast to non-null type kotlin.Boolean"); boolean booleanValue = ((Boolean) f15).booleanValue(); if (!z15 || booleanValue) { r5(this, z15); } else { s5(false); y24.e.launchUI$default(this, null, null, new e0(this, z15, null), 3, null); } } else { s5(false); Toast makeText = y0.makeText(getContext(), getContext().getResources().getString(R.string.e0y), 0); makeText.setGravity(17, 0, 0); makeText.show(); ((TextView) ((wg4.n) this.G).getValue()).setText(getString(R.string.e0u)); s5(false); this.S = new zk1(); this.f193729d1 = 0; q5().setVisibility(8); } this.f193731e1 = z15; } }