discord-jadx/app/src/main/java/com/discord/widgets/channels/list/WidgetChannelsListItemChann...

50 lines
2.4 KiB
Java

package com.discord.widgets.channels.list;
import android.content.Context;
import android.view.View;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.discord.widgets.channels.WidgetChannelGroupDMSettings;
import com.discord.widgets.channels.WidgetTextChannelSettings;
import com.discord.widgets.channels.list.WidgetChannelsListItemChannelActions;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetChannelsListItemChannelActions.kt */
public final class WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$4 extends o implements Function1<View, Unit> {
public final /* synthetic */ WidgetChannelsListItemChannelActions.Model $this_configureUI$inlined;
public final /* synthetic */ WidgetChannelsListItemChannelActions this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$4(WidgetChannelsListItemChannelActions widgetChannelsListItemChannelActions, WidgetChannelsListItemChannelActions.Model model) {
super(1);
this.this$0 = widgetChannelsListItemChannelActions;
this.$this_configureUI$inlined = model;
}
/* 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, "view");
if (AnimatableValueParser.q1(this.$this_configureUI$inlined.getChannel())) {
WidgetChannelGroupDMSettings.Companion companion = WidgetChannelGroupDMSettings.Companion;
long h = this.$this_configureUI$inlined.getChannel().h();
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "view.context");
companion.create(h, context);
return;
}
WidgetTextChannelSettings.Companion companion2 = WidgetTextChannelSettings.Companion;
long h2 = this.$this_configureUI$inlined.getChannel().h();
Context context2 = view.getContext();
m.checkNotNullExpressionValue(context2, "view.context");
companion2.launch(h2, context2);
}
}