AnimatedDrawableValueAnimatorHelper.smali
.class public Lcom/facebook/fresco/animation/drawable/animator/AnimatedDrawableValueAnimatorHelper;
.super Ljava/lang/Object;
.source "AnimatedDrawableValueAnimatorHelper.java"
# direct methods
.method private constructor <init>()V
.registers 1
.line 84
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static createAnimatorUpdateListener(Landroid/graphics/drawable/Drawable;)Landroid/animation/ValueAnimator$AnimatorUpdateListener;
.registers 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x10
}
names = {
"drawable"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 73
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v1, 0x0
const/16 v2, 0xb
if-ge v0, v2, :cond_8
return-object v1
.line 77
:cond_8
instance-of v0, p0, Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;
if-eqz v0, :cond_13
.line 78
check-cast p0, Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;
invoke-static {p0}, Lcom/facebook/fresco/animation/drawable/animator/AnimatedDrawable2ValueAnimatorHelper;->createAnimatorUpdateListener(Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;)Landroid/animation/ValueAnimator$AnimatorUpdateListener;
move-result-object p0
return-object p0
:cond_13
return-object v1
.end method
.method public static createValueAnimator(Landroid/graphics/drawable/Drawable;)Landroid/animation/ValueAnimator;
.registers 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"drawable"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 54
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v1, 0x0
const/16 v2, 0xb
if-ge v0, v2, :cond_8
return-object v1
.line 58
:cond_8
instance-of v0, p0, Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;
if-eqz v0, :cond_13
.line 59
check-cast p0, Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;
invoke-static {p0}, Lcom/facebook/fresco/animation/drawable/animator/AnimatedDrawable2ValueAnimatorHelper;->createValueAnimator(Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;)Landroid/animation/ValueAnimator;
move-result-object p0
return-object p0
:cond_13
return-object v1
.end method
.method public static createValueAnimator(Landroid/graphics/drawable/Drawable;I)Landroid/animation/ValueAnimator;
.registers 5
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"drawable",
"maxDurationMs"
}
.end annotation
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 35
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v1, 0x0
const/16 v2, 0xb
if-ge v0, v2, :cond_8
return-object v1
.line 39
:cond_8
instance-of v0, p0, Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;
if-eqz v0, :cond_13
.line 40
check-cast p0, Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;
invoke-static {p0, p1}, Lcom/facebook/fresco/animation/drawable/animator/AnimatedDrawable2ValueAnimatorHelper;->createValueAnimator(Lcom/facebook/fresco/animation/drawable/AnimatedDrawable2;I)Landroid/animation/ValueAnimator;
move-result-object p0
return-object p0
:cond_13
return-object v1
.end method