discord-jadx/app/src/main/java/com/discord/widgets/guilds/invite/ViewInviteSettingsSheet$con...

29 lines
1.3 KiB
Java

package com.discord.widgets.guilds.invite;
import android.view.View;
import com.discord.api.channel.Channel;
import com.discord.models.domain.ModelInvite;
/* compiled from: ViewInviteSettingsSheet.kt */
public final class ViewInviteSettingsSheet$configureUi$10 implements View.OnClickListener {
public final /* synthetic */ WidgetInviteModel $data;
public final /* synthetic */ ViewInviteSettingsSheet this$0;
public ViewInviteSettingsSheet$configureUi$10(ViewInviteSettingsSheet viewInviteSettingsSheet, WidgetInviteModel widgetInviteModel) {
this.this$0 = viewInviteSettingsSheet;
this.$data = widgetInviteModel;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
ModelInvite.Settings access$getPendingInviteSettings$p = ViewInviteSettingsSheet.access$getPendingInviteSettings$p(this.this$0);
if (access$getPendingInviteSettings$p != null) {
this.this$0.getViewModel().updateInviteSettings(access$getPendingInviteSettings$p);
}
Channel targetChannel = this.$data.getTargetChannel();
if (targetChannel != null) {
this.this$0.getViewModel().generateInviteLink(Long.valueOf(targetChannel.h()).longValue());
}
this.this$0.getOnGenerateLinkListener().mo1invoke();
}
}