多宝语音 v1.5.0版本的 MD5 值为:dcfcdc4e4f0a662eb0256f88e60f66b1
以下内容为反编译后的 CmccLoginActivity.java 源代码,内容仅作参考
package com.chuanglan.shanyan_sdk.view;
import android.R;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.os.SystemClock;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.cmic.gen.sdk.view.GenLoginAuthActivity;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import xn.m;
import xn.s;
import yn.l;
import yn.n;
import yn.t;
import yn.w;
public class CmccLoginActivity extends GenLoginAuthActivity {
public static WeakReference<CmccLoginActivity> f10786r0;
public ViewGroup I;
public RelativeLayout J;
public CheckBox K;
public TextView L;
public TextView M;
public Button N;
public ImageView O;
public Context P;
public xn.c Q;
public RelativeLayout R;
public TextView S;
public ImageView T;
public RelativeLayout U;
public TextView V;
public TextView W;
public TextView X;
public RelativeLayout f10787d0;
public CheckBox f10788e0;
public ViewGroup f10789f0;
public ViewGroup f10790g0;
public RelativeLayout f10791h0;
public com.chuanglan.shanyan_sdk.view.a f10792i0;
public long f10793j0;
public long f10794k0;
public RelativeLayout f10795l0;
public int f10796m0;
public ViewGroup f10797n0;
public Button f10799p0;
public Button f10800q0;
public ArrayList<zn.a> Y = null;
public ArrayList<xn.a> Z = null;
public int f10798o0 = 0;
public class a implements View.OnClickListener {
public a() {
}
@Override
public void onClick(View view) {
Context context;
String str;
try {
rn.b.f43907m = SystemClock.uptimeMillis();
rn.b.f43906l = System.currentTimeMillis();
if (CmccLoginActivity.this.f10788e0.isChecked()) {
CmccLoginActivity.s(CmccLoginActivity.this);
if (CmccLoginActivity.this.f10798o0 >= 5) {
CmccLoginActivity.this.N.setEnabled(false);
} else {
CmccLoginActivity.this.f10790g0.setOnClickListener(null);
CmccLoginActivity.this.f10790g0.setVisibility(0);
CmccLoginActivity.this.J.performClick();
}
wn.b bVar = rn.b.f43911q;
if (bVar != null) {
bVar.a(3, 1, "点击登录按钮(协议框已勾选)");
return;
}
return;
}
CmccLoginActivity.this.f10790g0.setVisibility(8);
if (!CmccLoginActivity.this.Q.I1()) {
if (CmccLoginActivity.this.Q.q0() == null) {
if (CmccLoginActivity.this.Q.r0() != null) {
context = CmccLoginActivity.this.P;
str = CmccLoginActivity.this.Q.r0();
} else {
context = CmccLoginActivity.this.P;
str = "请勾选协议";
}
yn.c.b(context, str);
} else {
CmccLoginActivity.this.Q.q0().show();
}
}
wn.b bVar2 = rn.b.f43911q;
if (bVar2 != null) {
bVar2.a(3, 0, "点击登录按钮(协议框未勾选)");
}
} catch (Exception e11) {
e11.printStackTrace();
m.a().b(1014, "CMCC", yn.e.a(1014, e11.getClass().getSimpleName(), "setOnClickListener--Exception_e=" + e11.toString()), 4, "", e11.toString(), SystemClock.uptimeMillis(), CmccLoginActivity.this.f10793j0, CmccLoginActivity.this.f10794k0);
rn.b.f43914t.set(true);
n.d("ExceptionShanYanTask", "setOnClickListener Exception=", e11);
CmccLoginActivity.this.finish();
}
}
}
public class b implements View.OnClickListener {
public b() {
}
@Override
public void onClick(View view) {
CmccLoginActivity.this.finish();
m.a().b(1011, "CMCC", yn.e.a(1011, "点击返回,用户取消免密登录", "点击返回,用户取消免密登录"), 3, "1011", "点击返回", SystemClock.uptimeMillis(), CmccLoginActivity.this.f10793j0, CmccLoginActivity.this.f10794k0);
}
}
public class c implements View.OnClickListener {
public c() {
}
@Override
public void onClick(View view) {
CmccLoginActivity.this.f10788e0.performClick();
}
}
public class d implements CompoundButton.OnCheckedChangeListener {
public d() {
}
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean z11) {
wn.b bVar;
int i11;
String str;
if (!z11) {
CmccLoginActivity.this.D();
bVar = rn.b.f43911q;
if (bVar != null) {
i11 = 0;
str = "取消选中协议复选框";
} else {
return;
}
} else {
t.c(CmccLoginActivity.this.P, "first_launch", "1");
CmccLoginActivity.this.f();
bVar = rn.b.f43911q;
if (bVar != null) {
i11 = 1;
str = "选中协议复选框";
} else {
return;
}
}
bVar.a(2, i11, str);
}
}
public class e implements View.OnClickListener {
public e() {
}
@Override
public void onClick(View view) {
if (CmccLoginActivity.this.f10788e0 != null && CmccLoginActivity.this.f10797n0 != null) {
CmccLoginActivity.this.f10788e0.setChecked(true);
CmccLoginActivity.this.f10797n0.setVisibility(8);
CmccLoginActivity.this.f10791h0.setVisibility(0);
}
}
}
public class f implements View.OnClickListener {
public f() {
}
@Override
public void onClick(View view) {
if (CmccLoginActivity.this.f10788e0 != null && CmccLoginActivity.this.f10797n0 != null) {
CmccLoginActivity.this.f10788e0.setChecked(false);
CmccLoginActivity.this.f10791h0.setVisibility(0);
CmccLoginActivity.this.f10797n0.setVisibility(8);
}
}
}
public class g implements View.OnClickListener {
public final int f10807b;
public g(int i11) {
this.f10807b = i11;
}
@Override
public void onClick(View view) {
if (((zn.a) CmccLoginActivity.this.Y.get(this.f10807b)).f53908a) {
CmccLoginActivity.this.finish();
}
((zn.a) CmccLoginActivity.this.Y.get(this.f10807b)).getClass();
}
}
public class h implements View.OnClickListener {
public final int f10809b;
public h(int i11) {
this.f10809b = i11;
}
@Override
public void onClick(View view) {
if (((xn.a) CmccLoginActivity.this.Z.get(this.f10809b)).l()) {
CmccLoginActivity.this.finish();
}
((xn.a) CmccLoginActivity.this.Z.get(this.f10809b)).g();
}
}
public static List<View> r(View view) {
ArrayList arrayList = new ArrayList();
if (view instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view;
for (int i11 = 0; i11 < viewGroup.getChildCount(); i11++) {
View childAt = viewGroup.getChildAt(i11);
arrayList.add(childAt);
arrayList.addAll(r(childAt));
}
}
return arrayList;
}
public static int s(CmccLoginActivity cmccLoginActivity) {
int i11 = cmccLoginActivity.f10798o0;
cmccLoginActivity.f10798o0 = i11 + 1;
return i11;
}
public final void A() {
xn.c e11;
this.M.setText(this.L.getText().toString());
if (s.a().e() != null) {
if (this.f10796m0 == 1) {
e11 = s.a().d();
} else {
e11 = s.a().e();
}
this.Q = e11;
xn.c cVar = this.Q;
if (cVar != null && -1.0f != cVar.z()) {
getWindow().setDimAmount(this.Q.z());
}
}
C();
m();
n();
l();
}
public final void C() {
TextView textView;
Typeface defaultFromStyle;
TextView textView2;
Typeface defaultFromStyle2;
TextView textView3;
Typeface defaultFromStyle3;
Button button;
Typeface defaultFromStyle4;
TextView textView4;
Typeface defaultFromStyle5;
TextView textView5;
Typeface defaultFromStyle6;
yn.m a11;
String str;
if (this.Q.t1()) {
xn.t.a(this);
RelativeLayout relativeLayout = this.f10795l0;
if (relativeLayout != null) {
relativeLayout.setFitsSystemWindows(false);
}
} else {
xn.t.m(getWindow(), this.Q);
}
if (this.Q.r1()) {
xn.t.b(this, this.Q.B(), this.Q.A(), this.Q.C(), this.Q.D(), this.Q.q1());
}
if (this.Q.j1()) {
this.X.setTextSize(1, this.Q.Q0());
} else {
this.X.setTextSize(this.Q.Q0());
}
if (this.Q.I0()) {
textView = this.X;
defaultFromStyle = Typeface.defaultFromStyle(1);
} else {
textView = this.X;
defaultFromStyle = Typeface.defaultFromStyle(0);
}
textView.setTypeface(defaultFromStyle);
if (-1.0f != this.Q.L0() && -1.0f != this.Q.M0()) {
this.X.setLineSpacing(this.Q.L0(), this.Q.M0());
}
if (this.Q.Y() == null) {
xn.c cVar = this.Q;
xn.e.d(cVar, this.P, this.X, "中国移动认证服务条款", cVar.q(), this.Q.s(), this.Q.r(), "https://wap.cmpassport.com/resources/html/contract.html", this.Q.t(), this.Q.v(), this.Q.u(), this.Q.p(), this.Q.o(), this.f10789f0, this.Q.E0(), this.Q.C0(), this.Q.D0(), "CMCC");
} else {
xn.c cVar2 = this.Q;
xn.f.d(cVar2, this.P, this.X, "中国移动认证服务条款", "https://wap.cmpassport.com/resources/html/contract.html", cVar2.p(), this.Q.o(), this.f10789f0, this.Q.E0(), this.Q.C0(), this.Q.D0(), "CMCC");
}
if (this.Q.p1()) {
this.f10791h0.setVisibility(8);
} else {
this.f10791h0.setVisibility(0);
xn.t.g(this.P, this.f10791h0, this.Q.h(), this.Q.j(), this.Q.i(), this.Q.g(), this.Q.f(), this.Q.k());
xn.t.c(this.P, this.f10788e0, this.Q.m(), this.Q.l());
}
if (this.Q.b() != null) {
this.f10795l0.setBackground(this.Q.b());
} else if (this.Q.c() != null) {
l.a().b(getResources().openRawResource(this.P.getResources().getIdentifier(this.Q.c(), "drawable", this.P.getPackageName()))).c(this.f10795l0);
}
if (this.Q.d() != null) {
this.f10792i0 = new com.chuanglan.shanyan_sdk.view.a(this.P);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
xn.t.k(this.f10792i0, this.P, this.Q.d());
this.f10795l0.addView(this.f10792i0, 0, layoutParams);
} else {
this.f10795l0.removeView(this.f10792i0);
}
this.R.setBackgroundColor(this.Q.Z());
if (this.Q.n1()) {
this.R.getBackground().setAlpha(0);
}
if (this.Q.m1()) {
this.R.setVisibility(8);
} else {
this.R.setVisibility(0);
}
this.S.setText(this.Q.e0());
this.S.setTextColor(this.Q.g0());
if (this.Q.j1()) {
this.S.setTextSize(1, this.Q.h0());
} else {
this.S.setTextSize(this.Q.h0());
}
if (this.Q.f0()) {
textView2 = this.S;
defaultFromStyle2 = Typeface.defaultFromStyle(1);
} else {
textView2 = this.S;
defaultFromStyle2 = Typeface.defaultFromStyle(0);
}
textView2.setTypeface(defaultFromStyle2);
if (this.Q.d0() != null) {
this.O.setImageDrawable(this.Q.d0());
}
if (this.Q.w1()) {
this.U.setVisibility(8);
} else {
this.U.setVisibility(0);
xn.t.f(this.P, this.U, this.Q.b0(), this.Q.c0(), this.Q.a0(), this.Q.V0(), this.Q.U0(), this.O);
}
if (this.Q.T() != null) {
this.T.setImageDrawable(this.Q.T());
}
xn.t.l(this.P, this.T, this.Q.V(), this.Q.W(), this.Q.U(), this.Q.X(), this.Q.S());
if (this.Q.v1()) {
this.T.setVisibility(8);
} else {
this.T.setVisibility(0);
}
this.M.setTextColor(this.Q.o0());
if (this.Q.j1()) {
this.M.setTextSize(1, this.Q.p0());
} else {
this.M.setTextSize(this.Q.p0());
}
if (this.Q.n0()) {
textView3 = this.M;
defaultFromStyle3 = Typeface.defaultFromStyle(1);
} else {
textView3 = this.M;
defaultFromStyle3 = Typeface.defaultFromStyle(0);
}
textView3.setTypeface(defaultFromStyle3);
xn.t.l(this.P, this.M, this.Q.k0(), this.Q.l0(), this.Q.j0(), this.Q.m0(), this.Q.i0());
this.N.setText(this.Q.N());
this.N.setTextColor(this.Q.P());
if (this.Q.j1()) {
this.N.setTextSize(1, this.Q.Q());
} else {
this.N.setTextSize(this.Q.Q());
}
if (this.Q.O()) {
button = this.N;
defaultFromStyle4 = Typeface.defaultFromStyle(1);
} else {
button = this.N;
defaultFromStyle4 = Typeface.defaultFromStyle(0);
}
button.setTypeface(defaultFromStyle4);
if (this.Q.I() != null) {
this.N.setBackground(this.Q.I());
} else if (-1 != this.Q.H()) {
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setCornerRadius(yn.c.a(this.P, 25.0f));
gradientDrawable.setColor(this.Q.H());
this.N.setBackground(gradientDrawable);
}
xn.t.e(this.P, this.N, this.Q.L(), this.Q.M(), this.Q.K(), this.Q.R(), this.Q.J());
this.V.setText("中国移动提供认证服务");
this.V.setTextColor(this.Q.g1());
if (this.Q.j1()) {
this.V.setTextSize(1, this.Q.h1());
} else {
this.V.setTextSize(this.Q.h1());
}
if (this.Q.f1()) {
textView4 = this.V;
defaultFromStyle5 = Typeface.defaultFromStyle(1);
} else {
textView4 = this.V;
defaultFromStyle5 = Typeface.defaultFromStyle(0);
}
textView4.setTypeface(defaultFromStyle5);
xn.t.d(this.P, this.V, this.Q.d1(), this.Q.e1(), this.Q.c1());
if (this.Q.L1()) {
this.V.setVisibility(8);
} else {
this.V.setVisibility(0);
}
if (this.Q.K1()) {
this.W.setVisibility(8);
} else {
this.W.setTextColor(this.Q.a1());
if (this.Q.j1()) {
this.W.setTextSize(1, this.Q.b1());
} else {
this.W.setTextSize(this.Q.b1());
}
if (this.Q.Z0()) {
textView5 = this.W;
defaultFromStyle6 = Typeface.defaultFromStyle(1);
} else {
textView5 = this.W;
defaultFromStyle6 = Typeface.defaultFromStyle(0);
}
textView5.setTypeface(defaultFromStyle6);
xn.t.d(this.P, this.W, this.Q.X0(), this.Q.Y0(), this.Q.W0());
}
ViewGroup viewGroup = this.f10790g0;
if (viewGroup != null && viewGroup.getParent() != null) {
this.f10787d0.removeView(this.f10790g0);
}
if (this.Q.G() != null) {
ViewGroup viewGroup2 = (ViewGroup) this.Q.G();
this.f10790g0 = viewGroup2;
viewGroup2.bringToFront();
this.f10787d0.addView(this.f10790g0);
this.f10790g0.setVisibility(8);
} else {
this.f10790g0 = (ViewGroup) findViewById(yn.m.a(this).c("shanyan_view_onkeylogin_loading"));
}
un.a.c().o(this.f10790g0);
ViewGroup viewGroup3 = this.f10797n0;
if (viewGroup3 != null && viewGroup3.getParent() != null) {
this.f10795l0.removeView(this.f10797n0);
}
if (this.Q.x() != null) {
this.f10797n0 = (ViewGroup) this.Q.x();
} else {
if (this.f10796m0 == 1) {
a11 = yn.m.a(this);
str = "layout_shanyan_dialog_privacy";
} else {
a11 = yn.m.a(this);
str = "layout_shanyan_dialog_privacy_land";
}
this.f10797n0 = (ViewGroup) a11.b(str);
this.f10799p0 = (Button) this.f10797n0.findViewById(yn.m.a(this).c("shanyan_view_privacy_ensure"));
this.f10800q0 = (Button) this.f10797n0.findViewById(yn.m.a(this).c("shanyan_view_privace_cancel"));
this.f10799p0.setOnClickListener(new e());
this.f10800q0.setOnClickListener(new f());
}
this.f10795l0.addView(this.f10797n0);
this.f10797n0.setOnClickListener(null);
String g11 = t.g(this.P, "pstyle", "0");
if (!"1".equals(g11)) {
if ("2".equals(g11)) {
if ("0".equals(t.g(this.P, "first_launch", "0"))) {
this.f10788e0.setChecked(false);
D();
this.f10797n0.bringToFront();
this.f10797n0.setVisibility(0);
this.f10791h0.setVisibility(0);
return;
}
} else {
if (!"3".equals(g11)) {
if (!this.Q.G1()) {
this.f10788e0.setChecked(false);
D();
this.f10797n0.setVisibility(8);
}
}
this.f10788e0.setChecked(false);
D();
this.f10797n0.setVisibility(8);
this.f10791h0.setVisibility(0);
return;
}
this.f10788e0.setChecked(true);
f();
this.f10797n0.setVisibility(8);
}
}
public final void D() {
if (this.Q.k1() != null) {
this.f10788e0.setBackground(this.Q.k1());
} else {
this.f10788e0.setBackgroundResource(this.P.getResources().getIdentifier("umcsdk_uncheck_image", "drawable", this.P.getPackageName()));
}
}
public final void e() {
this.N.setOnClickListener(new a());
this.U.setOnClickListener(new b());
this.f10791h0.setOnClickListener(new c());
this.f10788e0.setOnCheckedChangeListener(new d());
}
public final void f() {
if (this.Q.n() != null) {
this.f10788e0.setBackground(this.Q.n());
} else {
this.f10788e0.setBackgroundResource(this.P.getResources().getIdentifier("umcsdk_check_image", "drawable", this.P.getPackageName()));
}
}
@Override
public void finish() {
super.finish();
try {
if (this.Q.E() != null || this.Q.F() != null) {
overridePendingTransition(yn.m.a(this.P).d(this.Q.E()), yn.m.a(this.P).d(this.Q.F()));
}
} catch (Exception e11) {
e11.printStackTrace();
n.d("ExceptionShanYanTask", "finish Exception=", e11);
}
}
@SuppressLint({"ResourceType"})
public final void g() {
n.c("UIShanYanTask", "initViews enterAnim", this.Q.E(), "exitAnim", this.Q.F());
if (this.Q.E() != null || this.Q.F() != null) {
overridePendingTransition(yn.m.a(this.P).d(this.Q.E()), yn.m.a(this.P).d(this.Q.F()));
}
ViewGroup viewGroup = (ViewGroup) ((ViewGroup) getWindow().getDecorView().findViewById(R.id.content)).getChildAt(0);
this.I = viewGroup;
if (viewGroup != null) {
for (View view : r(viewGroup)) {
if (view instanceof CheckBox) {
this.K = (CheckBox) view;
}
}
this.J = (RelativeLayout) this.I.findViewById(17476);
this.L = (TextView) this.I.findViewById(30583);
this.K.setChecked(true);
this.I.setVisibility(8);
}
setContentView(yn.m.a(this).b("layout_shanyan_login"));
if (this.Q.a()) {
getWindow().setFlags(8192, 8192);
}
this.I = (ViewGroup) getWindow().getDecorView();
this.M = (TextView) findViewById(yn.m.a(this).c("shanyan_view_tv_per_code"));
this.N = (Button) findViewById(yn.m.a(this).c("shanyan_view_bt_one_key_login"));
this.O = (ImageView) findViewById(yn.m.a(this).c("shanyan_view_navigationbar_back"));
this.R = (RelativeLayout) findViewById(yn.m.a(this).c("shanyan_view_navigationbar_include"));
this.S = (TextView) findViewById(yn.m.a(this).c("shanyan_view_navigationbar_title"));
this.T = (ImageView) findViewById(yn.m.a(this).c("shanyan_view_log_image"));
this.U = (RelativeLayout) findViewById(yn.m.a(this).c("shanyan_view_navigationbar_back_root"));
this.V = (TextView) findViewById(yn.m.a(this).c("shanyan_view_identify_tv"));
this.W = (TextView) findViewById(yn.m.a(this).c("shanyan_view_slogan"));
this.X = (TextView) findViewById(yn.m.a(this).c("shanyan_view_privacy_text"));
this.f10788e0 = (CheckBox) findViewById(yn.m.a(this).c("shanyan_view_privacy_checkbox"));
this.f10791h0 = (RelativeLayout) findViewById(yn.m.a(this).c("shanyan_view_privacy_checkbox_rootlayout"));
this.f10789f0 = (ViewGroup) findViewById(yn.m.a(this).c("shanyan_view_privacy_include"));
this.f10795l0 = (RelativeLayout) findViewById(yn.m.a(this).c("shanyan_view_login_layout"));
this.f10792i0 = (com.chuanglan.shanyan_sdk.view.a) findViewById(yn.m.a(this).c("shanyan_view_sysdk_video_view"));
this.f10787d0 = (RelativeLayout) findViewById(yn.m.a(this).c("shanyan_view_login_boby"));
if (this.f10795l0 != null && this.Q.s1()) {
this.f10795l0.setFitsSystemWindows(true);
}
un.a.c().q(this.f10788e0);
un.a.c().p(this.N);
this.N.setClickable(true);
this.N.setEnabled(true);
f10786r0 = new WeakReference<>(this);
}
public final void h() {
t.b(this.P, "authPageFlag", 0L);
rn.b.f43908n = System.currentTimeMillis();
rn.b.f43909o = SystemClock.uptimeMillis();
}
public final void l() {
this.Q.T0();
}
public final void m() {
RelativeLayout relativeLayout;
RelativeLayout relativeLayout2;
if (this.Y == null) {
this.Y = new ArrayList<>();
}
if (this.Y.size() > 0) {
for (int i11 = 0; i11 < this.Y.size(); i11++) {
if (this.Y.get(i11).f53909b) {
if (this.Y.get(i11).f53910c.getParent() != null) {
relativeLayout2 = this.R;
relativeLayout2.removeView(this.Y.get(i11).f53910c);
}
} else if (this.Y.get(i11).f53910c.getParent() != null) {
relativeLayout2 = this.f10787d0;
relativeLayout2.removeView(this.Y.get(i11).f53910c);
}
}
}
if (this.Q.y() != null) {
this.Y.clear();
this.Y.addAll(this.Q.y());
for (int i12 = 0; i12 < this.Y.size(); i12++) {
if (this.Y.get(i12).f53909b) {
relativeLayout = this.R;
} else {
relativeLayout = this.f10787d0;
}
relativeLayout.addView(this.Y.get(i12).f53910c, 0);
this.Y.get(i12).f53910c.setOnClickListener(new g(i12));
}
}
}
public final void n() {
RelativeLayout relativeLayout;
RelativeLayout relativeLayout2;
if (this.Z == null) {
this.Z = new ArrayList<>();
}
if (this.Z.size() > 0) {
for (int i11 = 0; i11 < this.Z.size(); i11++) {
if (this.Z.get(i11).j() != null) {
if (this.Z.get(i11).h()) {
if (this.Z.get(i11).j().getParent() != null) {
relativeLayout2 = this.R;
relativeLayout2.removeView(this.Z.get(i11).j());
}
} else if (this.Z.get(i11).j().getParent() != null) {
relativeLayout2 = this.f10787d0;
relativeLayout2.removeView(this.Z.get(i11).j());
}
}
}
}
if (this.Q.e() != null) {
this.Z.clear();
this.Z.addAll(this.Q.e());
for (int i12 = 0; i12 < this.Z.size(); i12++) {
if (this.Z.get(i12).j() != null) {
if (this.Z.get(i12).h()) {
relativeLayout = this.R;
} else {
relativeLayout = this.f10787d0;
}
relativeLayout.addView(this.Z.get(i12).j(), 0);
xn.t.h(this.P, this.Z.get(i12));
this.Z.get(i12).j().setOnClickListener(new h(i12));
}
}
}
}
@Override
public void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
n.c("ProcessShanYanLogger", "onConfigurationChanged orientation", Integer.valueOf(this.f10796m0), "newConfig.orientation", Integer.valueOf(configuration.orientation));
try {
int i11 = this.f10796m0;
int i12 = configuration.orientation;
if (i11 != i12) {
this.f10796m0 = i12;
A();
}
} catch (Exception e11) {
e11.printStackTrace();
n.d("ExceptionShanYanTask", "onConfigurationChanged Exception=", e11);
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.P = getApplicationContext();
this.f10796m0 = getResources().getConfiguration().orientation;
this.Q = s.a().d();
this.f10793j0 = SystemClock.uptimeMillis();
this.f10794k0 = System.currentTimeMillis();
if (bundle != null) {
finish();
rn.b.f43914t.set(true);
return;
}
try {
xn.c cVar = this.Q;
if (cVar != null && -1.0f != cVar.z()) {
getWindow().setDimAmount(this.Q.z());
}
g();
e();
h();
A();
m.a().c(1000, "CMCC", yn.e.a(1000, "授权页拉起成功", "授权页拉起成功"), "", rn.b.f43910p, rn.b.f43905k, rn.b.f43904j);
rn.b.f43913s = true;
rn.b.f43896b = "CMCC";
} catch (Exception e11) {
e11.printStackTrace();
m.a().b(1014, "CMCC", yn.e.a(1014, e11.getClass().getSimpleName(), "onCreate--Exception_e=" + e11.toString()), 3, "", e11.toString(), SystemClock.uptimeMillis(), this.f10793j0, this.f10794k0);
rn.b.f43914t.set(true);
n.d("ExceptionShanYanTask", "onCreate Exception=", e11);
finish();
}
}
@Override
public void onDestroy() {
super.onDestroy();
rn.b.f43914t.set(true);
try {
RelativeLayout relativeLayout = this.f10795l0;
if (relativeLayout != null) {
w.a(relativeLayout);
this.f10795l0 = null;
}
ArrayList<zn.a> arrayList = this.Y;
if (arrayList != null) {
arrayList.clear();
this.Y = null;
}
ArrayList<xn.a> arrayList2 = this.Z;
if (arrayList2 != null) {
arrayList2.clear();
this.Z = null;
}
RelativeLayout relativeLayout2 = this.R;
if (relativeLayout2 != null) {
w.a(relativeLayout2);
this.R = null;
}
RelativeLayout relativeLayout3 = this.f10787d0;
if (relativeLayout3 != null) {
w.a(relativeLayout3);
this.f10787d0 = null;
}
com.chuanglan.shanyan_sdk.view.a aVar = this.f10792i0;
if (aVar != null) {
aVar.setOnCompletionListener(null);
this.f10792i0.setOnPreparedListener(null);
this.f10792i0.setOnErrorListener(null);
this.f10792i0 = null;
}
Button button = this.N;
if (button != null) {
w.a(button);
this.N = null;
}
CheckBox checkBox = this.f10788e0;
if (checkBox != null) {
checkBox.setOnCheckedChangeListener(null);
this.f10788e0.setOnClickListener(null);
this.f10788e0 = null;
}
ViewGroup viewGroup = this.f10797n0;
if (viewGroup != null) {
w.a(viewGroup);
this.f10797n0 = null;
}
RelativeLayout relativeLayout4 = this.U;
if (relativeLayout4 != null) {
w.a(relativeLayout4);
this.U = null;
}
RelativeLayout relativeLayout5 = this.f10791h0;
if (relativeLayout5 != null) {
w.a(relativeLayout5);
this.f10791h0 = null;
}
ViewGroup viewGroup2 = this.I;
if (viewGroup2 != null) {
w.a(viewGroup2);
this.I = null;
}
xn.c cVar = this.Q;
if (cVar != null && cVar.y() != null) {
this.Q.y().clear();
}
if (s.a().e() != null && s.a().e().y() != null) {
s.a().e().y().clear();
}
if (s.a().d() != null && s.a().d().y() != null) {
s.a().d().y().clear();
}
xn.c cVar2 = this.Q;
if (cVar2 != null && cVar2.e() != null) {
this.Q.e().clear();
}
if (s.a().e() != null && s.a().e().e() != null) {
s.a().e().e().clear();
}
if (s.a().d() != null && s.a().d().e() != null) {
s.a().d().e().clear();
}
s.a().f();
RelativeLayout relativeLayout6 = this.R;
if (relativeLayout6 != null) {
w.a(relativeLayout6);
this.R = null;
}
ViewGroup viewGroup3 = this.f10789f0;
if (viewGroup3 != null) {
w.a(viewGroup3);
this.f10789f0 = null;
}
ViewGroup viewGroup4 = this.f10790g0;
if (viewGroup4 != null) {
w.a(viewGroup4);
this.f10790g0 = null;
}
un.a.c().R();
this.M = null;
this.O = null;
this.S = null;
this.T = null;
this.V = null;
this.X = null;
this.f10787d0 = null;
l.a().f();
} catch (Exception e11) {
e11.printStackTrace();
n.d("ExceptionShanYanTask", "onDestroy Exception=", e11);
}
}
@Override
public boolean onKeyDown(int i11, KeyEvent keyEvent) {
if (i11 == 4 && keyEvent.getRepeatCount() == 0) {
if (this.Q.o1()) {
finish();
}
m.a().b(1011, "CMCC", yn.e.a(1011, "点击返回,用户取消免密登录", "点击物理返回,用户取消免密登录"), 4, "1011", "点击返回", SystemClock.uptimeMillis(), this.f10793j0, this.f10794k0);
return true;
}
return super.onKeyDown(i11, keyEvent);
}
@Override
public boolean onKeyUp(int i11, KeyEvent keyEvent) {
return true;
}
@Override
public void onRestart() {
super.onRestart();
if (this.f10792i0 != null && this.Q.d() != null) {
xn.t.k(this.f10792i0, this.P, this.Q.d());
}
}
@Override
public void onStop() {
super.onStop();
com.chuanglan.shanyan_sdk.view.a aVar = this.f10792i0;
if (aVar != null) {
aVar.stopPlayback();
}
}
}