47 lines
1.7 KiB
Java
47 lines
1.7 KiB
Java
|
package com.discord.widgets.chat.input.sticker;
|
||
|
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: StickerCategoryAdapter.kt */
|
||
|
public final class StickerCategoryAdapter$setItems$1 extends o implements Function1<List<? extends StickerCategoryItem>, Unit> {
|
||
|
public final /* synthetic */ StickerCategoryAdapter this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StickerCategoryAdapter$setItems$1(StickerCategoryAdapter stickerCategoryAdapter) {
|
||
|
super(1);
|
||
|
this.this$0 = stickerCategoryAdapter;
|
||
|
}
|
||
|
|
||
|
/* 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 StickerCategoryItem> list) {
|
||
|
invoke(list);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(List<? extends StickerCategoryItem> list) {
|
||
|
m.checkNotNullParameter(list, "items");
|
||
|
StickerCategoryAdapter.access$setItems$p(this.this$0, list);
|
||
|
Iterator<? extends StickerCategoryItem> it = list.iterator();
|
||
|
int i = 0;
|
||
|
while (true) {
|
||
|
if (!it.hasNext()) {
|
||
|
i = -1;
|
||
|
break;
|
||
|
} else if (((StickerCategoryItem) it.next()).isSelected()) {
|
||
|
break;
|
||
|
} else {
|
||
|
i++;
|
||
|
}
|
||
|
}
|
||
|
if (i != -1) {
|
||
|
StickerCategoryAdapter.access$getOnSelectedItemAdapterPositionUpdated$p(this.this$0).invoke(Integer.valueOf(i));
|
||
|
}
|
||
|
}
|
||
|
}
|