42 lines
1.8 KiB
Java
42 lines
1.8 KiB
Java
package com.discord.widgets.channels;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import com.discord.widgets.channels.WidgetChannelSidebarActionsViewModel;
|
|
import com.discord.widgets.channels.settings.WidgetTextChannelSettings;
|
|
import com.discord.widgets.channels.settings.WidgetThreadSettings;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetChannelSidebarActions.kt */
|
|
public final class WidgetChannelSidebarActions$configureUI$8 extends o implements Function1<View, Unit> {
|
|
public final /* synthetic */ long $channelId;
|
|
public final /* synthetic */ Context $context;
|
|
public final /* synthetic */ WidgetChannelSidebarActionsViewModel.ViewState $viewState;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetChannelSidebarActions$configureUI$8(WidgetChannelSidebarActionsViewModel.ViewState viewState, long j, Context context) {
|
|
super(1);
|
|
this.$viewState = viewState;
|
|
this.$channelId = j;
|
|
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 (((WidgetChannelSidebarActionsViewModel.ViewState.Guild) this.$viewState).isThread()) {
|
|
WidgetThreadSettings.Companion.launch(this.$channelId, this.$context);
|
|
} else {
|
|
WidgetTextChannelSettings.Companion.launch(this.$channelId, this.$context);
|
|
}
|
|
}
|
|
}
|