57 lines
2.9 KiB
Java
57 lines
2.9 KiB
Java
package com.discord.widgets.channels.list;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import com.discord.api.channel.ChannelUtils;
|
|
import com.discord.widgets.channels.list.WidgetChannelsListItemChannelActions;
|
|
import com.discord.widgets.channels.settings.WidgetChannelGroupDMSettings;
|
|
import com.discord.widgets.channels.settings.WidgetTextChannelSettings;
|
|
import com.discord.widgets.voice.settings.WidgetVoiceChannelSettings;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetChannelsListItemChannelActions.kt */
|
|
/* loaded from: classes2.dex */
|
|
public final class WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$5 extends o implements Function1<View, Unit> {
|
|
public final /* synthetic */ WidgetChannelsListItemChannelActions.Model $this_configureUI$inlined;
|
|
public final /* synthetic */ WidgetChannelsListItemChannelActions this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelsListItemChannelActions$configureUI$$inlined$apply$lambda$5(WidgetChannelsListItemChannelActions widgetChannelsListItemChannelActions, WidgetChannelsListItemChannelActions.Model model) {
|
|
super(1);
|
|
this.this$0 = widgetChannelsListItemChannelActions;
|
|
this.$this_configureUI$inlined = model;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(View view) {
|
|
invoke2(view);
|
|
return Unit.a;
|
|
}
|
|
|
|
/* renamed from: invoke reason: avoid collision after fix types in other method */
|
|
public final void invoke2(View view) {
|
|
m.checkNotNullParameter(view, "view");
|
|
if (ChannelUtils.x(this.$this_configureUI$inlined.getChannel())) {
|
|
WidgetChannelGroupDMSettings.Companion companion = WidgetChannelGroupDMSettings.Companion;
|
|
long j = this.$this_configureUI$inlined.getChannel().j();
|
|
Context context = view.getContext();
|
|
m.checkNotNullExpressionValue(context, "view.context");
|
|
companion.create(j, context);
|
|
} else if (ChannelUtils.u(this.$this_configureUI$inlined.getChannel())) {
|
|
WidgetVoiceChannelSettings.Companion companion2 = WidgetVoiceChannelSettings.Companion;
|
|
long j2 = this.$this_configureUI$inlined.getChannel().j();
|
|
Context context2 = view.getContext();
|
|
m.checkNotNullExpressionValue(context2, "view.context");
|
|
companion2.launch(j2, context2);
|
|
} else {
|
|
WidgetTextChannelSettings.Companion companion3 = WidgetTextChannelSettings.Companion;
|
|
long j3 = this.$this_configureUI$inlined.getChannel().j();
|
|
Context context3 = view.getContext();
|
|
m.checkNotNullExpressionValue(context3, "view.context");
|
|
companion3.launch(j3, context3);
|
|
}
|
|
}
|
|
}
|