100 lines
2.5 KiB
Smali
100 lines
2.5 KiB
Smali
.class public final Lcom/facebook/drawee/drawable/ScalingUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "ScalingUtils.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$k;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$j;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$c;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$d;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$b;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$g;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$f;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$e;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$h;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$i;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$a;,
|
|
Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static f(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/drawable/p;
|
|
.locals 4
|
|
.param p0 # Landroid/graphics/drawable/Drawable;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
instance-of v1, p0, Lcom/facebook/drawee/drawable/p;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
check-cast p0, Lcom/facebook/drawee/drawable/p;
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
instance-of v1, p0, Lcom/facebook/drawee/drawable/c;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
check-cast p0, Lcom/facebook/drawee/drawable/c;
|
|
|
|
invoke-interface {p0}, Lcom/facebook/drawee/drawable/c;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
instance-of v1, p0, Lcom/facebook/drawee/drawable/a;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
check-cast p0, Lcom/facebook/drawee/drawable/a;
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/drawable/a;->Iz:[Landroid/graphics/drawable/Drawable;
|
|
|
|
array-length v1, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
if-ge v2, v1, :cond_4
|
|
|
|
invoke-virtual {p0, v2}, Lcom/facebook/drawee/drawable/a;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lcom/facebook/drawee/drawable/ScalingUtils;->f(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/drawable/p;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
return-object v3
|
|
|
|
:cond_3
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|