2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.stage;
|
|
|
|
|
|
|
|
import android.graphics.Bitmap;
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.l;
|
|
|
|
import c0.w.h.c;
|
|
|
|
import c0.w.i.a.e;
|
|
|
|
import c0.w.i.a.k;
|
|
|
|
import c0.z.d.m;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.utilities.images.MGImagesBitmap;
|
|
|
|
import com.discord.utilities.rx.RxCoroutineUtilsKt;
|
2021-10-15 06:18:26 +00:00
|
|
|
import i0.l.a.f1;
|
|
|
|
import i0.l.a.r;
|
2021-08-03 07:33:18 +00:00
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import kotlin.jvm.functions.Function2;
|
|
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
|
|
import rx.Observable;
|
|
|
|
/* compiled from: StageChannelNotifications.kt */
|
|
|
|
@e(c = "com.discord.widgets.stage.StageChannelNotifications$onInvitedToSpeak$1$bitmap$1$1", f = "StageChannelNotifications.kt", l = {51}, m = "invokeSuspend")
|
|
|
|
public final class StageChannelNotifications$onInvitedToSpeak$1$invokeSuspend$$inlined$let$lambda$1 extends k implements Function2<CoroutineScope, Continuation<? super Bitmap>, Object> {
|
|
|
|
public final /* synthetic */ String $iconUrl$inlined;
|
|
|
|
public int label;
|
|
|
|
public final /* synthetic */ StageChannelNotifications$onInvitedToSpeak$1 this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public StageChannelNotifications$onInvitedToSpeak$1$invokeSuspend$$inlined$let$lambda$1(Continuation continuation, StageChannelNotifications$onInvitedToSpeak$1 stageChannelNotifications$onInvitedToSpeak$1, String str) {
|
|
|
|
super(2, continuation);
|
|
|
|
this.this$0 = stageChannelNotifications$onInvitedToSpeak$1;
|
|
|
|
this.$iconUrl$inlined = str;
|
|
|
|
}
|
|
|
|
|
2021-10-15 06:18:26 +00:00
|
|
|
@Override // c0.w.i.a.a
|
2021-08-03 07:33:18 +00:00
|
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
|
|
return new StageChannelNotifications$onInvitedToSpeak$1$invokeSuspend$$inlined$let$lambda$1(continuation, this.this$0, this.$iconUrl$inlined);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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 Bitmap> continuation) {
|
|
|
|
return ((StageChannelNotifications$onInvitedToSpeak$1$invokeSuspend$$inlined$let$lambda$1) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
|
|
}
|
|
|
|
|
2021-10-15 06:18:26 +00:00
|
|
|
@Override // c0.w.i.a.a
|
2021-08-03 07:33:18 +00:00
|
|
|
public final Object invokeSuspend(Object obj) {
|
|
|
|
Object coroutine_suspended = c.getCOROUTINE_SUSPENDED();
|
|
|
|
int i = this.label;
|
|
|
|
if (i == 0) {
|
|
|
|
l.throwOnFailure(obj);
|
|
|
|
Observable<Bitmap> bitmap = MGImagesBitmap.INSTANCE.getBitmap(this.$iconUrl$inlined, true);
|
2021-10-15 06:18:26 +00:00
|
|
|
Observable g02 = Observable.g0(new r(bitmap.i, new f1(StageChannelNotifications$onInvitedToSpeak$1$bitmap$1$1$1.INSTANCE)));
|
|
|
|
m.checkNotNullExpressionValue(g02, "MGImagesBitmap.getBitmap…nErrorResumeNext { null }");
|
2021-08-03 07:33:18 +00:00
|
|
|
this.label = 1;
|
2021-10-15 06:18:26 +00:00
|
|
|
obj = RxCoroutineUtilsKt.awaitSingle(g02, this);
|
2021-08-03 07:33:18 +00:00
|
|
|
if (obj == coroutine_suspended) {
|
|
|
|
return coroutine_suspended;
|
|
|
|
}
|
|
|
|
} else if (i == 1) {
|
|
|
|
l.throwOnFailure(obj);
|
|
|
|
} else {
|
|
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
}
|