2021-08-18 06:27:30 +00:00
|
|
|
package com.discord.widgets.guildscheduledevent;
|
|
|
|
|
|
|
|
import androidx.activity.result.ActivityResult;
|
|
|
|
import androidx.activity.result.ActivityResultCallback;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
2021-08-18 06:27:30 +00:00
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: WidgetGuildScheduledEventSettings.kt */
|
|
|
|
public final class WidgetGuildScheduledEventSettings$Companion$registerForResult$1<O> implements ActivityResultCallback<ActivityResult> {
|
|
|
|
public final /* synthetic */ Function0 $onFinished;
|
|
|
|
public final /* synthetic */ Function0 $onQuit;
|
|
|
|
|
|
|
|
public WidgetGuildScheduledEventSettings$Companion$registerForResult$1(Function0 function0, Function0 function02) {
|
|
|
|
this.$onFinished = function0;
|
|
|
|
this.$onQuit = function02;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void onActivityResult(ActivityResult activityResult) {
|
|
|
|
m.checkNotNullExpressionValue(activityResult, "result");
|
|
|
|
int resultCode = activityResult.getResultCode();
|
|
|
|
if (resultCode == -1) {
|
2021-10-15 06:18:26 +00:00
|
|
|
this.$onFinished.mo17invoke();
|
2021-08-18 06:27:30 +00:00
|
|
|
} else if (resultCode == 2) {
|
2021-10-15 06:18:26 +00:00
|
|
|
this.$onQuit.mo17invoke();
|
2021-08-18 06:27:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|