45 lines
2.1 KiB
Java
45 lines
2.1 KiB
Java
package com.discord.widgets.channels;
|
|
|
|
import android.content.Context;
|
|
import android.view.MenuItem;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
import rx.functions.Action2;
|
|
/* compiled from: WidgetChannelGroupDMSettings.kt */
|
|
public final class WidgetChannelGroupDMSettings$configureUi$1<T1, T2> implements Action2<MenuItem, Context> {
|
|
public final /* synthetic */ String $displayName;
|
|
public final /* synthetic */ WidgetChannelGroupDMSettings this$0;
|
|
|
|
/* compiled from: WidgetChannelGroupDMSettings.kt */
|
|
/* renamed from: com.discord.widgets.channels.WidgetChannelGroupDMSettings$configureUi$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ WidgetChannelGroupDMSettings$configureUi$1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(WidgetChannelGroupDMSettings$configureUi$1 widgetChannelGroupDMSettings$configureUi$1) {
|
|
super(0);
|
|
this.this$0 = widgetChannelGroupDMSettings$configureUi$1;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo1invoke() {
|
|
WidgetChannelGroupDMSettings.access$getViewModel$p(this.this$0.this$0).leaveGroup();
|
|
}
|
|
}
|
|
|
|
public WidgetChannelGroupDMSettings$configureUi$1(WidgetChannelGroupDMSettings widgetChannelGroupDMSettings, String str) {
|
|
this.this$0 = widgetChannelGroupDMSettings;
|
|
this.$displayName = str;
|
|
}
|
|
|
|
public final void call(MenuItem menuItem, Context context) {
|
|
m.checkNotNullExpressionValue(menuItem, "menuItem");
|
|
if (menuItem.getItemId() == 2131363932) {
|
|
WidgetChannelGroupDMSettings widgetChannelGroupDMSettings = this.this$0;
|
|
WidgetChannelGroupDMSettings.access$confirmLeave(widgetChannelGroupDMSettings, widgetChannelGroupDMSettings.requireContext(), new AnonymousClass1(this), this.$displayName);
|
|
}
|
|
}
|
|
}
|