2021-06-27 20:44:35 +00:00
|
|
|
package com.discord.utilities.colors;
|
|
|
|
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
import com.discord.utilities.colors.RepresentativeColors;
|
2021-11-08 18:25:28 +00:00
|
|
|
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;
|
2021-06-27 20:44:35 +00:00
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import kotlin.jvm.functions.Function2;
|
|
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
|
|
/* compiled from: RepresentativeColors.kt */
|
|
|
|
@e(c = "com.discord.utilities.colors.RepresentativeColors$getRepresentativeColorAsync$2", f = "RepresentativeColors.kt", l = {}, m = "invokeSuspend")
|
2022-03-02 20:59:20 +00:00
|
|
|
/* loaded from: classes.dex */
|
2021-06-27 20:44:35 +00:00
|
|
|
public final class RepresentativeColors$getRepresentativeColorAsync$2 extends k implements Function2<CoroutineScope, Continuation<? super RepresentativeColors.RepresentativeColorResult>, Object> {
|
|
|
|
public final /* synthetic */ Bitmap $bitmap;
|
|
|
|
public int label;
|
|
|
|
public final /* synthetic */ RepresentativeColors this$0;
|
|
|
|
|
2022-03-02 20:59:20 +00:00
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
2021-06-27 20:44:35 +00:00
|
|
|
public RepresentativeColors$getRepresentativeColorAsync$2(RepresentativeColors representativeColors, Bitmap bitmap, Continuation continuation) {
|
|
|
|
super(2, continuation);
|
|
|
|
this.this$0 = representativeColors;
|
|
|
|
this.$bitmap = bitmap;
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // d0.w.i.a.a
|
2021-06-27 20:44:35 +00:00
|
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
|
|
return new RepresentativeColors$getRepresentativeColorAsync$2(this.this$0, this.$bitmap, continuation);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super RepresentativeColors.RepresentativeColorResult> continuation) {
|
|
|
|
return ((RepresentativeColors$getRepresentativeColorAsync$2) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // d0.w.i.a.a
|
2021-06-27 20:44:35 +00:00
|
|
|
public final Object invokeSuspend(Object obj) {
|
|
|
|
c.getCOROUTINE_SUSPENDED();
|
|
|
|
if (this.label == 0) {
|
|
|
|
l.throwOnFailure(obj);
|
|
|
|
return RepresentativeColors.access$getRepresentativeColor(this.this$0, this.$bitmap);
|
|
|
|
}
|
|
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
|
|
}
|
|
|
|
}
|