50 lines
2.4 KiB
Java
50 lines
2.4 KiB
Java
|
package com.discord.widgets.channels;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.View;
|
||
|
import androidx.fragment.app.FragmentManager;
|
||
|
import com.discord.widgets.channels.WidgetChannelSidebarActionsViewModel;
|
||
|
import com.discord.widgets.channels.settings.WidgetThreadNotificationSettings;
|
||
|
import com.discord.widgets.settings.WidgetMuteSettingsSheet;
|
||
|
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$7 extends o implements Function1<View, Unit> {
|
||
|
public final /* synthetic */ long $channelId;
|
||
|
public final /* synthetic */ Context $context;
|
||
|
public final /* synthetic */ WidgetChannelSidebarActionsViewModel.ViewState $viewState;
|
||
|
public final /* synthetic */ WidgetChannelSidebarActions this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetChannelSidebarActions$configureUI$7(WidgetChannelSidebarActions widgetChannelSidebarActions, WidgetChannelSidebarActionsViewModel.ViewState viewState, Context context, long j) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetChannelSidebarActions;
|
||
|
this.$viewState = viewState;
|
||
|
this.$context = context;
|
||
|
this.$channelId = j;
|
||
|
}
|
||
|
|
||
|
/* 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()) {
|
||
|
WidgetThreadNotificationSettings.Companion.launch$default(WidgetThreadNotificationSettings.Companion, this.$context, this.$channelId, false, 4, null);
|
||
|
return;
|
||
|
}
|
||
|
WidgetMuteSettingsSheet.Companion companion = WidgetMuteSettingsSheet.Companion;
|
||
|
long j = this.$channelId;
|
||
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
||
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
||
|
companion.showForChannel(j, parentFragmentManager);
|
||
|
}
|
||
|
}
|