BezierRadarHeader$AnimatorUpdater.smali
.class public Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;
.super Ljava/lang/Object;
.source "BezierRadarHeader.java"
# interfaces
.implements Landroid/animation/ValueAnimator$AnimatorUpdateListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4
name = "AnimatorUpdater"
.end annotation
# instance fields
.field propertyName:B
.field final synthetic this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;B)V
.registers 3
.param p1, "this$0" # Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
.param p2, "name" # B
.line 371
iput-object p1, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 372
iput-byte p2, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->propertyName:B
.line 373
return-void
.end method
# virtual methods
.method public onAnimationUpdate(Landroid/animation/ValueAnimator;)V
.registers 5
.param p1, "animation" # Landroid/animation/ValueAnimator;
.line 376
iget-byte v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->propertyName:B
if-nez v0, :cond_13
.line 377
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Float;
invoke-virtual {v1}, Ljava/lang/Float;->floatValue()F
move-result v1
iput v1, v0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;->mRadarScale:F
goto :goto_65
.line 378
:cond_13
const/4 v1, 0x1
const/4 v2, 0x2
if-ne v1, v0, :cond_31
.line 379
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
iget-boolean v0, v0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;->mWavePulling:Z
if-eqz v0, :cond_21
.line 380
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->cancel()V
.line 381
return-void
.line 383
:cond_21
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
div-int/2addr v1, v2
iput v1, v0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;->mWaveHeight:I
goto :goto_65
.line 384
:cond_31
if-ne v2, v0, :cond_42
.line 385
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Float;
invoke-virtual {v1}, Ljava/lang/Float;->floatValue()F
move-result v1
iput v1, v0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;->mDotAlpha:F
goto :goto_65
.line 386
:cond_42
const/4 v1, 0x3
if-ne v1, v0, :cond_54
.line 387
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Float;
invoke-virtual {v1}, Ljava/lang/Float;->floatValue()F
move-result v1
iput v1, v0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;->mRippleRadius:F
goto :goto_65
.line 388
:cond_54
const/4 v1, 0x4
if-ne v1, v0, :cond_65
.line 389
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
iput v1, v0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;->mRadarAngle:I
.line 391
:cond_65
:goto_65
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader$AnimatorUpdater;->this$0:Lcom/scwang/smartrefresh/layout/header/BezierRadarHeader;
.line 392
.local v0, "thisView":Landroid/view/View;
invoke-virtual {v0}, Landroid/view/View;->invalidate()V
.line 393
return-void
.end method