正在查看: Empower MX v1.29.4.340 应用的 ExternalPaymentMethodProxyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 ExternalPaymentMethodProxyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet;
import android.content.Intent;
import android.os.Bundle;
import com.stripe.android.paymentsheet.b;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import o9.C2815j;
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0006\b\u0000\u0018\u0000 \u00142\u00020\u0001:\u0001\u0015B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0019\u0010\u0007\u001a\u00020\u00062\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0014¢\u0006\u0004\b\u0007\u0010\bJ\u0019\u0010\u000b\u001a\u00020\u00062\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0015¢\u0006\u0004\b\u000b\u0010\fJ\u000f\u0010\r\u001a\u00020\u0006H\u0014¢\u0006\u0004\b\r\u0010\u0003J\u0017\u0010\u000f\u001a\u00020\u00062\u0006\u0010\u000e\u001a\u00020\u0004H\u0014¢\u0006\u0004\b\u000f\u0010\bR\u0016\u0010\u0013\u001a\u00020\u00108\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u0011\u0010\u0012¨\u0006\u0016"}, d2 = {"Lcom/stripe/android/paymentsheet/ExternalPaymentMethodProxyActivity;", "Landroidx/appcompat/app/c;", "<init>", "()V", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "(Landroid/os/Bundle;)V", "Landroid/content/Intent;", "intent", "onNewIntent", "(Landroid/content/Intent;)V", "onResume", "outState", "onSaveInstanceState", "", "b0", "Z", "hasConfirmStarted", "c0", "a", "paymentsheet_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class ExternalPaymentMethodProxyActivity extends androidx.appcompat.app.c {
public static final int d0 = 8;
private boolean hasConfirmStarted;
protected void onCreate(Bundle savedInstanceState) {
super/*androidx.fragment.app.i*/.onCreate(savedInstanceState);
if (savedInstanceState != null) {
this.hasConfirmStarted = savedInstanceState.getBoolean("has_confirm_started");
}
String stringExtra = getIntent().getStringExtra("external_payment_method_type");
if (stringExtra == null || this.hasConfirmStarted) {
return;
}
this.hasConfirmStarted = true;
C2815j.a.a();
}
protected void onNewIntent(Intent intent) {
super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
setIntent(intent);
}
protected void onResume() {
super/*androidx.fragment.app.i*/.onResume();
String stringExtra = getIntent().getStringExtra("external_payment_method_type");
b bVar = (b) getIntent().getParcelableExtra("external_payment_method_result");
if (stringExtra == null && bVar == null) {
finish();
return;
}
if (bVar != null) {
if (bVar instanceof b.c) {
setResult(-1);
} else if (bVar instanceof b.a) {
setResult(0);
} else if (bVar instanceof b.d) {
Intent putExtra = new Intent().putExtra("external_payment_method_error_message", ((b.d) bVar).a());
Intrinsics.checkNotNullExpressionValue(putExtra, "putExtra(...)");
setResult(1, putExtra);
}
finish();
}
}
protected void onSaveInstanceState(Bundle outState) {
Intrinsics.checkNotNullParameter(outState, "outState");
outState.putBoolean("has_confirm_started", this.hasConfirmStarted);
super/*androidx.activity.ComponentActivity*/.onSaveInstanceState(outState);
}
}