97 lines
3 KiB
Smali
97 lines
3 KiB
Smali
.class public final Lcom/discord/utilities/images/MGImagesBitmap$getBitmap$2;
|
|
.super Lcom/facebook/imagepipeline/c/b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/images/MGImagesBitmap;->getBitmap(Ljava/lang/String;IIZLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $onError:Lkotlin/jvm/functions/Function1;
|
|
|
|
.field final synthetic $onSuccess:Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/images/MGImagesBitmap$getBitmap$2;->$onSuccess:Lkotlin/jvm/functions/Function1;
|
|
|
|
iput-object p2, p0, Lcom/discord/utilities/images/MGImagesBitmap$getBitmap$2;->$onError:Lkotlin/jvm/functions/Function1;
|
|
|
|
invoke-direct {p0}, Lcom/facebook/imagepipeline/c/b;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onFailureImpl(Lcom/facebook/datasource/DataSource;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/datasource/DataSource<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/imagepipeline/f/c;",
|
|
">;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/images/MGImagesBitmap$getBitmap$2;->$onError:Lkotlin/jvm/functions/Function1;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->fD()Ljava/lang/Throwable;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "Unable to decode bitmap."
|
|
|
|
invoke-direct {p1, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
:cond_1
|
|
invoke-interface {v0, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNewResultImpl(Landroid/graphics/Bitmap;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/images/MGImagesBitmap$getBitmap$2;->$onSuccess:Lkotlin/jvm/functions/Function1;
|
|
|
|
invoke-interface {v0, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/discord/utilities/images/MGImagesBitmap$getBitmap$2;->$onError:Lkotlin/jvm/functions/Function1;
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "Unable to decode bitmap."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|