57 lines
2.6 KiB
Java
57 lines
2.6 KiB
Java
|
package com.discord.widgets.channels.permissions;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.MenuItem;
|
||
|
import com.discord.api.permission.PermissionOverwrite;
|
||
|
import com.discord.app.AppFragment;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import java.util.Map;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
import rx.functions.Action2;
|
||
|
/* compiled from: WidgetCreateChannelAddMember.kt */
|
||
|
public final class WidgetCreateChannelAddMember$onViewBound$2 extends o implements Function1<Map<Long, ? extends PermissionOverwrite.Type>, Unit> {
|
||
|
public final /* synthetic */ WidgetCreateChannelAddMember this$0;
|
||
|
|
||
|
/* compiled from: WidgetCreateChannelAddMember.kt */
|
||
|
/* renamed from: com.discord.widgets.channels.permissions.WidgetCreateChannelAddMember$onViewBound$2$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1<T1, T2> implements Action2<MenuItem, Context> {
|
||
|
public final /* synthetic */ Map $selected;
|
||
|
public final /* synthetic */ WidgetCreateChannelAddMember$onViewBound$2 this$0;
|
||
|
|
||
|
public AnonymousClass1(WidgetCreateChannelAddMember$onViewBound$2 widgetCreateChannelAddMember$onViewBound$2, Map map) {
|
||
|
this.this$0 = widgetCreateChannelAddMember$onViewBound$2;
|
||
|
this.$selected = map;
|
||
|
}
|
||
|
|
||
|
public final void call(MenuItem menuItem, Context context) {
|
||
|
m.checkNotNullExpressionValue(menuItem, "menuItem");
|
||
|
if (menuItem.getItemId() == 2131363976) {
|
||
|
WidgetCreateChannelAddMember widgetCreateChannelAddMember = this.this$0.this$0;
|
||
|
Map map = this.$selected;
|
||
|
m.checkNotNullExpressionValue(map, "selected");
|
||
|
WidgetCreateChannelAddMember.access$addPermissionOverwrites(widgetCreateChannelAddMember, map);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetCreateChannelAddMember$onViewBound$2(WidgetCreateChannelAddMember widgetCreateChannelAddMember) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetCreateChannelAddMember;
|
||
|
}
|
||
|
|
||
|
/* 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(Map<Long, ? extends PermissionOverwrite.Type> map) {
|
||
|
invoke(map);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(Map<Long, ? extends PermissionOverwrite.Type> map) {
|
||
|
AppFragment.setActionBarOptionsMenu$default(this.this$0, 2131623936, new AnonymousClass1(this, map), null, 4, null);
|
||
|
}
|
||
|
}
|