discord-jadx/app/src/main/java/com/discord/widgets/chat/input/WidgetChatInputAutocomplete...

39 lines
1.6 KiB
Java

package com.discord.widgets.chat.input;
import c.d.b.a.a;
import com.discord.models.commands.Application;
import d0.z.d.o;
import java.util.ArrayList;
import java.util.List;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetChatInputAutocomplete.kt */
public final class WidgetChatInputAutocomplete$configureDataSubscriptions$8 extends o implements Function1<List<? extends Application>, Unit> {
public final /* synthetic */ WidgetChatInputAutocomplete this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetChatInputAutocomplete$configureDataSubscriptions$8(WidgetChatInputAutocomplete widgetChatInputAutocomplete) {
super(1);
this.this$0 = widgetChatInputAutocomplete;
}
/* 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(List<? extends Application> list) {
invoke((List<Application>) list);
return Unit.a;
}
public final void invoke(List<Application> list) {
ArrayList S = a.S(list, "applications");
for (Object obj : list) {
if (((Application) obj).getCommandCount() > 0) {
S.add(obj);
}
}
WidgetChatInputAutocomplete.access$setApplications$p(this.this$0, S);
WidgetChatInputAutocomplete.access$onModelUpdated(this.this$0);
}
}