正在查看: Perplexity v2.48.1 应用的 ExternalPaymentMethodProxyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 ExternalPaymentMethodProxyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet;
import J3.n;
import Wi.a;
import android.content.Intent;
import android.os.Bundle;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import wj.AbstractC1741q;
import wj.C1732n;
import wj.C1735o;
import wj.C1738p;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0001\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/stripe/android/paymentsheet/ExternalPaymentMethodProxyActivity;", "LJ3/n;", "<init>", "()V", "paymentsheet_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
@SourceDebugExtension
public final class ExternalPaymentMethodProxyActivity extends n {
public boolean x;
public final void onCreate(Bundle bundle) {
super/*androidx.fragment.app.P*/.onCreate(bundle);
if (bundle != null) {
this.x = bundle.getBoolean("has_confirm_started");
}
String stringExtra = getIntent().getStringExtra("external_payment_method_type");
String stringExtra2 = getIntent().getStringExtra("payment_element_identifier");
if (stringExtra == null || this.x || stringExtra2 == null) {
return;
}
this.x = true;
a.a(stringExtra2);
}
public final void onNewIntent(Intent intent) {
Intrinsics.h(intent, "intent");
super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
setIntent(intent);
}
public final void onResume() {
super/*androidx.fragment.app.P*/.onResume();
String stringExtra = getIntent().getStringExtra("external_payment_method_type");
AbstractC1741q abstractC1741q = (AbstractC1741q) getIntent().getParcelableExtra("external_payment_method_result");
if (stringExtra == null && abstractC1741q == null) {
finish();
return;
}
if (abstractC1741q != null) {
if (abstractC1741q instanceof C1735o) {
setResult(-1);
} else if (abstractC1741q instanceof C1732n) {
setResult(0);
} else {
if (!(abstractC1741q instanceof C1738p)) {
throw new NoWhenBranchMatchedException();
}
Intent putExtra = new Intent().putExtra("external_payment_method_error_message", ((C1738p) abstractC1741q).w);
Intrinsics.g(putExtra, "putExtra(...)");
setResult(1, putExtra);
}
finish();
}
}
public final void onSaveInstanceState(Bundle outState) {
Intrinsics.h(outState, "outState");
outState.putBoolean("has_confirm_started", this.x);
super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
}
}