discord-jadx/app/src/main/java/com/discord/widgets/chat/input/emoji/WidgetEmojiPicker$initializ...

82 lines
3.7 KiB
Java

package com.discord.widgets.chat.input.emoji;
import android.view.View;
import c.q.a.k.a;
import com.discord.utilities.views.ViewCoroutineScopeKt;
import d0.l;
import d0.w.h.c;
import d0.w.i.a.e;
import d0.w.i.a.k;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* compiled from: WidgetEmojiPicker.kt */
public final class WidgetEmojiPicker$initializeSearchBar$1 implements View.OnClickListener {
public final /* synthetic */ WidgetEmojiPicker this$0;
/* compiled from: WidgetEmojiPicker.kt */
@e(c = "com.discord.widgets.chat.input.emoji.WidgetEmojiPicker$initializeSearchBar$1$1", f = "WidgetEmojiPicker.kt", l = {412}, m = "invokeSuspend")
/* renamed from: com.discord.widgets.chat.input.emoji.WidgetEmojiPicker$initializeSearchBar$1$1 reason: invalid class name */
public static final class AnonymousClass1 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
public int label;
public final /* synthetic */ WidgetEmojiPicker$initializeSearchBar$1 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(WidgetEmojiPicker$initializeSearchBar$1 widgetEmojiPicker$initializeSearchBar$1, Continuation continuation) {
super(2, continuation);
this.this$0 = widgetEmojiPicker$initializeSearchBar$1;
}
@Override // d0.w.i.a.a
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
m.checkNotNullParameter(continuation, "completion");
return new AnonymousClass1(this.this$0, continuation);
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
return ((AnonymousClass1) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
}
@Override // d0.w.i.a.a
public final Object invokeSuspend(Object obj) {
Object coroutine_suspended = c.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
l.throwOnFailure(obj);
this.label = 1;
if (a.n(250, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else if (i == 1) {
l.throwOnFailure(obj);
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
Function0 access$getOnEmojiSearchOpenedListener$p = WidgetEmojiPicker.access$getOnEmojiSearchOpenedListener$p(this.this$0.this$0);
if (access$getOnEmojiSearchOpenedListener$p != null) {
Unit unit = (Unit) access$getOnEmojiSearchOpenedListener$p.mo1invoke();
}
return Unit.a;
}
}
public WidgetEmojiPicker$initializeSearchBar$1(WidgetEmojiPicker widgetEmojiPicker) {
this.this$0 = widgetEmojiPicker;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
m.checkNotNullExpressionValue(view, "view");
CoroutineScope coroutineScope = ViewCoroutineScopeKt.getCoroutineScope(view);
if (coroutineScope != null) {
a.G(coroutineScope, null, null, new AnonymousClass1(this, null), 3, null);
}
WidgetEmojiPicker.access$launchBottomSheet(this.this$0);
}
}