apkfuckery/com.discord/smali/androidx/transition/AnimatorUtils.smali

156 lines
3.6 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class Landroidx/transition/AnimatorUtils;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/transition/AnimatorUtils$AnimatorPauseListenerCompat;
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static addPauseListener(Landroid/animation/Animator;Landroid/animation/AnimatorListenerAdapter;)V
.locals 2
.param p0 # Landroid/animation/Animator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroid/animation/AnimatorListenerAdapter;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x13
if-lt v0, v1, :cond_0
invoke-virtual {p0, p1}, Landroid/animation/Animator;->addPauseListener(Landroid/animation/Animator$AnimatorPauseListener;)V
:cond_0
return-void
.end method
.method static pause(Landroid/animation/Animator;)V
.locals 5
.param p0 # Landroid/animation/Animator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x13
if-lt v0, v1, :cond_0
invoke-virtual {p0}, Landroid/animation/Animator;->pause()V
return-void
:cond_0
invoke-virtual {p0}, Landroid/animation/Animator;->getListeners()Ljava/util/ArrayList;
move-result-object v0
if-eqz v0, :cond_2
const/4 v1, 0x0
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v2
:goto_0
if-ge v1, v2, :cond_2
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/animation/Animator$AnimatorListener;
instance-of v4, v3, Landroidx/transition/AnimatorUtils$AnimatorPauseListenerCompat;
if-eqz v4, :cond_1
check-cast v3, Landroidx/transition/AnimatorUtils$AnimatorPauseListenerCompat;
invoke-interface {v3, p0}, Landroidx/transition/AnimatorUtils$AnimatorPauseListenerCompat;->onAnimationPause(Landroid/animation/Animator;)V
:cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
return-void
.end method
.method static resume(Landroid/animation/Animator;)V
.locals 5
.param p0 # Landroid/animation/Animator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x13
if-lt v0, v1, :cond_0
invoke-virtual {p0}, Landroid/animation/Animator;->resume()V
return-void
:cond_0
invoke-virtual {p0}, Landroid/animation/Animator;->getListeners()Ljava/util/ArrayList;
move-result-object v0
if-eqz v0, :cond_2
const/4 v1, 0x0
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v2
:goto_0
if-ge v1, v2, :cond_2
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/animation/Animator$AnimatorListener;
instance-of v4, v3, Landroidx/transition/AnimatorUtils$AnimatorPauseListenerCompat;
if-eqz v4, :cond_1
check-cast v3, Landroidx/transition/AnimatorUtils$AnimatorPauseListenerCompat;
invoke-interface {v3, p0}, Landroidx/transition/AnimatorUtils$AnimatorPauseListenerCompat;->onAnimationResume(Landroid/animation/Animator;)V
:cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
return-void
.end method