53 lines
2.9 KiB
Java
53 lines
2.9 KiB
Java
|
package com.discord.widgets.servers;
|
||
|
|
||
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
||
|
import com.discord.api.channel.Channel;
|
||
|
import com.discord.utilities.channel.GuildChannelsInfo;
|
||
|
import com.discord.utilities.mg_recycler.CategoricalDragAndDropAdapter;
|
||
|
import com.discord.widgets.servers.SettingsChannelListAdapter;
|
||
|
import d0.z.d.m;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
import rx.functions.Func3;
|
||
|
/* compiled from: WidgetServerNotificationsOverrideSelector.kt */
|
||
|
public final class WidgetServerNotificationsOverrideSelector$Companion$get$1<T1, T2, T3, R> implements Func3<Map<Long, ? extends Channel>, GuildChannelsInfo, String, List<? extends CategoricalDragAndDropAdapter.Payload>> {
|
||
|
public static final WidgetServerNotificationsOverrideSelector$Companion$get$1 INSTANCE = new WidgetServerNotificationsOverrideSelector$Companion$get$1();
|
||
|
|
||
|
/* 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, java.lang.Object, java.lang.Object] */
|
||
|
@Override // rx.functions.Func3
|
||
|
public /* bridge */ /* synthetic */ List<? extends CategoricalDragAndDropAdapter.Payload> call(Map<Long, ? extends Channel> map, GuildChannelsInfo guildChannelsInfo, String str) {
|
||
|
return call((Map<Long, Channel>) map, guildChannelsInfo, str);
|
||
|
}
|
||
|
|
||
|
/* JADX WARNING: Code restructure failed: missing block: B:8:0x0039, code lost:
|
||
|
if (d0.g0.w.contains((java.lang.CharSequence) r1, (java.lang.CharSequence) r13, true) != false) goto L_0x003d;
|
||
|
*/
|
||
|
public final List<CategoricalDragAndDropAdapter.Payload> call(Map<Long, Channel> map, GuildChannelsInfo guildChannelsInfo, String str) {
|
||
|
m.checkNotNullExpressionValue(map, "channels");
|
||
|
List<Channel> sortedVisibleChannels = guildChannelsInfo.getSortedVisibleChannels(map);
|
||
|
ArrayList<Channel> arrayList = new ArrayList();
|
||
|
for (Object obj : sortedVisibleChannels) {
|
||
|
Channel channel = (Channel) obj;
|
||
|
boolean z2 = true;
|
||
|
if (AnimatableValueParser.z1(channel) || AnimatableValueParser.f1(channel)) {
|
||
|
String y0 = AnimatableValueParser.y0(channel);
|
||
|
m.checkNotNullExpressionValue(str, "filter");
|
||
|
}
|
||
|
z2 = false;
|
||
|
if (z2) {
|
||
|
arrayList.add(obj);
|
||
|
}
|
||
|
}
|
||
|
ArrayList arrayList2 = new ArrayList();
|
||
|
for (Channel channel2 : arrayList) {
|
||
|
Object categoryItem = AnimatableValueParser.f1(channel2) ? new SettingsChannelListAdapter.CategoryItem(AnimatableValueParser.y0(channel2), channel2.h(), channel2.t(), false, false, false) : AnimatableValueParser.z1(channel2) ? new SettingsChannelListAdapter.ChannelItem(channel2, false, channel2.r(), false) : null;
|
||
|
if (categoryItem != null) {
|
||
|
arrayList2.add(categoryItem);
|
||
|
}
|
||
|
}
|
||
|
return arrayList2;
|
||
|
}
|
||
|
}
|