正在查看: Atlys v4.8.7 应用的 GooglePayLauncherActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Atlys v4.8.7 应用的 GooglePayLauncherActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.googlepaylauncher;
import E.j;
import Gh.C0162i1;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import androidx.lifecycle.r0;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.wallet.AutoResolveHelper;
import com.google.android.gms.wallet.PaymentData;
import com.stripe.android.view.C0763x;
import di.AbstractC0771A;
import dn.G;
import e.n;
import k.k;
import ka.B0;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.l;
import kotlin.jvm.internal.z;
import org.json.JSONObject;
import rh.AbstractC1083k;
import rh.AbstractC1088p;
import rh.C1079g;
import rh.C1082j;
import rh.C1084l;
import rh.C1085m;
import rh.C1086n;
import rh.C1087o;
import rh.y;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/stripe/android/googlepaylauncher/GooglePayLauncherActivity;", "Lk/k;", "<init>", "()V", "payments-core_release"}, k = 1, mv = {1, 8, 0})
public final class GooglePayLauncherActivity extends k {
public static final int e1 = 0;
public final j G = new j(z.a.b(y.class), new n(this, 7), new B0(this, 28), new n(this, 8));
public AbstractC1088p I;
public final void finish() {
super/*android.app.Activity*/.finish();
overridePendingTransition(2130772062, 2130772063);
}
public final void j0(AbstractC1083k abstractC1083k) {
setResult(-1, new Intent().putExtras(AbstractC0771A.x(new Pair("extra_result", abstractC1083k))));
finish();
}
public final y k0() {
return (y) this.G.getValue();
}
public final void onActivityResult(int i, int i2, Intent intent) {
super/*androidx.fragment.app.K*/.onActivityResult(i, i2, intent);
if (i != 4444) {
G.C(r0.i(this), (Al.k) null, 0, new C1084l(this, i, intent, null), 3);
return;
}
if (i2 == -1) {
PaymentData fromIntent = intent != null ? PaymentData.getFromIntent(intent) : null;
if (fromIntent == null) {
k0().A.j(new C1082j(new IllegalArgumentException("Google Pay data was not available")));
return;
}
C0162i1 r = C0162i1.t.r(new JSONObject(fromIntent.toJson()));
Window window = getWindow();
G.C(r0.i(this), (Al.k) null, 0, new C1087o(this, new C0763x(this, window != null ? Integer.valueOf(window.getStatusBarColor()) : null), r, null), 3);
return;
}
if (i2 == 0) {
k0().A.j(C1079g.a);
return;
}
if (i2 != 1) {
k0().A.j(new C1082j(new RuntimeException("Google Pay returned an expected result code.")));
return;
}
Status statusFromIntent = AutoResolveHelper.getStatusFromIntent(intent);
String statusMessage = statusFromIntent != null ? statusFromIntent.getStatusMessage() : null;
if (statusMessage == null) {
statusMessage = "";
}
k0().A.j(new C1082j(new RuntimeException("Google Pay failed with error: ".concat(statusMessage))));
}
public final void onCreate(Bundle bundle) {
Object F;
super/*androidx.fragment.app.K*/.onCreate(bundle);
overridePendingTransition(2130772062, 2130772063);
try {
Intent intent = getIntent();
l.g(intent, "intent");
F = (AbstractC1088p) intent.getParcelableExtra("extra_args");
} catch (Throwable th2) {
F = AbstractC0771A.F(th2);
}
if (F == null) {
throw new IllegalArgumentException("GooglePayLauncherActivity was started without arguments.".toString());
}
Throwable a = wl.l.a(F);
if (a != null) {
j0(new C1082j(a));
return;
}
this.I = (AbstractC1088p) F;
G.C(r0.i(this), (Al.k) null, 0, new C1085m(this, null), 3);
if (l.c(k0().z.b("has_launched"), Boolean.TRUE)) {
return;
}
G.C(r0.i(this), (Al.k) null, 0, new C1086n(this, null), 3);
}
}