2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.guilds.invite;
|
|
|
|
|
|
|
|
import android.content.Context;
|
2021-08-09 22:51:56 +00:00
|
|
|
import com.discord.R;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.models.domain.ModelInvite;
|
|
|
|
import com.discord.utilities.accessibility.AccessibilityUtils;
|
|
|
|
import com.discord.widgets.guilds.invite.WidgetGuildInviteShareViewModel;
|
|
|
|
import d0.z.d.m;
|
|
|
|
import d0.z.d.o;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: WidgetGuildInviteShare.kt */
|
|
|
|
public final class WidgetGuildInviteShare$configureUI$3 extends o implements Function1<InviteSuggestionItem, Unit> {
|
|
|
|
public final /* synthetic */ ModelInvite $invite;
|
|
|
|
public final /* synthetic */ WidgetGuildInviteShareViewModel.ViewState.Loaded $viewState;
|
|
|
|
public final /* synthetic */ WidgetGuildInviteShare this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetGuildInviteShare$configureUI$3(WidgetGuildInviteShare widgetGuildInviteShare, WidgetGuildInviteShareViewModel.ViewState.Loaded loaded, ModelInvite modelInvite) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = widgetGuildInviteShare;
|
|
|
|
this.$viewState = loaded;
|
|
|
|
this.$invite = modelInvite;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
|
|
public /* bridge */ /* synthetic */ Unit invoke(InviteSuggestionItem inviteSuggestionItem) {
|
|
|
|
invoke(inviteSuggestionItem);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void invoke(InviteSuggestionItem inviteSuggestionItem) {
|
|
|
|
m.checkNotNullParameter(inviteSuggestionItem, "item");
|
|
|
|
WidgetGuildInviteShare.access$sendInvite(this.this$0, inviteSuggestionItem, this.$viewState, this.$invite);
|
|
|
|
AccessibilityUtils accessibilityUtils = AccessibilityUtils.INSTANCE;
|
|
|
|
Context context = WidgetGuildInviteShare.access$getAdapter$p(this.this$0).getContext();
|
2021-08-09 22:51:56 +00:00
|
|
|
String string = this.this$0.getString(R.string.invite_sent);
|
2021-08-03 07:33:18 +00:00
|
|
|
m.checkNotNullExpressionValue(string, "getString(R.string.invite_sent)");
|
|
|
|
accessibilityUtils.sendAnnouncement(context, string);
|
|
|
|
}
|
|
|
|
}
|