正在查看: Atlys v4.8.7 应用的 ChallengeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 ChallengeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.stripe3ds2.views;
import Bi.A;
import Bi.C0022b;
import Bi.C0024d;
import Bi.C0025e;
import Bi.C0026f;
import Bi.C0027g;
import Bi.C0028h;
import Bi.J;
import Bi.ViewOnClickListenerC0023c;
import Bi.p;
import Bi.w;
import E.j;
import android.app.Dialog;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import androidx.appcompat.view.e;
import androidx.fragment.app.K;
import androidx.lifecycle.r0;
import bn.l;
import c2.h;
import di.z;
import dn.P;
import k.a;
import k.b;
import k.k;
import kn.c;
import kotlin.Metadata;
import kotlin.jvm.internal.y;
import si.C1115a;
import ui.C1137f;
import ui.EnumC1140i;
import ui.InterfaceC1133b;
import vi.f;
import wl.n;
import yi.C1200I;
import yi.InterfaceC1227m;
import yi.Y;
import zi.C1249d;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/stripe/android/stripe3ds2/views/ChallengeActivity;", "Lk/k;", "<init>", "()V", "3ds2sdk_release"}, k = 1, mv = {1, 7, 1})
public final class ChallengeActivity extends k {
public static final c n1 = P.c;
public final n G = z.c0(new C0024d(this, 7));
public final n I = z.c0(new C0024d(this, 1));
public final n e1 = z.c0(new C0024d(this, 3));
public final n f1;
public final n g1;
public final n h1;
public final j i1;
public final n j1;
public final n k1;
public final n l1;
public Dialog m1;
public ChallengeActivity() {
z.c0(new C0024d(this, 4));
this.f1 = z.c0(new C0024d(this, 9));
this.g1 = z.c0(new C0024d(this, 0));
this.h1 = z.c0(new C0024d(this, 2));
this.i1 = new j(kotlin.jvm.internal.z.a.b(p.class), new C0028h(this, 0), new C0024d(this, 10), new C0028h(this, 1));
this.j1 = z.c0(new C0024d(this, 8));
this.k1 = z.c0(new C0024d(this, 5));
this.l1 = z.c0(new C0024d(this, 6));
}
public final void j0() {
K k = ((J) this.k1.getValue()).a;
InputMethodManager inputMethodManager = (InputMethodManager) h.getSystemService(k, InputMethodManager.class);
if (inputMethodManager == null || !inputMethodManager.isAcceptingText()) {
return;
}
View currentFocus = k.getCurrentFocus();
inputMethodManager.hideSoftInputFromWindow(currentFocus != null ? currentFocus.getWindowToken() : null, 0);
}
public final A k0() {
return (A) this.j1.getValue();
}
public final p l0() {
return (p) this.i1.getValue();
}
public final void onCreate(Bundle bundle) {
View view;
getSupportFragmentManager().B = new w(k0().c, (C1200I) this.G.getValue(), (Y) this.h1.getValue(), (f) this.I.getValue(), (InterfaceC1227m) this.g1.getValue(), k0().a.B, k0().g, n1);
super/*androidx.fragment.app.K*/.onCreate(bundle);
e.J onBackPressedDispatcher = getOnBackPressedDispatcher();
C0025e c0025e = new C0025e(this, 0);
onBackPressedDispatcher.getClass();
onBackPressedDispatcher.b(c0025e);
getWindow().setFlags(8192, 8192);
setContentView(((C1115a) this.f1.getValue()).a);
l0().z.observe(this, new C0022b(new C0026f(this, 0), 0));
l0().B.observe(this, new C0022b(new C0026f(this, 1), 1));
C1137f c1137f = k0().c.a;
InterfaceC1133b a = k0().c.a(EnumC1140i.d);
b supportActionBar = getSupportActionBar();
if (supportActionBar == null) {
view = null;
} else {
?? threeDS2Button = new ThreeDS2Button(new e(this, 2132083257), null, 6);
threeDS2Button.setBackgroundTintList(ColorStateList.valueOf(0));
threeDS2Button.setButtonCustomization(a);
a aVar = new a(-2, -2);
aVar.a = 8388629;
supportActionBar.n((ThreeDS2Button) threeDS2Button, aVar);
supportActionBar.q();
if (c1137f != null) {
String str = c1137f.g;
if (str == null || l.y0(str)) {
threeDS2Button.setText(2132018007);
} else {
threeDS2Button.setText(str);
}
String str2 = c1137f.d;
if (str2 != null) {
supportActionBar.m(new ColorDrawable(Color.parseColor(str2)));
String str3 = c1137f.e;
if (str3 != null) {
getWindow().setStatusBarColor(Color.parseColor(str3));
} else {
getWindow().setStatusBarColor(Color.argb(Color.alpha(Color.parseColor(str2)), Math.min(Math.max((int) (Color.red(r1) * 0.8f), 0), 255), Math.min(Math.max((int) (Color.green(r1) * 0.8f), 0), 255), Math.min(Math.max((int) (Color.blue(r1) * 0.8f), 0), 255)));
}
}
String str4 = c1137f.f;
if (str4 == null || l.y0(str4)) {
str4 = getString(2132018008);
kotlin.jvm.internal.l.g(str4, "{\n activi…ader_label)\n }");
}
supportActionBar.x(a.a.S(this, str4, c1137f));
view = threeDS2Button;
} else {
supportActionBar.w();
threeDS2Button.setText(2132018007);
view = threeDS2Button;
}
}
if (view != null) {
view.setOnClickListener(new ViewOnClickListenerC0023c(view, this, 0));
}
y yVar = new y();
yVar.a = "";
l0().G.observe(this, new C0022b(new C0027g(this, yVar, 0), 2));
if (bundle == null) {
p l0 = l0();
C1249d cres = k0().a;
kotlin.jvm.internal.l.h(cres, "cres");
l0.F.setValue(cres);
}
r0.m(new Bi.n(l0(), null)).observe(this, new C0022b(new C0027g(this, yVar, 1), 3));
}
public final void onDestroy() {
super.onDestroy();
Dialog dialog = this.m1;
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
}
this.m1 = null;
}
public final void onLowMemory() {
super/*android.app.Activity*/.onLowMemory();
((Ai.b) l0().u).getClass();
Ai.b.b.evictAll();
}
public final void onPause() {
super/*androidx.fragment.app.K*/.onPause();
l0().I = true;
j0();
}
public final void onResume() {
super/*androidx.fragment.app.K*/.onResume();
if (l0().I) {
l0().w.setValue(wl.y.a);
}
}
public final void onTrimMemory(int i) {
super/*androidx.activity.ComponentActivity*/.onTrimMemory(i);
((Ai.b) l0().u).getClass();
Ai.b.b.evictAll();
}
}