47 lines
2.0 KiB
Java
47 lines
2.0 KiB
Java
package androidx.activity.result;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import androidx.activity.result.contract.ActivityResultContract;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: ActivityResultCaller.kt */
|
|
/* loaded from: classes.dex */
|
|
public final class ActivityResultCallerLauncher$resultContract$2 extends o implements Function0<AnonymousClass1> {
|
|
public final /* synthetic */ ActivityResultCallerLauncher this$0;
|
|
|
|
/* compiled from: ActivityResultCaller.kt */
|
|
/* renamed from: androidx.activity.result.ActivityResultCallerLauncher$resultContract$2$1 reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
public static final class AnonymousClass1 extends ActivityResultContract<Unit, O> {
|
|
public AnonymousClass1() {
|
|
}
|
|
|
|
public Intent createIntent(Context context, Unit unit) {
|
|
m.checkNotNullParameter(context, "context");
|
|
Intent createIntent = ActivityResultCallerLauncher$resultContract$2.this.this$0.getCallerContract().createIntent(context, ActivityResultCallerLauncher$resultContract$2.this.this$0.getInput());
|
|
m.checkNotNullExpressionValue(createIntent, "callerContract.createIntent(context, input)");
|
|
return createIntent;
|
|
}
|
|
|
|
@Override // androidx.activity.result.contract.ActivityResultContract
|
|
public O parseResult(int i, Intent intent) {
|
|
return ActivityResultCallerLauncher$resultContract$2.this.this$0.getCallerContract().parseResult(i, intent);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public ActivityResultCallerLauncher$resultContract$2(ActivityResultCallerLauncher activityResultCallerLauncher) {
|
|
super(0);
|
|
this.this$0 = activityResultCallerLauncher;
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final AnonymousClass1 invoke() {
|
|
return new AnonymousClass1();
|
|
}
|
|
}
|