正在查看: Biko v2.0.23 应用的 AddressElementActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Biko v2.0.23 应用的 AddressElementActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet.addresselement;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.activity.compose.BackHandlerKt;
import androidx.activity.compose.ComponentActivityKt;
import androidx.compose.foundation.BorderStroke;
import androidx.compose.foundation.layout.SizeKt;
import androidx.compose.material.SurfaceKt;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionContext;
import androidx.compose.runtime.CompositionScopedCoroutineScopeCanceller;
import androidx.compose.runtime.EffectsKt;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.graphics.Shape;
import androidx.core.view.WindowCompat;
import androidx.lifecycle.ViewModelLazy;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import androidx.lifecycle.viewmodel.CreationExtras;
import androidx.navigation.NamedNavArgumentKt;
import androidx.navigation.NavArgumentBuilder;
import androidx.navigation.NavBackStackEntry;
import androidx.navigation.NavGraphBuilder;
import androidx.navigation.NavHostController;
import androidx.navigation.NavType;
import androidx.navigation.Navigator;
import androidx.navigation.compose.NavGraphBuilderKt;
import androidx.navigation.compose.NavHostControllerKt;
import androidx.navigation.compose.NavHostKt;
import com.stripe.android.common.ui.BottomSheetKt;
import com.stripe.android.common.ui.BottomSheetState;
import com.stripe.android.paymentsheet.PaymentSheet;
import com.stripe.android.paymentsheet.PaymentSheetConfigurationKtxKt;
import com.stripe.android.paymentsheet.addresselement.AddressElementActivityContract;
import com.stripe.android.paymentsheet.addresselement.AddressElementScreen;
import com.stripe.android.paymentsheet.addresselement.AddressElementViewModel;
import com.stripe.android.paymentsheet.addresselement.AddressLauncher;
import com.stripe.android.paymentsheet.addresselement.AddressLauncherResult;
import com.stripe.android.uicore.StripeThemeKt;
import com.stripe.android.utils.AnimationConstants;
import java.util.List;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.EmptyCoroutineContext;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.AdaptedFunctionReference;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.CoroutineStart;
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0015\u001a\u00020\u0016H\u0016J\u0012\u0010\u0017\u001a\u00020\u00162\b\u0010\u0018\u001a\u0004\u0018\u00010\u0019H\u0014J\u0012\u0010\u001a\u001a\u00020\u00162\b\b\u0002\u0010\u001b\u001a\u00020\u001cH\u0002R\u001b\u0010\u0003\u001a\u00020\u00048BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0007\u0010\b\u001a\u0004\b\u0005\u0010\u0006R\u001b\u0010\t\u001a\u00020\n8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\r\u0010\b\u001a\u0004\b\u000b\u0010\fR$\u0010\u000e\u001a\u00020\u000f8\u0000@\u0000X\u0081\u000e¢\u0006\u0014\n\u0000\u0012\u0004\b\u0010\u0010\u0002\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014¨\u0006\u001d"}, d2 = {"Lcom/stripe/android/paymentsheet/addresselement/AddressElementActivity;", "Landroidx/activity/ComponentActivity;", "()V", "starterArgs", "Lcom/stripe/android/paymentsheet/addresselement/AddressElementActivityContract$Args;", "getStarterArgs", "()Lcom/stripe/android/paymentsheet/addresselement/AddressElementActivityContract$Args;", "starterArgs$delegate", "Lkotlin/Lazy;", "viewModel", "Lcom/stripe/android/paymentsheet/addresselement/AddressElementViewModel;", "getViewModel", "()Lcom/stripe/android/paymentsheet/addresselement/AddressElementViewModel;", "viewModel$delegate", "viewModelFactory", "Landroidx/lifecycle/ViewModelProvider$Factory;", "getViewModelFactory$paymentsheet_release$annotations", "getViewModelFactory$paymentsheet_release", "()Landroidx/lifecycle/ViewModelProvider$Factory;", "setViewModelFactory$paymentsheet_release", "(Landroidx/lifecycle/ViewModelProvider$Factory;)V", "finish", "", "onCreate", "savedInstanceState", "Landroid/os/Bundle;", "setResult", "result", "Lcom/stripe/android/paymentsheet/addresselement/AddressLauncherResult;", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class AddressElementActivity extends ComponentActivity {
private final Lazy viewModel;
private ViewModelProvider.Factory viewModelFactory = new AddressElementViewModel.Factory(new Function0<Application>() {
{
super(0);
}
public final Application m330invoke() {
Application application = AddressElementActivity.this.getApplication();
Intrinsics.checkNotNullExpressionValue(application, "application");
return application;
}
}, new Function0<AddressElementActivityContract.Args>() {
{
super(0);
}
public final AddressElementActivityContract.Args m331invoke() {
AddressElementActivityContract.Args starterArgs;
starterArgs = AddressElementActivity.this.getStarterArgs();
return starterArgs;
}
});
private final Lazy starterArgs = LazyKt.lazy(new Function0<AddressElementActivityContract.Args>() {
{
super(0);
}
public final AddressElementActivityContract.Args m328invoke() {
AddressElementActivityContract.Args.Companion companion = AddressElementActivityContract.Args.INSTANCE;
Intent intent = AddressElementActivity.this.getIntent();
Intrinsics.checkNotNullExpressionValue(intent, "intent");
AddressElementActivityContract.Args fromIntent$paymentsheet_release = companion.fromIntent$paymentsheet_release(intent);
if (fromIntent$paymentsheet_release != null) {
return fromIntent$paymentsheet_release;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
});
public static void getViewModelFactory$paymentsheet_release$annotations() {
}
public AddressElementActivity() {
final AddressElementActivity addressElementActivity = this;
final Function0 function0 = null;
this.viewModel = new ViewModelLazy(Reflection.getOrCreateKotlinClass(AddressElementViewModel.class), new Function0<ViewModelStore>() {
{
super(0);
}
public final ViewModelStore m324invoke() {
ViewModelStore viewModelStore = addressElementActivity.getViewModelStore();
Intrinsics.checkNotNullExpressionValue(viewModelStore, "viewModelStore");
return viewModelStore;
}
}, new Function0<ViewModelProvider.Factory>() {
{
super(0);
}
public final ViewModelProvider.Factory m329invoke() {
return AddressElementActivity.this.getViewModelFactory();
}
}, new Function0<CreationExtras>() {
{
super(0);
}
public final CreationExtras m325invoke() {
CreationExtras creationExtras;
Function0 function02 = function0;
if (function02 != null && (creationExtras = (CreationExtras) function02.invoke()) != null) {
return creationExtras;
}
CreationExtras defaultViewModelCreationExtras = addressElementActivity.getDefaultViewModelCreationExtras();
Intrinsics.checkNotNullExpressionValue(defaultViewModelCreationExtras, "this.defaultViewModelCreationExtras");
return defaultViewModelCreationExtras;
}
});
}
public final ViewModelProvider.Factory getViewModelFactory() {
return this.viewModelFactory;
}
public final void setViewModelFactory$paymentsheet_release(ViewModelProvider.Factory factory) {
Intrinsics.checkNotNullParameter(factory, "<set-?>");
this.viewModelFactory = factory;
}
public final AddressElementViewModel getViewModel() {
return (AddressElementViewModel) this.viewModel.getValue();
}
public final AddressElementActivityContract.Args getStarterArgs() {
return (AddressElementActivityContract.Args) this.starterArgs.getValue();
}
protected void onCreate(Bundle savedInstanceState) {
PaymentSheet.Appearance appearance;
super.onCreate(savedInstanceState);
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
AddressLauncher.Configuration config$paymentsheet_release = getStarterArgs().getConfig$paymentsheet_release();
if (config$paymentsheet_release != null && (appearance = config$paymentsheet_release.getAppearance()) != null) {
PaymentSheetConfigurationKtxKt.parseAppearance(appearance);
}
ComponentActivityKt.setContent$default(this, (CompositionContext) null, ComposableLambdaKt.composableLambdaInstance(1953035352, true, new Function2<Composer, Integer, Unit>() {
{
super(2);
}
public Object invoke(Object obj, Object obj2) {
invoke((Composer) obj, ((Number) obj2).intValue());
return Unit.INSTANCE;
}
public final void invoke(Composer composer, int i2) {
AddressElementViewModel viewModel;
AddressElementViewModel viewModel2;
if ((i2 & 11) != 2 || !composer.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(1953035352, i2, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous> (AddressElementActivity.kt:52)");
}
composer.startReplaceableGroup(773894976);
ComposerKt.sourceInformation(composer, "CC(rememberCoroutineScope)488@20446L144:Effects.kt#9igjgp");
composer.startReplaceableGroup(-492369756);
ComposerKt.sourceInformation(composer, "CC(remember):Composables.kt#9igjgp");
Object rememberedValue = composer.rememberedValue();
if (rememberedValue == Composer.Companion.getEmpty()) {
CompositionScopedCoroutineScopeCanceller compositionScopedCoroutineScopeCanceller = new CompositionScopedCoroutineScopeCanceller(EffectsKt.createCompositionCoroutineScope(EmptyCoroutineContext.INSTANCE, composer));
composer.updateRememberedValue(compositionScopedCoroutineScopeCanceller);
rememberedValue = compositionScopedCoroutineScopeCanceller;
}
composer.endReplaceableGroup();
final CoroutineScope coroutineScope = ((CompositionScopedCoroutineScopeCanceller) rememberedValue).getCoroutineScope();
composer.endReplaceableGroup();
final NavHostController rememberNavController = NavHostControllerKt.rememberNavController(new Navigator[0], composer, 8);
viewModel = AddressElementActivity.this.getViewModel();
viewModel.getNavigator().setNavigationController(rememberNavController);
final BottomSheetState rememberBottomSheetState = BottomSheetKt.rememberBottomSheetState((Function1) null, composer, 0, 1);
final AddressElementActivity addressElementActivity = AddressElementActivity.this;
BackHandlerKt.BackHandler(false, new Function0<Unit>() {
{
super(0);
}
public Object invoke() {
m326invoke();
return Unit.INSTANCE;
}
public final void m326invoke() {
AddressElementViewModel viewModel3;
viewModel3 = AddressElementActivity.this.getViewModel();
viewModel3.getNavigator().onBack();
}
}, composer, 0, 1);
viewModel2 = AddressElementActivity.this.getViewModel();
AddressElementNavigator navigator = viewModel2.getNavigator();
final AddressElementActivity addressElementActivity2 = AddressElementActivity.this;
navigator.setOnDismiss(new Function1<AddressLauncherResult, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((AddressLauncherResult) obj);
return Unit.INSTANCE;
}
public final void invoke(AddressLauncherResult addressLauncherResult) {
Intrinsics.checkNotNullParameter(addressLauncherResult, "result");
BuildersKt.launch$default(coroutineScope, (CoroutineContext) null, (CoroutineStart) null, new AnonymousClass1(rememberBottomSheetState, addressElementActivity2, addressLauncherResult, null), 3, (Object) null);
}
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u008a@"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 8, 0}, xi = 48)
@DebugMetadata(c = "com.stripe.android.paymentsheet.addresselement.AddressElementActivity$onCreate$1$2$1", f = "AddressElementActivity.kt", i = {}, l = {66}, m = "invokeSuspend", n = {}, s = {})
static final class AnonymousClass1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
final BottomSheetState $bottomSheetState;
final AddressLauncherResult $result;
int label;
final AddressElementActivity this$0;
AnonymousClass1(BottomSheetState bottomSheetState, AddressElementActivity addressElementActivity, AddressLauncherResult addressLauncherResult, Continuation<? super AnonymousClass1> continuation) {
super(2, continuation);
this.$bottomSheetState = bottomSheetState;
this.this$0 = addressElementActivity;
this.$result = addressLauncherResult;
}
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
return new AnonymousClass1(this.$bottomSheetState, this.this$0, this.$result, continuation);
}
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
return create(coroutineScope, continuation).invokeSuspend(Unit.INSTANCE);
}
public final Object invokeSuspend(Object obj) {
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i2 = this.label;
if (i2 == 0) {
ResultKt.throwOnFailure(obj);
this.label = 1;
if (this.$bottomSheetState.hide((Continuation) this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i2 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
this.this$0.setResult(this.$result);
this.this$0.finish();
return Unit.INSTANCE;
}
}
});
final AddressElementActivity addressElementActivity3 = AddressElementActivity.this;
StripeThemeKt.StripeTheme(null, null, null, ComposableLambdaKt.composableLambda(composer, 1044576262, true, new Function2<Composer, Integer, Unit>() {
{
super(2);
}
public Object invoke(Object obj, Object obj2) {
invoke((Composer) obj, ((Number) obj2).intValue());
return Unit.INSTANCE;
}
public final void invoke(Composer composer2, int i3) {
AddressElementViewModel viewModel3;
if ((i3 & 11) != 2 || !composer2.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(1044576262, i3, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous> (AddressElementActivity.kt:71)");
}
BottomSheetState bottomSheetState = rememberBottomSheetState;
viewModel3 = addressElementActivity3.getViewModel();
AnonymousClass1 anonymousClass1 = new AnonymousClass1(viewModel3.getNavigator());
final NavHostController navHostController = rememberNavController;
final AddressElementActivity addressElementActivity4 = addressElementActivity3;
BottomSheetKt.BottomSheet(bottomSheetState, (Modifier) null, anonymousClass1, ComposableLambdaKt.composableLambda(composer2, 730537376, true, new Function2<Composer, Integer, Unit>() {
{
super(2);
}
public Object invoke(Object obj, Object obj2) {
invoke((Composer) obj, ((Number) obj2).intValue());
return Unit.INSTANCE;
}
public final void invoke(Composer composer3, int i4) {
if ((i4 & 11) != 2 || !composer3.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(730537376, i4, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:75)");
}
Modifier fillMaxSize$default = SizeKt.fillMaxSize$default(Modifier.Companion, 0.0f, 1, (Object) null);
final NavHostController navHostController2 = navHostController;
final AddressElementActivity addressElementActivity5 = addressElementActivity4;
SurfaceKt.Surface-F-jzlyU(fillMaxSize$default, (Shape) null, 0L, 0L, (BorderStroke) null, 0.0f, ComposableLambdaKt.composableLambda(composer3, 244664284, true, new Function2<Composer, Integer, Unit>() {
{
super(2);
}
public Object invoke(Object obj, Object obj2) {
invoke((Composer) obj, ((Number) obj2).intValue());
return Unit.INSTANCE;
}
public final void invoke(Composer composer4, int i5) {
if ((i5 & 11) != 2 || !composer4.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(244664284, i5, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:76)");
}
NavHostController navHostController3 = navHostController2;
String route = AddressElementScreen.InputAddress.INSTANCE.getRoute();
final AddressElementActivity addressElementActivity6 = addressElementActivity5;
NavHostKt.NavHost(navHostController3, route, (Modifier) null, (String) null, new Function1<NavGraphBuilder, Unit>() {
{
super(1);
}
public Object invoke(Object obj) {
invoke((NavGraphBuilder) obj);
return Unit.INSTANCE;
}
public final void invoke(NavGraphBuilder navGraphBuilder) {
Intrinsics.checkNotNullParameter(navGraphBuilder, "$this$NavHost");
String route2 = AddressElementScreen.InputAddress.INSTANCE.getRoute();
final AddressElementActivity addressElementActivity7 = AddressElementActivity.this;
NavGraphBuilderKt.composable$default(navGraphBuilder, route2, (List) null, (List) null, ComposableLambdaKt.composableLambdaInstance(89937249, true, new Function3<NavBackStackEntry, Composer, Integer, Unit>() {
{
super(3);
}
public Object invoke(Object obj, Object obj2, Object obj3) {
invoke((NavBackStackEntry) obj, (Composer) obj2, ((Number) obj3).intValue());
return Unit.INSTANCE;
}
public final void invoke(NavBackStackEntry navBackStackEntry, Composer composer5, int i6) {
AddressElementViewModel viewModel4;
Intrinsics.checkNotNullParameter(navBackStackEntry, "it");
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(89937249, i6, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:81)");
}
viewModel4 = AddressElementActivity.this.getViewModel();
InputAddressScreenKt.InputAddressScreen(viewModel4.getInputAddressViewModelSubcomponentBuilderProvider(), composer5, 8);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
}
}), 6, (Object) null);
List listOf = CollectionsKt.listOf(NamedNavArgumentKt.navArgument("country", new Function1<NavArgumentBuilder, Unit>() {
public Object invoke(Object obj) {
invoke((NavArgumentBuilder) obj);
return Unit.INSTANCE;
}
public final void invoke(NavArgumentBuilder navArgumentBuilder) {
Intrinsics.checkNotNullParameter(navArgumentBuilder, "$this$navArgument");
navArgumentBuilder.setType(NavType.StringType);
}
}));
final AddressElementActivity addressElementActivity8 = AddressElementActivity.this;
NavGraphBuilderKt.composable$default(navGraphBuilder, AddressElementScreen.Autocomplete.route, listOf, (List) null, ComposableLambdaKt.composableLambdaInstance(564143896, true, new Function3<NavBackStackEntry, Composer, Integer, Unit>() {
{
super(3);
}
public Object invoke(Object obj, Object obj2, Object obj3) {
invoke((NavBackStackEntry) obj, (Composer) obj2, ((Number) obj3).intValue());
return Unit.INSTANCE;
}
public final void invoke(NavBackStackEntry navBackStackEntry, Composer composer5, int i6) {
AddressElementViewModel viewModel4;
Intrinsics.checkNotNullParameter(navBackStackEntry, "backStackEntry");
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(564143896, i6, -1, "com.stripe.android.paymentsheet.addresselement.AddressElementActivity.onCreate.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous> (AddressElementActivity.kt:91)");
}
Bundle arguments = navBackStackEntry.getArguments();
String string = arguments != null ? arguments.getString("country") : null;
viewModel4 = AddressElementActivity.this.getViewModel();
AutocompleteScreenKt.AutocompleteScreen(viewModel4.getAutoCompleteViewModelSubcomponentBuilderProvider(), string, composer5, 8);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
}
}
}), 4, (Object) null);
}
}, composer4, 8, 12);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer4.skipToGroupEnd();
}
}), composer3, 1572870, 62);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer3.skipToGroupEnd();
}
}), composer2, 3080, 2);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer2.skipToGroupEnd();
}
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
class AnonymousClass1 extends AdaptedFunctionReference implements Function0<Unit> {
AnonymousClass1(Object obj) {
super(0, obj, AddressElementNavigator.class, "dismiss", "dismiss(Lcom/stripe/android/paymentsheet/addresselement/AddressLauncherResult;)V", 0);
}
public Object invoke() {
m327invoke();
return Unit.INSTANCE;
}
public final void m327invoke() {
AddressElementNavigator.dismiss$default((AddressElementNavigator) this.receiver, null, 1, null);
}
}
}), composer, 3072, 7);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer.skipToGroupEnd();
}
}), 1, (Object) null);
}
static void setResult$default(AddressElementActivity addressElementActivity, AddressLauncherResult addressLauncherResult, int i2, Object obj) {
if ((i2 & 1) != 0) {
addressLauncherResult = AddressLauncherResult.Canceled.INSTANCE;
}
addressElementActivity.setResult(addressLauncherResult);
}
public final void setResult(AddressLauncherResult result) {
setResult(result.getResultCode$paymentsheet_release(), new Intent().putExtras(new AddressElementActivityContract.Result(result).toBundle()));
}
public void finish() {
super.finish();
overridePendingTransition(AnimationConstants.INSTANCE.getFADE_IN(), AnimationConstants.INSTANCE.getFADE_OUT());
}
}