package com.discord.widgets.channels.settings; import android.content.Context; import android.view.MenuItem; import com.discord.R; import com.discord.stores.StoreStream; import com.discord.stores.StoreUserGuildSettings; import com.discord.widgets.channels.settings.WidgetTextChannelSettings; import d0.z.d.m; import rx.functions.Action2; /* compiled from: WidgetTextChannelSettings.kt */ public final class WidgetTextChannelSettings$configureUI$1 implements Action2 { public final /* synthetic */ WidgetTextChannelSettings.Model $this_configureUI; public final /* synthetic */ WidgetTextChannelSettings this$0; public WidgetTextChannelSettings$configureUI$1(WidgetTextChannelSettings widgetTextChannelSettings, WidgetTextChannelSettings.Model model) { this.this$0 = widgetTextChannelSettings; this.$this_configureUI = model; } public final void call(MenuItem menuItem, Context context) { m.checkNotNullExpressionValue(menuItem, "menuItem"); switch (menuItem.getItemId()) { case R.id.menu_channel_settings_delete /* 2131364296 */: if (this.$this_configureUI.isPublicGuildRulesChannel() || this.$this_configureUI.isPublicGuildUpdatesChannel()) { WidgetTextChannelSettings.access$cannotDeleteWarn(this.this$0, this.$this_configureUI.isPublicGuildRulesChannel()); return; } else { WidgetTextChannelSettings.access$confirmDelete(this.this$0, this.$this_configureUI.getChannel()); return; } case R.id.menu_channel_settings_reset /* 2131364297 */: StoreUserGuildSettings userGuildSettings = StoreStream.Companion.getUserGuildSettings(); m.checkNotNullExpressionValue(context, "context"); userGuildSettings.setChannelNotificationsDefault(context, this.$this_configureUI.getChannel()); return; default: return; } } }