discord-jadx/app/src/main/java/com/discord/widgets/notice/NoticePopupChannel$createMo...

39 lines
1.5 KiB
Java

package com.discord.widgets.notice;
import android.content.Context;
import android.view.View;
import c0.z.d.m;
import c0.z.d.o;
import com.discord.api.channel.Channel;
import com.discord.api.channel.ChannelUtils;
import com.discord.widgets.channels.settings.WidgetChannelNotificationSettings;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: NoticePopupChannel.kt */
public final class NoticePopupChannel$createModel$onClickTopRightIcon$1 extends o implements Function1<View, Unit> {
public final /* synthetic */ Channel $channel;
public final /* synthetic */ Context $context;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public NoticePopupChannel$createModel$onClickTopRightIcon$1(Channel channel, Context context) {
super(1);
this.$channel = channel;
this.$context = context;
}
/* 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(View view) {
invoke(view);
return Unit.a;
}
public final void invoke(View view) {
m.checkNotNullParameter(view, "it");
if (!ChannelUtils.x(this.$channel)) {
WidgetChannelNotificationSettings.Companion.launch(this.$context, this.$channel.h(), true);
}
}
}