17 lines
912 B
Java
17 lines
912 B
Java
|
package com.discord.utilities.hubs;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import androidx.activity.result.ActivityResultLauncher;
|
||
|
import androidx.activity.result.contract.ActivityResultContracts;
|
||
|
import com.discord.app.AppFragment;
|
||
|
import d0.z.d.m;
|
||
|
/* compiled from: HubUtils.kt */
|
||
|
public final class HubUtilsKt {
|
||
|
public static final ActivityResultLauncher<Intent> getAddServerActivityResultHandler(AppFragment appFragment) {
|
||
|
m.checkNotNullParameter(appFragment, "$this$getAddServerActivityResultHandler");
|
||
|
ActivityResultLauncher<Intent> registerForActivityResult = appFragment.registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), new HubUtilsKt$getAddServerActivityResultHandler$1(appFragment));
|
||
|
m.checkNotNullExpressionValue(registerForActivityResult, "registerForActivityResul… )\n }\n }");
|
||
|
return registerForActivityResult;
|
||
|
}
|
||
|
}
|