discord-jadx/app/src/main/java/com/discord/widgets/servers/WidgetServerSettingsChannel...

42 lines
1.6 KiB
Java

package com.discord.widgets.servers;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.discord.api.channel.Channel;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Map;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetServerSettingsChannels.kt */
public final class WidgetServerSettingsChannels$Model$Companion$getSortedGuildChannels$$inlined$also$lambda$1 extends o implements Function1<Channel, Boolean> {
public final /* synthetic */ int $channelType$inlined;
public final /* synthetic */ Map $guildChannels$inlined;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public WidgetServerSettingsChannels$Model$Companion$getSortedGuildChannels$$inlined$also$lambda$1(Map map, int i) {
super(1);
this.$guildChannels$inlined = map;
this.$channelType$inlined = i;
}
/* 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 */ Boolean invoke(Channel channel) {
return Boolean.valueOf(invoke(channel));
}
public final boolean invoke(Channel channel) {
m.checkNotNullParameter(channel, "channel");
int i = this.$channelType$inlined;
if (i == 0) {
return AnimatableValueParser.k1(channel);
}
if (i == 2) {
return AnimatableValueParser.l1(channel);
}
int A = channel.A();
int i2 = this.$channelType$inlined;
return A == i2 || i2 == -1;
}
}