You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
166 lines
3.9 KiB
166 lines
3.9 KiB
2 years ago
|
.class final Lcom/squareup/picasso/TargetAction;
|
||
|
.super Lcom/squareup/picasso/Action;
|
||
|
.source "TargetAction.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lcom/squareup/picasso/Action",
|
||
|
"<",
|
||
|
"Lcom/squareup/picasso/Target;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/squareup/picasso/Picasso;Lcom/squareup/picasso/Target;Lcom/squareup/picasso/Request;IILandroid/graphics/drawable/Drawable;Ljava/lang/String;Ljava/lang/Object;I)V
|
||
|
.locals 11
|
||
|
|
||
|
.prologue
|
||
|
.line 25
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
move-object v1, p1
|
||
|
|
||
|
move-object v2, p2
|
||
|
|
||
|
move-object v3, p3
|
||
|
|
||
|
move v4, p4
|
||
|
|
||
|
move/from16 v5, p5
|
||
|
|
||
|
move/from16 v6, p9
|
||
|
|
||
|
move-object/from16 v7, p6
|
||
|
|
||
|
move-object/from16 v8, p7
|
||
|
|
||
|
move-object/from16 v9, p8
|
||
|
|
||
|
invoke-direct/range {v0 .. v10}, Lcom/squareup/picasso/Action;-><init>(Lcom/squareup/picasso/Picasso;Ljava/lang/Object;Lcom/squareup/picasso/Request;IIILandroid/graphics/drawable/Drawable;Ljava/lang/String;Ljava/lang/Object;Z)V
|
||
|
|
||
|
.line 27
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method complete(Landroid/graphics/Bitmap;Lcom/squareup/picasso/Picasso$LoadedFrom;)V
|
||
|
.locals 4
|
||
|
|
||
|
.prologue
|
||
|
.line 30
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
.line 31
|
||
|
new-instance v0, Ljava/lang/AssertionError;
|
||
|
|
||
|
const-string v1, "Attempted to complete action with no result!\n%s"
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
new-array v2, v2, [Ljava/lang/Object;
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
aput-object p0, v2, v3
|
||
|
|
||
|
.line 32
|
||
|
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
.line 34
|
||
|
:cond_0
|
||
|
invoke-virtual {p0}, Lcom/squareup/picasso/TargetAction;->getTarget()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/squareup/picasso/Target;
|
||
|
|
||
|
.line 35
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 36
|
||
|
invoke-interface {v0, p1, p2}, Lcom/squareup/picasso/Target;->onBitmapLoaded(Landroid/graphics/Bitmap;Lcom/squareup/picasso/Picasso$LoadedFrom;)V
|
||
|
|
||
|
.line 37
|
||
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
.line 38
|
||
|
new-instance v0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v1, "Target callback must not recycle bitmap!"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
.line 41
|
||
|
:cond_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method error()V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
.line 44
|
||
|
invoke-virtual {p0}, Lcom/squareup/picasso/TargetAction;->getTarget()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/squareup/picasso/Target;
|
||
|
|
||
|
.line 45
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 46
|
||
|
iget v1, p0, Lcom/squareup/picasso/TargetAction;->errorResId:I
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
.line 47
|
||
|
iget-object v1, p0, Lcom/squareup/picasso/TargetAction;->picasso:Lcom/squareup/picasso/Picasso;
|
||
|
|
||
|
iget-object v1, v1, Lcom/squareup/picasso/Picasso;->context:Landroid/content/Context;
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget v2, p0, Lcom/squareup/picasso/TargetAction;->errorResId:I
|
||
|
|
||
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v0, v1}, Lcom/squareup/picasso/Target;->onBitmapFailed(Landroid/graphics/drawable/Drawable;)V
|
||
|
|
||
|
.line 52
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
.line 49
|
||
|
:cond_1
|
||
|
iget-object v1, p0, Lcom/squareup/picasso/TargetAction;->errorDrawable:Landroid/graphics/drawable/Drawable;
|
||
|
|
||
|
invoke-interface {v0, v1}, Lcom/squareup/picasso/Target;->onBitmapFailed(Landroid/graphics/drawable/Drawable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|