a$h.smali
.class public final Lcom/scwang/smart/refresh/layout/a$h;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/scwang/smart/refresh/layout/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "h"
.end annotation
# instance fields
.field public a:I
.field public b:I
.field public c:J
.field public d:F
.field public e:F
.field public final synthetic f:Lcom/scwang/smart/refresh/layout/a;
# direct methods
.method public constructor <init>(Lcom/scwang/smart/refresh/layout/a;FI)V
.registers 7
.line 1
iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput v0, p0, Lcom/scwang/smart/refresh/layout/a$h;->a:I
const/4 v0, 0x0
.line 3
iput v0, p0, Lcom/scwang/smart/refresh/layout/a$h;->d:F
.line 4
iput p2, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
.line 5
iput p3, p0, Lcom/scwang/smart/refresh/layout/a$h;->b:I
.line 6
invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J
move-result-wide v1
iput-wide v1, p0, Lcom/scwang/smart/refresh/layout/a$h;->c:J
.line 7
iget-object p3, p1, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;
const/16 v1, 0xa
int-to-long v1, v1
invoke-virtual {p3, p0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
cmpl-float p2, p2, v0
if-lez p2, :cond_29
.line 8
iget-object p1, p1, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
sget-object p2, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;
invoke-virtual {p1, p2}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V
goto :goto_30
.line 9
:cond_29
iget-object p1, p1, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
sget-object p2, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpToLoad:Lcom/scwang/smart/refresh/layout/constant/b;
invoke-virtual {p1, p2}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V
:goto_30
return-void
.end method
# virtual methods
.method public final run()V
.registers 13
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, 0x1
const/4 v3, 0x0
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$BounceRunnable"
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/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
iget-object v7, v6, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;
if-ne v7, p0, :cond_113
iget-object v7, v6, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;
iget-boolean v7, v7, Lcom/scwang/smart/refresh/layout/constant/b;->isFinishing:Z
if-nez v7, :cond_113
.line 2
iget v6, v6, Lcom/scwang/smart/refresh/layout/a;->b:I
invoke-static {v6}, Ljava/lang/Math;->abs(I)I
move-result v6
iget v7, p0, Lcom/scwang/smart/refresh/layout/a$h;->b:I
invoke-static {v7}, Ljava/lang/Math;->abs(I)I
move-result v7
if-lt v6, v7, :cond_6c
.line 3
iget v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->b:I
if-eqz v6, :cond_52
.line 4
iget v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
float-to-double v6, v6
const-wide v8, 0x3fdcccccc0000000L # 0.44999998807907104
iget v10, p0, Lcom/scwang/smart/refresh/layout/a$h;->a:I
add-int/2addr v10, v2
iput v10, p0, Lcom/scwang/smart/refresh/layout/a$h;->a:I
mul-int/lit8 v10, v10, 0x2
int-to-double v10, v10
invoke-static {v8, v9, v10, v11}, Ljava/lang/Math;->pow(DD)D
move-result-wide v8
mul-double v8, v8, v6
double-to-float v2, v8
iput v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
goto :goto_85
.line 5
:cond_52
iget v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
float-to-double v6, v6
const-wide v8, 0x3feb333340000000L # 0.8500000238418579
iget v10, p0, Lcom/scwang/smart/refresh/layout/a$h;->a:I
add-int/2addr v10, v2
iput v10, p0, Lcom/scwang/smart/refresh/layout/a$h;->a:I
mul-int/lit8 v10, v10, 0x2
int-to-double v10, v10
invoke-static {v8, v9, v10, v11}, Ljava/lang/Math;->pow(DD)D
move-result-wide v8
mul-double v8, v8, v6
double-to-float v2, v8
iput v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
goto :goto_85
.line 6
:cond_6c
iget v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
float-to-double v6, v6
const-wide v8, 0x3fee666660000000L # 0.949999988079071
iget v10, p0, Lcom/scwang/smart/refresh/layout/a$h;->a:I
add-int/2addr v10, v2
iput v10, p0, Lcom/scwang/smart/refresh/layout/a$h;->a:I
mul-int/lit8 v10, v10, 0x2
int-to-double v10, v10
invoke-static {v8, v9, v10, v11}, Ljava/lang/Math;->pow(DD)D
move-result-wide v8
mul-double v8, v8, v6
double-to-float v2, v8
iput v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
.line 7
:goto_85
invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J
move-result-wide v6
.line 8
iget-wide v8, p0, Lcom/scwang/smart/refresh/layout/a$h;->c:J
sub-long v8, v6, v8
long-to-float v2, v8
const/high16 v8, 0x3f800000 # 1.0f
mul-float v2, v2, v8
const/high16 v9, 0x447a0000 # 1000.0f
div-float/2addr v2, v9
.line 9
iget v9, p0, Lcom/scwang/smart/refresh/layout/a$h;->e:F
mul-float v9, v9, v2
.line 10
invoke-static {v9}, Ljava/lang/Math;->abs(F)F
move-result v2
const/16 v10, 0xa
cmpl-float v2, v2, v8
if-ltz v2, :cond_b8
.line 11
iput-wide v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->c:J
.line 12
iget v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->d:F
add-float/2addr v2, v9
iput v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->d:F
.line 13
iget-object v3, p0, Lcom/scwang/smart/refresh/layout/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
invoke-virtual {v3, v2}, Lcom/scwang/smart/refresh/layout/a;->o(F)V
.line 14
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;
int-to-long v6, v10
invoke-virtual {v2, p0, v6, v7}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
goto :goto_113
.line 15
:cond_b8
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
iget-object v6, v2, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;
iget-boolean v7, v6, Lcom/scwang/smart/refresh/layout/constant/b;->isDragging:Z
if-eqz v7, :cond_cc
iget-boolean v8, v6, Lcom/scwang/smart/refresh/layout/constant/b;->isHeader:Z
if-eqz v8, :cond_cc
.line 16
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
sget-object v6, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownCanceled:Lcom/scwang/smart/refresh/layout/constant/b;
invoke-virtual {v2, v6}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V
goto :goto_d9
:cond_cc
if-eqz v7, :cond_d9
.line 17
iget-boolean v6, v6, Lcom/scwang/smart/refresh/layout/constant/b;->isFooter:Z
if-eqz v6, :cond_d9
.line 18
iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
sget-object v6, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpCanceled:Lcom/scwang/smart/refresh/layout/constant/b;
invoke-virtual {v2, v6}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V
.line 19
:cond_d9
:goto_d9
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
const/4 v6, 0x0
iput-object v6, v2, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;
.line 20
iget v2, v2, Lcom/scwang/smart/refresh/layout/a;->b:I
invoke-static {v2}, Ljava/lang/Math;->abs(I)I
move-result v2
iget v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->b:I
invoke-static {v6}, Ljava/lang/Math;->abs(I)I
move-result v6
if-lt v2, v6, :cond_113
.line 21
iget-object v2, p0, Lcom/scwang/smart/refresh/layout/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
iget v2, v2, Lcom/scwang/smart/refresh/layout/a;->b:I
iget v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->b:I
sub-int/2addr v2, v6
invoke-static {v2}, Ljava/lang/Math;->abs(I)I
move-result v2
int-to-float v2, v2
.line 22
sget v6, Lcom/scwang/smart/refresh/layout/util/b;->a:F
div-float/2addr v2, v6
float-to-int v2, v2
const/16 v6, 0x1e
.line 23
invoke-static {v2, v6}, Ljava/lang/Math;->max(II)I
move-result v2
const/16 v6, 0x64
invoke-static {v2, v6}, Ljava/lang/Math;->min(II)I
move-result v2
mul-int/lit8 v2, v2, 0xa
.line 24
iget-object v6, p0, Lcom/scwang/smart/refresh/layout/a$h;->f:Lcom/scwang/smart/refresh/layout/a;
iget v7, p0, Lcom/scwang/smart/refresh/layout/a$h;->b:I
iget-object v8, v6, Lcom/scwang/smart/refresh/layout/a;->z:Lcom/scwang/smart/refresh/layout/util/b;
invoke-virtual {v6, v7, v3, v8, v2}, Lcom/scwang/smart/refresh/layout/a;->g(IILandroid/view/animation/Interpolator;I)Landroid/animation/ValueAnimator;
:cond_113
:goto_113
if-eqz v0, :cond_118
.line 25
invoke-static {v5, v4, v1}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_118
return-void
.end method