m.smali
.class Lcom/scwang/smartrefresh/layout/m;
.super Ljava/lang/Object;
.source "SmartRefreshLayout.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->autoRefresh(IIFZ)Z
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:F
.field final synthetic b:I
.field final synthetic c:Z
.field final synthetic d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
# direct methods
.method constructor <init>(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;FIZ)V
.registers 5
.line 1
iput-object p1, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iput p2, p0, Lcom/scwang/smartrefresh/layout/m;->a:F
iput p3, p0, Lcom/scwang/smartrefresh/layout/m;->b:I
iput-boolean p4, p0, Lcom/scwang/smartrefresh/layout/m;->c:Z
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 6
.line 1
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mViceState:Lcom/scwang/smartrefresh/layout/constant/RefreshState;
sget-object v2, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->Refreshing:Lcom/scwang/smartrefresh/layout/constant/RefreshState;
if-eq v1, v2, :cond_9
return-void
.line 2
:cond_9
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
if-eqz v0, :cond_10
.line 3
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->cancel()V
.line 4
:cond_10
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
.line 5
invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I
move-result v1
int-to-float v1, v1
const/high16 v2, 0x40000000 # 2.0f
div-float/2addr v1, v2
iput v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mLastTouchX:F
.line 6
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mKernel:Lcom/scwang/smartrefresh/layout/a/i;
sget-object v1, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->PullDownToRefresh:Lcom/scwang/smartrefresh/layout/constant/RefreshState;
invoke-interface {v0, v1}, Lcom/scwang/smartrefresh/layout/a/i;->a(Lcom/scwang/smartrefresh/layout/constant/RefreshState;)Lcom/scwang/smartrefresh/layout/a/i;
.line 7
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
const/4 v1, 0x2
new-array v1, v1, [I
const/4 v2, 0x0
iget v3, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mSpinner:I
aput v3, v1, v2
const/4 v2, 0x1
iget v3, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mHeaderHeight:I
int-to-float v3, v3
iget v4, p0, Lcom/scwang/smartrefresh/layout/m;->a:F
mul-float v3, v3, v4
float-to-int v3, v3
aput v3, v1, v2
invoke-static {v1}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;
move-result-object v1
iput-object v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
.line 8
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
iget v1, p0, Lcom/scwang/smartrefresh/layout/m;->b:I
int-to-long v1, v1
invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
.line 9
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
new-instance v1, Lcom/scwang/smartrefresh/layout/c/c;
sget v2, Lcom/scwang/smartrefresh/layout/c/c;->a:I
invoke-direct {v1, v2}, Lcom/scwang/smartrefresh/layout/c/c;-><init>(I)V
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
.line 10
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
new-instance v1, Lcom/scwang/smartrefresh/layout/k;
invoke-direct {v1, p0}, Lcom/scwang/smartrefresh/layout/k;-><init>(Lcom/scwang/smartrefresh/layout/m;)V
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
.line 11
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
new-instance v1, Lcom/scwang/smartrefresh/layout/l;
invoke-direct {v1, p0}, Lcom/scwang/smartrefresh/layout/l;-><init>(Lcom/scwang/smartrefresh/layout/m;)V
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 12
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/m;->d:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
return-void
.end method