2020-05-17 12:40:10 +00:00
|
|
|
.class public Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;
|
2020-07-08 16:44:49 +00:00
|
|
|
.super Lf/h/g/c/b;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "DraweeSpanStringBuilder.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x1
|
|
|
|
name = "c"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
"Lf/h/g/c/b<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Lcom/facebook/imagepipeline/image/ImageInfo;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public final a:Lf/h/g/i/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
.field public final b:Z
|
|
|
|
|
|
|
|
.field public final c:I
|
|
|
|
|
|
|
|
.field public final synthetic d:Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public constructor <init>(Lcom/facebook/drawee/span/DraweeSpanStringBuilder;Lf/h/g/i/a;ZI)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->d:Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p0}, Lf/h/g/c/b;-><init>()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object p2, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->a:Lf/h/g/i/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
iput-boolean p3, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->b:Z
|
|
|
|
|
|
|
|
iput p4, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->c:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public onFinalImageSet(Ljava/lang/String;Ljava/lang/Object;Landroid/graphics/drawable/Animatable;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
check-cast p2, Lcom/facebook/imagepipeline/image/ImageInfo;
|
|
|
|
|
|
|
|
iget-boolean p1, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->b:Z
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->a:Lf/h/g/i/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p1, Lf/h/g/i/a;->j:Lcom/facebook/drawee/view/DraweeHolder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1}, Lcom/facebook/drawee/view/DraweeHolder;->d()Landroid/graphics/drawable/Drawable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->a:Lf/h/g/i/a;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p1, p1, Lf/h/g/i/a;->j:Lcom/facebook/drawee/view/DraweeHolder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {p1}, Lcom/facebook/drawee/view/DraweeHolder;->d()Landroid/graphics/drawable/Drawable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->getBounds()Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->c:I
|
|
|
|
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
invoke-interface {p2}, Lcom/facebook/imagepipeline/image/ImageInfo;->getHeight()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
|
|
|
|
invoke-interface {p2}, Lcom/facebook/imagepipeline/image/ImageInfo;->getWidth()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
mul-float v0, v0, p2
|
|
|
|
|
|
|
|
float-to-int p2, v0
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Landroid/graphics/Rect;->width()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-ne v0, p2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Landroid/graphics/Rect;->height()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->c:I
|
|
|
|
|
|
|
|
if-eq p3, v0, :cond_3
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget p3, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->c:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2, v2, p2, p3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->d:Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p2, p1, Lcom/facebook/drawee/span/DraweeSpanStringBuilder;->h:Lcom/facebook/drawee/span/DraweeSpanStringBuilder$d;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p2, p1}, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$d;->a(Lcom/facebook/drawee/span/DraweeSpanStringBuilder;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p3}, Landroid/graphics/Rect;->width()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-interface {p2}, Lcom/facebook/imagepipeline/image/ImageInfo;->getWidth()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Landroid/graphics/Rect;->height()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-interface {p2}, Lcom/facebook/imagepipeline/image/ImageInfo;->getHeight()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eq p3, v0, :cond_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-interface {p2}, Lcom/facebook/imagepipeline/image/ImageInfo;->getWidth()I
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
invoke-interface {p2}, Lcom/facebook/imagepipeline/image/ImageInfo;->getHeight()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2, v2, p3, p2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$c;->d:Lcom/facebook/drawee/span/DraweeSpanStringBuilder;
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object p2, p1, Lcom/facebook/drawee/span/DraweeSpanStringBuilder;->h:Lcom/facebook/drawee/span/DraweeSpanStringBuilder$d;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p2, p1}, Lcom/facebook/drawee/span/DraweeSpanStringBuilder$d;->a(Lcom/facebook/drawee/span/DraweeSpanStringBuilder;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|