package com.discord.widgets.servers; import android.content.Context; import android.view.MenuItem; import androidx.fragment.app.FragmentManager; import com.discord.R; import com.discord.widgets.servers.WidgetServerSettingsChannelsSortActions; import d0.z.d.m; import d0.z.d.o; import kotlin.Unit; import kotlin.jvm.functions.Function1; import rx.functions.Action2; /* compiled from: WidgetServerSettingsChannels.kt */ public final class WidgetServerSettingsChannels$configureUI$1 implements Action2 { public final /* synthetic */ WidgetServerSettingsChannels this$0; /* compiled from: WidgetServerSettingsChannels.kt */ /* renamed from: com.discord.widgets.servers.WidgetServerSettingsChannels$configureUI$1$1 reason: invalid class name */ public static final class AnonymousClass1 extends o implements Function1 { public final /* synthetic */ WidgetServerSettingsChannels$configureUI$1 this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public AnonymousClass1(WidgetServerSettingsChannels$configureUI$1 widgetServerSettingsChannels$configureUI$1) { super(1); this.this$0 = widgetServerSettingsChannels$configureUI$1; } /* 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(Integer num) { invoke(num.intValue()); return Unit.a; } public final void invoke(int i) { WidgetServerSettingsChannels.access$getChannelSortTypeSubject$p(this.this$0.this$0).onNext(Integer.valueOf(i)); } } public WidgetServerSettingsChannels$configureUI$1(WidgetServerSettingsChannels widgetServerSettingsChannels) { this.this$0 = widgetServerSettingsChannels; } public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { case R.id.menu_sort_channel /* 2131364345 */: WidgetServerSettingsChannelsSortActions.Companion companion = WidgetServerSettingsChannelsSortActions.Companion; FragmentManager childFragmentManager = this.this$0.getChildFragmentManager(); m.checkNotNullExpressionValue(childFragmentManager, "childFragmentManager"); companion.show(childFragmentManager, new AnonymousClass1(this)); return; case R.id.menu_sort_done /* 2131364346 */: WidgetServerSettingsChannels.access$getChannelSortTypeSubject$p(this.this$0).onNext(-1); return; default: return; } } }