得物.apk(点击下载) / FaceDetectShareDialog$doSomeThing$2.java
package com.shizhuang.duapp.modules.productv2.facedetect.result.share;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import androidx.constraintlayout.widget.ConstraintLayout;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.R;
import com.shizhuang.duapp.modules.pay.R$styleable;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001*\u00020\u0003H@¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "Lkotlin/Result;", "", "Lkotlinx/coroutines/CoroutineScope;", "invoke", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;"}, k = 3, mv = {1, 4, 2})
@DebugMetadata(c = "com.shizhuang.duapp.modules.productv2.facedetect.result.share.FaceDetectShareDialog$doSomeThing$2", f = "FaceDetectShareDialog.kt", i = {}, l = {R$styleable.AppCompatTheme_spinnerStyle}, m = "invokeSuspend", n = {}, s = {})
/* compiled from: FaceDetectShareDialog.kt */
public final class FaceDetectShareDialog$doSomeThing$2 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Result<? extends Unit>>, Object> {
public static ChangeQuickRedirect changeQuickRedirect;
public Object L$0;
public Object L$1;
public int label;
public final /* synthetic */ FaceDetectShareDialog this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public FaceDetectShareDialog$doSomeThing$2(FaceDetectShareDialog faceDetectShareDialog, Continuation continuation) {
super(2, continuation);
this.this$0 = faceDetectShareDialog;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
@NotNull
public final Continuation<Unit> create(@Nullable Object obj, @NotNull Continuation<?> continuation) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, continuation}, this, changeQuickRedirect, false, 293979, new Class[]{Object.class, Continuation.class}, Continuation.class);
return proxy.isSupported ? (Continuation) proxy.result : new FaceDetectShareDialog$doSomeThing$2(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 Result<? extends Unit>> continuation) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{coroutineScope, continuation}, this, changeQuickRedirect, false, 293980, new Class[]{Object.class, Object.class}, Object.class);
return proxy.isSupported ? proxy.result : ((FaceDetectShareDialog$doSomeThing$2) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
@Nullable
public final Object invokeSuspend(@NotNull Object obj) {
Object obj2;
Resources resources;
ConstraintLayout constraintLayout;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 293978, new Class[]{Object.class}, Object.class);
if (proxy.isSupported) {
return proxy.result;
}
Object coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.label;
if (i == 0) {
ResultKt.throwOnFailure(obj);
Result.Companion companion = Result.Companion;
ConstraintLayout constraintLayout2 = (ConstraintLayout) this.this$0._$_findCachedViewById(R.id.contentLayout);
if (constraintLayout2 != null) {
Resources resources2 = this.this$0.getResources();
FaceDetectShareDialog faceDetectShareDialog = this.this$0;
this.L$0 = resources2;
this.L$1 = constraintLayout2;
this.label = 1;
Object I = faceDetectShareDialog.I("https://apk.poizon.com/duApp/Android_Config/resource/mall/app/product/bg_face_detect_share1.png", this);
if (I == coroutine_suspended) {
return coroutine_suspended;
}
resources = resources2;
constraintLayout = constraintLayout2;
obj = I;
}
obj2 = Result.m822constructorimpl(Unit.INSTANCE);
return Result.m821boximpl(obj2);
} else if (i == 1) {
constraintLayout = (ConstraintLayout) this.L$1;
resources = (Resources) this.L$0;
try {
ResultKt.throwOnFailure(obj);
} catch (Throwable th2) {
Result.Companion companion2 = Result.Companion;
obj2 = Result.m822constructorimpl(ResultKt.createFailure(th2));
}
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
constraintLayout.setBackground(new BitmapDrawable(resources, (Bitmap) obj));
obj2 = Result.m822constructorimpl(Unit.INSTANCE);
return Result.m821boximpl(obj2);
}
}