d.smali
.class public Lcom/bumptech/glide/request/b/d;
.super Lcom/bumptech/glide/request/b/e;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/request/b/e",
"<",
"Lcom/bumptech/glide/load/resource/a/b;",
">;"
}
.end annotation
# instance fields
.field private b:I
.field private c:Lcom/bumptech/glide/load/resource/a/b;
# direct methods
.method public constructor <init>(Landroid/widget/ImageView;)V
.registers 3
const/4 v0, -0x1
invoke-direct {p0, p1, v0}, Lcom/bumptech/glide/request/b/d;-><init>(Landroid/widget/ImageView;I)V
return-void
.end method
.method public constructor <init>(Landroid/widget/ImageView;I)V
.registers 3
invoke-direct {p0, p1}, Lcom/bumptech/glide/request/b/e;-><init>(Landroid/widget/ImageView;)V
iput p2, p0, Lcom/bumptech/glide/request/b/d;->b:I
return-void
.end method
# virtual methods
.method protected a(Lcom/bumptech/glide/load/resource/a/b;)V
.registers 3
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->a:Landroid/view/View;
check-cast v0, Landroid/widget/ImageView;
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public a(Lcom/bumptech/glide/load/resource/a/b;Lcom/bumptech/glide/request/a/c;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/resource/a/b;",
"Lcom/bumptech/glide/request/a/c",
"<-",
"Lcom/bumptech/glide/load/resource/a/b;",
">;)V"
}
.end annotation
const/high16 v4, 0x3f800000 # 1.0f
const v3, 0x3d4ccccd # 0.05f
invoke-virtual {p1}, Lcom/bumptech/glide/load/resource/a/b;->a()Z
move-result v0
if-nez v0, :cond_4b
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->a:Landroid/view/View;
check-cast v0, Landroid/widget/ImageView;
invoke-virtual {v0}, Landroid/widget/ImageView;->getWidth()I
move-result v0
int-to-float v1, v0
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->a:Landroid/view/View;
check-cast v0, Landroid/widget/ImageView;
invoke-virtual {v0}, Landroid/widget/ImageView;->getHeight()I
move-result v0
int-to-float v0, v0
div-float v0, v1, v0
invoke-virtual {p1}, Lcom/bumptech/glide/load/resource/a/b;->getIntrinsicWidth()I
move-result v1
int-to-float v1, v1
invoke-virtual {p1}, Lcom/bumptech/glide/load/resource/a/b;->getIntrinsicHeight()I
move-result v2
int-to-float v2, v2
div-float/2addr v1, v2
sub-float/2addr v0, v4
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result v0
cmpg-float v0, v0, v3
if-gtz v0, :cond_4b
sub-float v0, v1, v4
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
move-result v0
cmpg-float v0, v0, v3
if-gtz v0, :cond_4b
new-instance v1, Lcom/bumptech/glide/request/b/i;
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->a:Landroid/view/View;
check-cast v0, Landroid/widget/ImageView;
invoke-virtual {v0}, Landroid/widget/ImageView;->getWidth()I
move-result v0
invoke-direct {v1, p1, v0}, Lcom/bumptech/glide/request/b/i;-><init>(Lcom/bumptech/glide/load/resource/a/b;I)V
move-object p1, v1
:cond_4b
invoke-super {p0, p1, p2}, Lcom/bumptech/glide/request/b/e;->onResourceReady(Ljava/lang/Object;Lcom/bumptech/glide/request/a/c;)V
iput-object p1, p0, Lcom/bumptech/glide/request/b/d;->c:Lcom/bumptech/glide/load/resource/a/b;
iget v0, p0, Lcom/bumptech/glide/request/b/d;->b:I
invoke-virtual {p1, v0}, Lcom/bumptech/glide/load/resource/a/b;->a(I)V
invoke-virtual {p1}, Lcom/bumptech/glide/load/resource/a/b;->start()V
return-void
.end method
.method protected bridge synthetic a(Ljava/lang/Object;)V
.registers 2
check-cast p1, Lcom/bumptech/glide/load/resource/a/b;
invoke-virtual {p0, p1}, Lcom/bumptech/glide/request/b/d;->a(Lcom/bumptech/glide/load/resource/a/b;)V
return-void
.end method
.method public synthetic onResourceReady(Ljava/lang/Object;Lcom/bumptech/glide/request/a/c;)V
.registers 3
check-cast p1, Lcom/bumptech/glide/load/resource/a/b;
invoke-virtual {p0, p1, p2}, Lcom/bumptech/glide/request/b/d;->a(Lcom/bumptech/glide/load/resource/a/b;Lcom/bumptech/glide/request/a/c;)V
return-void
.end method
.method public onStart()V
.registers 2
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->c:Lcom/bumptech/glide/load/resource/a/b;
if-eqz v0, :cond_9
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->c:Lcom/bumptech/glide/load/resource/a/b;
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/a/b;->start()V
:cond_9
return-void
.end method
.method public onStop()V
.registers 2
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->c:Lcom/bumptech/glide/load/resource/a/b;
if-eqz v0, :cond_9
iget-object v0, p0, Lcom/bumptech/glide/request/b/d;->c:Lcom/bumptech/glide/load/resource/a/b;
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/a/b;->stop()V
:cond_9
return-void
.end method