92 lines
2.6 KiB
Smali
92 lines
2.6 KiB
Smali
.class public final Lcom/discord/utilities/animations/LoopAnimationListener;
|
|
.super Ljava/lang/Object;
|
|
.source "LottieAnimationUtils.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/animation/ValueAnimator$AnimatorUpdateListener;
|
|
|
|
|
|
# instance fields
|
|
.field public final animationView:Lcom/airbnb/lottie/LottieAnimationView;
|
|
|
|
.field public final loopFrames:Lkotlin/ranges/IntRange;
|
|
|
|
.field public final triggerFrame:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/airbnb/lottie/LottieAnimationView;ILkotlin/ranges/IntRange;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->animationView:Lcom/airbnb/lottie/LottieAnimationView;
|
|
|
|
iput p2, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->triggerFrame:I
|
|
|
|
iput-object p3, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->loopFrames:Lkotlin/ranges/IntRange;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "loopFrames"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "animationView"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onAnimationUpdate(Landroid/animation/ValueAnimator;)V
|
|
.locals 2
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->animationView:Lcom/airbnb/lottie/LottieAnimationView;
|
|
|
|
invoke-virtual {p1}, Lcom/airbnb/lottie/LottieAnimationView;->getFrame()I
|
|
|
|
move-result p1
|
|
|
|
iget v0, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->triggerFrame:I
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->animationView:Lcom/airbnb/lottie/LottieAnimationView;
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->loopFrames:Lkotlin/ranges/IntRange;
|
|
|
|
iget v1, v0, Lkotlin/ranges/IntProgression;->d:I
|
|
|
|
iget v0, v0, Lkotlin/ranges/IntProgression;->e:I
|
|
|
|
iget-object p1, p1, Lcom/airbnb/lottie/LottieAnimationView;->f:Lf/d/a/g;
|
|
|
|
invoke-virtual {p1, v1, v0}, Lf/d/a/g;->k(II)V
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/animations/LoopAnimationListener;->animationView:Lcom/airbnb/lottie/LottieAnimationView;
|
|
|
|
iget-object p1, p1, Lcom/airbnb/lottie/LottieAnimationView;->f:Lf/d/a/g;
|
|
|
|
iget-object p1, p1, Lf/d/a/g;->f:Lf/d/a/y/d;
|
|
|
|
iget-object p1, p1, Lf/d/a/y/a;->d:Ljava/util/Set;
|
|
|
|
invoke-interface {p1, p0}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|