30 lines
1.2 KiB
Java
30 lines
1.2 KiB
Java
package com.discord.widgets.hubs;
|
|
|
|
import android.content.Intent;
|
|
import androidx.activity.result.ActivityResult;
|
|
import androidx.activity.result.ActivityResultCallback;
|
|
import com.discord.widgets.guilds.create.WidgetGuildCreate;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetHubAddServer.kt */
|
|
public final class WidgetHubAddServer$launcher$1<O> implements ActivityResultCallback<ActivityResult> {
|
|
public final /* synthetic */ WidgetHubAddServer this$0;
|
|
|
|
public WidgetHubAddServer$launcher$1(WidgetHubAddServer widgetHubAddServer) {
|
|
this.this$0 = widgetHubAddServer;
|
|
}
|
|
|
|
public final void onActivityResult(ActivityResult activityResult) {
|
|
WidgetGuildCreate.Result result;
|
|
m.checkNotNullExpressionValue(activityResult, "activityResult");
|
|
Intent data = activityResult.getData();
|
|
if (data != null) {
|
|
if (!(activityResult.getResultCode() == -1)) {
|
|
data = null;
|
|
}
|
|
if (data != null && (result = (WidgetGuildCreate.Result) data.getParcelableExtra("intent_args_key")) != null) {
|
|
WidgetHubAddServer.access$onServerClickListener(this.this$0, result.getGuildId(), true);
|
|
}
|
|
}
|
|
}
|
|
}
|