c.smali
.class public final Lcom/scwang/smart/refresh/layout/c;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic a:F
.field public final synthetic b:I
.field public final synthetic c:Z
.field public final synthetic d:Lcom/scwang/smart/refresh/layout/a;
# direct methods
.method public constructor <init>(Lcom/scwang/smart/refresh/layout/a;FI)V
.registers 4
iput-object p1, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iput p2, p0, Lcom/scwang/smart/refresh/layout/c;->a:F
iput p3, p0, Lcom/scwang/smart/refresh/layout/c;->b:I
const/4 p1, 0x0
iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/c;->c:Z
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.registers 10
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v1
const/4 v2, 0x0
const/4 v3, 0x1
if-ne v0, v1, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
const-string v1, "runnable"
const-string v4, "com/scwang/smart/refresh/layout/SmartRefreshLayout$8"
const-string v5, "run"
if-eqz v0, :cond_1a
invoke-static {v5, v4, v1}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 1
:cond_1a
iget-object v6, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v7, v6, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;
sget-object v8, Lcom/scwang/smart/refresh/layout/constant/b;->Refreshing:Lcom/scwang/smart/refresh/layout/constant/b;
if-eq v7, v8, :cond_28
if-eqz v0, :cond_27
invoke-static {v5, v4, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_27
return-void
.line 2
:cond_28
iget-object v6, v6, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
if-eqz v6, :cond_3d
const-wide/16 v7, 0x0
.line 3
invoke-virtual {v6, v7, v8}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
.line 4
iget-object v6, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v6, v6, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
invoke-virtual {v6}, Landroid/animation/ValueAnimator;->cancel()V
.line 5
iget-object v6, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
const/4 v7, 0x0
iput-object v7, v6, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
.line 6
:cond_3d
iget-object v6, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
.line 7
invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I
move-result v7
int-to-float v7, v7
const/high16 v8, 0x40000000 # 2.0f
div-float/2addr v7, v8
iput v7, v6, Lcom/scwang/smart/refresh/layout/a;->j:F
.line 8
iget-object v6, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v6, v6, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
sget-object v7, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;
invoke-virtual {v6, v7}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V
.line 9
iget-object v6, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
const/4 v7, 0x2
new-array v7, v7, [I
iget v8, v6, Lcom/scwang/smart/refresh/layout/a;->b:I
aput v8, v7, v2
iget v2, v6, Lcom/scwang/smart/refresh/layout/a;->r0:I
int-to-float v2, v2
iget v8, p0, Lcom/scwang/smart/refresh/layout/c;->a:F
mul-float v2, v2, v8
float-to-int v2, v2
aput v2, v7, v3
invoke-static {v7}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;
move-result-object v2
iput-object v2, v6, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
.line 10
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
iget v3, p0, Lcom/scwang/smart/refresh/layout/c;->b:I
int-to-long v6, v3
invoke-virtual {v2, v6, v7}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
.line 11
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
new-instance v3, Lcom/scwang/smart/refresh/layout/util/b;
sget v6, Lcom/scwang/smart/refresh/layout/util/b;->a:F
invoke-direct {v3}, Lcom/scwang/smart/refresh/layout/util/b;-><init>()V
invoke-virtual {v2, v3}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
.line 12
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
new-instance v3, Lcom/scwang/smart/refresh/layout/c$a;
invoke-direct {v3, p0}, Lcom/scwang/smart/refresh/layout/c$a;-><init>(Lcom/scwang/smart/refresh/layout/c;)V
invoke-virtual {v2, v3}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
.line 13
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
new-instance v3, Lcom/scwang/smart/refresh/layout/c$b;
invoke-direct {v3, p0}, Lcom/scwang/smart/refresh/layout/c$b;-><init>(Lcom/scwang/smart/refresh/layout/c;)V
invoke-virtual {v2, v3}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
.line 14
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/c;->d:Lcom/scwang/smart/refresh/layout/a;
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
invoke-virtual {v2}, Landroid/animation/ValueAnimator;->start()V
if-eqz v0, :cond_a7
.line 15
invoke-static {v5, v4, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_a7
return-void
.end method