41 lines
1.8 KiB
Java
41 lines
1.8 KiB
Java
package com.discord.widgets.chat.input.sticker;
|
|
|
|
import com.discord.utilities.mg_recycler.MGRecyclerDataPayload;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import rx.Subscription;
|
|
/* compiled from: StickerAdapterViewHolders.kt */
|
|
public final class StickerViewHolder$onConfigure$1 extends o implements Function1<Boolean, Unit> {
|
|
public final /* synthetic */ MGRecyclerDataPayload $data;
|
|
public final /* synthetic */ StickerViewHolder this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StickerViewHolder$onConfigure$1(StickerViewHolder stickerViewHolder, MGRecyclerDataPayload mGRecyclerDataPayload) {
|
|
super(1);
|
|
this.this$0 = stickerViewHolder;
|
|
this.$data = mGRecyclerDataPayload;
|
|
}
|
|
|
|
/* 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(Boolean bool) {
|
|
invoke(bool);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(Boolean bool) {
|
|
m.checkNotNullExpressionValue(bool, "scrollingWithinThreshold");
|
|
if (bool.booleanValue()) {
|
|
StickerViewHolder.access$configureSticker(this.this$0, this.$data);
|
|
Subscription access$getScrollingSpeedSubscription$p = StickerViewHolder.access$getScrollingSpeedSubscription$p(this.this$0);
|
|
if (access$getScrollingSpeedSubscription$p != null) {
|
|
access$getScrollingSpeedSubscription$p.unsubscribe();
|
|
}
|
|
StickerViewHolder.access$setScrollingSpeedSubscription$p(this.this$0, null);
|
|
}
|
|
}
|
|
}
|