30 lines
1.3 KiB
Java
30 lines
1.3 KiB
Java
package com.discord.widgets.servers;
|
|
|
|
import android.content.Context;
|
|
import android.view.MenuItem;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import com.discord.models.guild.Guild;
|
|
import com.discord.widgets.servers.WidgetServerDeleteDialog;
|
|
import d0.z.d.m;
|
|
import rx.functions.Action2;
|
|
/* compiled from: WidgetServerSettings.kt */
|
|
public final class WidgetServerSettings$configureToolbar$1<T1, T2> implements Action2<MenuItem, Context> {
|
|
public final /* synthetic */ Guild $guild;
|
|
public final /* synthetic */ WidgetServerSettings this$0;
|
|
|
|
public WidgetServerSettings$configureToolbar$1(WidgetServerSettings widgetServerSettings, Guild guild) {
|
|
this.this$0 = widgetServerSettings;
|
|
this.$guild = guild;
|
|
}
|
|
|
|
public final void call(MenuItem menuItem, Context context) {
|
|
m.checkNotNullExpressionValue(menuItem, "menuItem");
|
|
if (menuItem.getItemId() == 2131363990) {
|
|
WidgetServerDeleteDialog.Companion companion = WidgetServerDeleteDialog.Companion;
|
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
companion.show(parentFragmentManager, this.$guild.getId());
|
|
}
|
|
}
|
|
}
|