2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.auth;
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
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-03 07:33:18 +00:00
|
|
|
import kotlin.jvm.functions.Function0;
|
|
|
|
/* compiled from: WidgetAuthUndeleteAccount.kt */
|
|
|
|
public final class WidgetAuthUndeleteAccount$Companion$registerForResult$1<O> implements ActivityResultCallback<ActivityResult> {
|
|
|
|
public final /* synthetic */ Function0 $callback;
|
|
|
|
|
|
|
|
public WidgetAuthUndeleteAccount$Companion$registerForResult$1(Function0 function0) {
|
|
|
|
this.$callback = function0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void onActivityResult(ActivityResult activityResult) {
|
|
|
|
m.checkNotNullExpressionValue(activityResult, "activityResult");
|
|
|
|
Intent data = activityResult.getData();
|
|
|
|
boolean z2 = false;
|
|
|
|
if (data != null) {
|
|
|
|
z2 = data.getBooleanExtra("RESULT_EXTRA_UNDELETE", false);
|
|
|
|
}
|
|
|
|
if (z2) {
|
2021-10-15 06:18:26 +00:00
|
|
|
this.$callback.mo17invoke();
|
2021-08-03 07:33:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|