discord-jadx/app/src/main/java/com/discord/stores/StoreStickers$observeFreque...

32 lines
1.3 KiB
Java
Raw Normal View History

2021-06-27 20:44:35 +00:00
package com.discord.stores;
import com.discord.utilities.frecency.FrecencyTracker;
import d0.t.u;
import d0.z.d.o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreStickers.kt */
2021-07-03 23:36:06 +00:00
public final class StoreStickers$observeFrequentlyUsedStickerIds$1 extends o implements Function0<List<? extends Long>> {
2021-06-27 20:44:35 +00:00
public final /* synthetic */ StoreStickers this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
2021-07-03 23:36:06 +00:00
public StoreStickers$observeFrequentlyUsedStickerIds$1(StoreStickers storeStickers) {
2021-06-27 20:44:35 +00:00
super(0);
this.this$0 = storeStickers;
}
2021-07-03 23:36:06 +00:00
/* Return type fixed from 'java.util.List<java.lang.Long>' to match base method */
2021-06-27 20:44:35 +00:00
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
2021-07-03 23:36:06 +00:00
public final List<? extends Long> mo1invoke() {
2021-06-27 20:44:35 +00:00
Collection<String> sortedKeys$default = FrecencyTracker.getSortedKeys$default(StoreStickers.access$getFrecency$p(this.this$0), 0, 1, null);
2021-07-03 23:36:06 +00:00
ArrayList arrayList = new ArrayList(d0.t.o.collectionSizeOrDefault(sortedKeys$default, 10));
2021-06-27 20:44:35 +00:00
for (String str : sortedKeys$default) {
2021-07-03 23:36:06 +00:00
arrayList.add(Long.valueOf(Long.parseLong(str)));
2021-06-27 20:44:35 +00:00
}
return u.take(arrayList, 20);
}
}