f$d.smali
.class public final Lbf/f$d;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "UiWidgets.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lbf/f;->a(Landroidx/fragment/app/FragmentActivity;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/jvm/internal/SuspendLambda;",
"Lkotlin/jvm/functions/Function2<",
"Lkotlinx/coroutines/CoroutineScope;",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.annotation runtime Lkotlin/coroutines/jvm/internal/DebugMetadata;
c = "com.shopee.foody.driver.gallery.UiWidgets$loadGalleryCover$1"
f = "UiWidgets.kt"
i = {
0x0
}
l = {
0x36
}
m = "invokeSuspend"
n = {
"$this$launchWhenCreated"
}
s = {
"L$0"
}
.end annotation
# instance fields
.field public a:Lkotlinx/coroutines/CoroutineScope;
.field public b:Ljava/lang/Object;
.field public c:I
.field public final synthetic d:Lbf/f;
.field public final synthetic e:Landroidx/fragment/app/FragmentActivity;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lbf/f;Landroidx/fragment/app/FragmentActivity;Lkotlin/coroutines/Continuation;)V
.registers 4
iput-object p1, p0, Lbf/f$d;->d:Lbf/f;
iput-object p2, p0, Lbf/f$d;->e:Landroidx/fragment/app/FragmentActivity;
const/4 p1, 0x2
invoke-direct {p0, p1, p3}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V
return-void
.end method
# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/coroutines/Continuation<",
"*>;)",
"Lkotlin/coroutines/Continuation<",
"Lkotlin/Unit;",
">;"
}
.end annotation
new-instance v0, Lbf/f$d;
iget-object v1, p0, Lbf/f$d;->d:Lbf/f;
iget-object v2, p0, Lbf/f$d;->e:Landroidx/fragment/app/FragmentActivity;
invoke-direct {v0, v1, v2, p2}, Lbf/f$d;-><init>(Lbf/f;Landroidx/fragment/app/FragmentActivity;Lkotlin/coroutines/Continuation;)V
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
iput-object p1, v0, Lbf/f$d;->a:Lkotlinx/coroutines/CoroutineScope;
return-object v0
.end method
.method public final invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.registers 3
check-cast p2, Lkotlin/coroutines/Continuation;
invoke-virtual {p0, p1, p2}, Lbf/f$d;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
check-cast p1, Lbf/f$d;
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
invoke-virtual {p1, p2}, Lbf/f$d;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.registers 11
invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;
move-result-object v0
iget v1, p0, Lbf/f$d;->c:I
const/4 v2, 0x1
if-eqz v1, :cond_1b
if-ne v1, v2, :cond_13
iget-object v0, p0, Lbf/f$d;->b:Ljava/lang/Object;
check-cast v0, Lkotlinx/coroutines/CoroutineScope;
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
goto :goto_2f
:cond_13
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "call to \'resume\' before \'invoke\' with coroutine"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1b
invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
iget-object p1, p0, Lbf/f$d;->a:Lkotlinx/coroutines/CoroutineScope;
iget-object v1, p0, Lbf/f$d;->d:Lbf/f;
iget-object v3, p0, Lbf/f$d;->e:Landroidx/fragment/app/FragmentActivity;
iput-object p1, p0, Lbf/f$d;->b:Ljava/lang/Object;
iput v2, p0, Lbf/f$d;->c:I
invoke-virtual {v1, v3, p0}, Lbf/f;->a(Landroidx/fragment/app/FragmentActivity;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
move-result-object p1
if-ne p1, v0, :cond_2f
return-object v0
:cond_2f
:goto_2f
move-object v1, p1
check-cast v1, Landroid/net/Uri;
iget-object p1, p0, Lbf/f$d;->d:Lbf/f;
invoke-static {p1}, Lbf/f;->a(Lbf/f;)Landroid/view/View;
move-result-object p1
sget v0, Lnd/c;->gallery_entrance_image:I
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
move-object v0, p1
check-cast v0, Lcom/foody/android/image/service/AsyncImageView;
new-instance p1, Lf2/b;
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
sget-object v6, Lcom/foody/android/image/service/EnumImageResizeOpts;->THUMB_NAIL:Lcom/foody/android/image/service/EnumImageResizeOpts;
const/4 v7, 0x7
const/4 v8, 0x0
move-object v2, p1
invoke-direct/range {v2 .. v8}, Lf2/b;-><init>(ZZZLcom/foody/android/image/service/EnumImageResizeOpts;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
const/4 v4, 0x0
const/16 v5, 0xc
const/4 v6, 0x0
invoke-static/range {v0 .. v6}, Lcom/foody/android/image/service/AsyncImageView;->a(Lcom/foody/android/image/service/AsyncImageView;Landroid/net/Uri;Lf2/b;ZLf2/f;ILjava/lang/Object;)V
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object p1
.end method