正在查看: Rilo v2.0.21 应用的 SepaMandateActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Rilo v2.0.21 应用的 SepaMandateActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet.ui;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.activity.compose.ComponentActivityKt;
import androidx.appcompat.app.AppCompatActivity;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionContext;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.ui.Modifier;
import androidx.core.view.WindowCompat;
import com.stripe.android.common.ui.BottomSheetKt;
import com.stripe.android.common.ui.BottomSheetState;
import com.stripe.android.paymentsheet.ui.SepaMandateContract;
import com.stripe.android.paymentsheet.ui.SepaMandateResult;
import com.stripe.android.uicore.StripeThemeKt;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u00020\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006H\u0014¨\u0006\u0007"}, d2 = {"Lcom/stripe/android/paymentsheet/ui/SepaMandateActivity;", "Landroidx/appcompat/app/AppCompatActivity;", "()V", "onCreate", "", "savedInstanceState", "Landroid/os/Bundle;", "paymentsheet_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class SepaMandateActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
Object m1547constructorimpl;
SepaMandateContract.Args fromIntent$paymentsheet_release;
super.onCreate(savedInstanceState);
try {
Result.Companion companion = Result.INSTANCE;
SepaMandateActivity sepaMandateActivity = this;
SepaMandateContract.Args.Companion companion2 = SepaMandateContract.Args.INSTANCE;
Intent intent = getIntent();
Intrinsics.checkNotNullExpressionValue(intent, "intent");
fromIntent$paymentsheet_release = companion2.fromIntent$paymentsheet_release(intent);
} catch (Throwable th) {
Result.Companion companion3 = Result.INSTANCE;
m1547constructorimpl = Result.m1547constructorimpl(ResultKt.createFailure(th));
}
if (fromIntent$paymentsheet_release != null) {
m1547constructorimpl = Result.m1547constructorimpl(fromIntent$paymentsheet_release);
if (Result.m1553isFailureimpl(m1547constructorimpl)) {
m1547constructorimpl = null;
}
SepaMandateContract.Args args = (SepaMandateContract.Args) m1547constructorimpl;
final String merchantName = args != null ? args.getMerchantName() : null;
if (merchantName == null) {
finish();
return;
} else {
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
ComponentActivityKt.setContent$default((ComponentActivity) this, (CompositionContext) null, ComposableLambdaKt.composableLambdaInstance(2089289300, 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) {
if ((i2 & 11) != 2 || !composer.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(2089289300, i2, -1, "com.stripe.android.paymentsheet.ui.SepaMandateActivity.onCreate.<anonymous> (SepaMandateActivity.kt:50)");
}
final SepaMandateActivity sepaMandateActivity2 = SepaMandateActivity.this;
final String str = merchantName;
StripeThemeKt.StripeTheme(null, null, null, ComposableLambdaKt.composableLambda(composer, -620021374, 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) {
if ((i3 & 11) != 2 || !composer2.getSkipping()) {
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventStart(-620021374, i3, -1, "com.stripe.android.paymentsheet.ui.SepaMandateActivity.onCreate.<anonymous>.<anonymous> (SepaMandateActivity.kt:51)");
}
BottomSheetState rememberBottomSheetState = BottomSheetKt.rememberBottomSheetState((Function1) null, composer2, 0, 1);
final SepaMandateActivity sepaMandateActivity3 = SepaMandateActivity.this;
composer2.startReplaceableGroup(1157296644);
ComposerKt.sourceInformation(composer2, "CC(remember)P(1):Composables.kt#9igjgp");
boolean changed = composer2.changed(sepaMandateActivity3);
Object rememberedValue = composer2.rememberedValue();
if (changed || rememberedValue == Composer.Companion.getEmpty()) {
rememberedValue = (Function0) new Function0<Unit>() {
{
super(0);
}
public Object invoke() {
m638invoke();
return Unit.INSTANCE;
}
public final void m638invoke() {
SepaMandateActivity.this.finish();
}
};
composer2.updateRememberedValue(rememberedValue);
}
composer2.endReplaceableGroup();
final String str2 = str;
final SepaMandateActivity sepaMandateActivity4 = SepaMandateActivity.this;
BottomSheetKt.BottomSheet(rememberBottomSheetState, (Modifier) null, (Function0) rememberedValue, ComposableLambdaKt.composableLambda(composer2, 363032988, 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(363032988, i4, -1, "com.stripe.android.paymentsheet.ui.SepaMandateActivity.onCreate.<anonymous>.<anonymous>.<anonymous> (SepaMandateActivity.kt:53)");
}
String str3 = str2;
final SepaMandateActivity sepaMandateActivity5 = sepaMandateActivity4;
composer3.startReplaceableGroup(1157296644);
ComposerKt.sourceInformation(composer3, "CC(remember)P(1):Composables.kt#9igjgp");
boolean changed2 = composer3.changed(sepaMandateActivity5);
Object rememberedValue2 = composer3.rememberedValue();
if (changed2 || rememberedValue2 == Composer.Companion.getEmpty()) {
rememberedValue2 = (Function0) new Function0<Unit>() {
{
super(0);
}
public Object invoke() {
m639invoke();
return Unit.INSTANCE;
}
public final void m639invoke() {
Intent putExtra = new Intent().putExtra("extra_activity_result", SepaMandateResult.Acknowledged.INSTANCE);
Intrinsics.checkNotNullExpressionValue(putExtra, "Intent().putExtra(\n … )");
SepaMandateActivity.this.setResult(-1, putExtra);
SepaMandateActivity.this.finish();
}
};
composer3.updateRememberedValue(rememberedValue2);
}
composer3.endReplaceableGroup();
Function0 function0 = (Function0) rememberedValue2;
final SepaMandateActivity sepaMandateActivity6 = sepaMandateActivity4;
composer3.startReplaceableGroup(1157296644);
ComposerKt.sourceInformation(composer3, "CC(remember)P(1):Composables.kt#9igjgp");
boolean changed3 = composer3.changed(sepaMandateActivity6);
Object rememberedValue3 = composer3.rememberedValue();
if (changed3 || rememberedValue3 == Composer.Companion.getEmpty()) {
rememberedValue3 = (Function0) new Function0<Unit>() {
{
super(0);
}
public Object invoke() {
m640invoke();
return Unit.INSTANCE;
}
public final void m640invoke() {
SepaMandateActivity.this.finish();
}
};
composer3.updateRememberedValue(rememberedValue3);
}
composer3.endReplaceableGroup();
SepaMandateActivityKt.SepaMandateScreen(str3, function0, (Function0) rememberedValue3, composer3, 0);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer3.skipToGroupEnd();
}
}), composer2, 3080, 2);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer2.skipToGroupEnd();
}
}), composer, 3072, 7);
if (ComposerKt.isTraceInProgress()) {
ComposerKt.traceEventEnd();
return;
}
return;
}
composer.skipToGroupEnd();
}
}), 1, (Object) null);
return;
}
}
throw new IllegalArgumentException("SepaMandateActivity was started without arguments.".toString());
}
}