43 lines
1.9 KiB
Java
43 lines
1.9 KiB
Java
|
package com.discord.widgets.chat.input.gifpicker;
|
||
|
|
||
|
import com.discord.widgets.chat.input.gifpicker.GifAdapterItem;
|
||
|
import com.discord.widgets.chat.input.gifpicker.GifSearchViewModel;
|
||
|
import d0.t.n;
|
||
|
import d0.z.d.o;
|
||
|
import java.util.Collection;
|
||
|
import java.util.List;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
/* compiled from: GifSearchViewModel.kt */
|
||
|
public final class GifSearchViewModel$ViewState$Loaded$gifCount$2 extends o implements Function0<Integer> {
|
||
|
public final /* synthetic */ GifSearchViewModel.ViewState.Loaded this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public GifSearchViewModel$ViewState$Loaded$gifCount$2(GifSearchViewModel.ViewState.Loaded loaded) {
|
||
|
super(0);
|
||
|
this.this$0 = loaded;
|
||
|
}
|
||
|
|
||
|
/* Return type fixed from 'int' to match base method */
|
||
|
/* JADX DEBUG: Failed to insert an additional move for type inference into block B:16:0x0016 */
|
||
|
/* JADX DEBUG: Failed to insert an additional move for type inference into block B:14:0x002e */
|
||
|
/* JADX DEBUG: Failed to insert an additional move for type inference into block B:17:0x0016 */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX DEBUG: Type inference failed for r0v2. Raw type applied. Possible types: java.util.Iterator<T>, java.util.Iterator */
|
||
|
/* JADX WARNING: Unknown variable types count: 1 */
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final Integer mo1invoke() {
|
||
|
List<GifAdapterItem> adapterItems = this.this$0.getAdapterItems();
|
||
|
?? r2 = 0;
|
||
|
r2 = 0;
|
||
|
if (!(adapterItems instanceof Collection) || !adapterItems.isEmpty()) {
|
||
|
for (GifAdapterItem gifAdapterItem : adapterItems) {
|
||
|
if ((gifAdapterItem instanceof GifAdapterItem.GifItem) && (r2 = (r2 == true ? 1 : 0) + 1) < 0) {
|
||
|
n.throwCountOverflow();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return r2;
|
||
|
}
|
||
|
}
|