48 lines
2.1 KiB
Java
48 lines
2.1 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 */
|
|
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 */
|
|
public static final class AnonymousClass1 extends ActivityResultContract<Unit, O> {
|
|
public final /* synthetic */ ActivityResultCallerLauncher$resultContract$2 this$0;
|
|
|
|
public AnonymousClass1(ActivityResultCallerLauncher$resultContract$2 activityResultCallerLauncher$resultContract$2) {
|
|
this.this$0 = activityResultCallerLauncher$resultContract$2;
|
|
}
|
|
|
|
public Intent createIntent(Context context, Unit unit) {
|
|
m.checkNotNullParameter(context, "context");
|
|
Intent createIntent = this.this$0.this$0.getCallerContract().createIntent(context, this.this$0.this$0.getInput());
|
|
m.checkNotNullExpressionValue(createIntent, "callerContract.createIntent(context, input)");
|
|
return createIntent;
|
|
}
|
|
|
|
/* JADX WARNING: Unknown variable types count: 1 */
|
|
@Override // androidx.activity.result.contract.ActivityResultContract
|
|
public O parseResult(int i, Intent intent) {
|
|
return this.this$0.this$0.getCallerContract().parseResult(i, intent);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: 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;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final AnonymousClass1 mo1invoke() {
|
|
return new AnonymousClass1(this);
|
|
}
|
|
}
|