a$i.smali
.class public final Lcom/scwang/smart/refresh/layout/a$i;
.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 = "i"
.end annotation
# instance fields
.field public a:I
.field public b:F
.field public c:J
.field public d:J
.field public final synthetic e:Lcom/scwang/smart/refresh/layout/a;
# direct methods
.method public constructor <init>(Lcom/scwang/smart/refresh/layout/a;F)V
.registers 5
.line 1
iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, 0x0
.line 2
iput-wide v0, p0, Lcom/scwang/smart/refresh/layout/a$i;->c:J
.line 3
invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lcom/scwang/smart/refresh/layout/a$i;->d:J
.line 4
iput p2, p0, Lcom/scwang/smart/refresh/layout/a$i;->b:F
.line 5
iget p1, p1, Lcom/scwang/smart/refresh/layout/a;->b:I
iput p1, p0, Lcom/scwang/smart/refresh/layout/a$i;->a:I
return-void
.end method
# virtual methods
.method public final run()V
.registers 20
move-object/from16 v0, p0
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v2
const/4 v3, 0x1
if-ne v1, v2, :cond_f
const/4 v1, 0x1
goto :goto_10
:cond_f
const/4 v1, 0x0
:goto_10
const-string v2, "runnable"
const-string v5, "com/scwang/smart/refresh/layout/SmartRefreshLayout$FlingRunnable"
const-string v6, "run"
if-eqz v1, :cond_1b
invoke-static {v6, v5, v2}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 1
:cond_1b
iget-object v7, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;
iget-object v8, v7, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;
if-ne v8, v0, :cond_df
iget-object v7, v7, 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_df
.line 2
invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J
move-result-wide v7
.line 3
iget-wide v9, v0, Lcom/scwang/smart/refresh/layout/a$i;->d:J
sub-long v9, v7, v9
.line 4
iget v11, v0, Lcom/scwang/smart/refresh/layout/a$i;->b:F
float-to-double v11, v11
const v13, 0x3f7ae148 # 0.98f
float-to-double v13, v13
move-object/from16 v16, v5
iget-wide v4, v0, Lcom/scwang/smart/refresh/layout/a$i;->c:J
sub-long v4, v7, v4
long-to-float v4, v4
const/16 v5, 0xa
int-to-float v15, v5
const/high16 v17, 0x447a0000 # 1000.0f
div-float v15, v17, v15
div-float/2addr v4, v15
move-object/from16 v18, v6
float-to-double v5, v4
invoke-static {v13, v14, v5, v6}, Ljava/lang/Math;->pow(DD)D
move-result-wide v4
mul-double v4, v4, v11
double-to-float v4, v4
iput v4, v0, Lcom/scwang/smart/refresh/layout/a$i;->b:F
long-to-float v5, v9
const/high16 v6, 0x3f800000 # 1.0f
mul-float v5, v5, v6
div-float v5, v5, v17
mul-float v5, v5, v4
.line 5
invoke-static {v5}, Ljava/lang/Math;->abs(F)F
move-result v4
const/4 v9, 0x0
cmpl-float v4, v4, v6
if-lez v4, :cond_da
.line 6
iput-wide v7, v0, Lcom/scwang/smart/refresh/layout/a$i;->d:J
.line 7
iget v4, v0, Lcom/scwang/smart/refresh/layout/a$i;->a:I
int-to-float v4, v4
add-float/2addr v4, v5
float-to-int v4, v4
iput v4, v0, Lcom/scwang/smart/refresh/layout/a$i;->a:I
.line 8
iget-object v6, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;
iget v7, v6, Lcom/scwang/smart/refresh/layout/a;->b:I
mul-int v7, v7, v4
if-lez v7, :cond_84
.line 9
iget-object v5, v6, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
invoke-virtual {v5, v4, v3}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;
.line 10
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;
iget-object v3, v3, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;
const/16 v4, 0xa
int-to-long v4, v4
invoke-virtual {v3, v0, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
goto :goto_e3
.line 11
:cond_84
iput-object v9, v6, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;
.line 12
iget-object v4, v6, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
const/4 v6, 0x0
invoke-virtual {v4, v6, v3}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;
.line 13
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;
iget-object v3, v3, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;
.line 14
iget-object v3, v3, Lcom/scwang/smart/refresh/layout/wrapper/a;->c:Landroid/view/View;
.line 15
iget v4, v0, Lcom/scwang/smart/refresh/layout/a$i;->b:F
neg-float v4, v4
float-to-int v4, v4
sget v6, Lcom/scwang/smart/refresh/layout/util/b;->a:F
.line 16
instance-of v6, v3, Landroid/widget/ScrollView;
if-eqz v6, :cond_a2
.line 17
check-cast v3, Landroid/widget/ScrollView;
invoke-virtual {v3, v4}, Landroid/widget/ScrollView;->fling(I)V
goto :goto_ab
.line 18
:cond_a2
instance-of v6, v3, Landroid/widget/AbsListView;
if-eqz v6, :cond_ad
.line 19
check-cast v3, Landroid/widget/AbsListView;
invoke-virtual {v3, v4}, Landroid/widget/AbsListView;->fling(I)V
:goto_ab
const/4 v6, 0x0
goto :goto_cc
.line 20
:cond_ad
instance-of v6, v3, Landroid/webkit/WebView;
if-eqz v6, :cond_b8
.line 21
check-cast v3, Landroid/webkit/WebView;
const/4 v6, 0x0
invoke-virtual {v3, v6, v4}, Landroid/webkit/WebView;->flingScroll(II)V
goto :goto_cc
:cond_b8
const/4 v6, 0x0
.line 22
instance-of v7, v3, Landroidx/core/widget/NestedScrollView;
if-eqz v7, :cond_c3
.line 23
check-cast v3, Landroidx/core/widget/NestedScrollView;
invoke-virtual {v3, v4}, Landroidx/core/widget/NestedScrollView;->fling(I)V
goto :goto_cc
.line 24
:cond_c3
instance-of v7, v3, Landroidx/recyclerview/widget/RecyclerView;
if-eqz v7, :cond_cc
.line 25
check-cast v3, Landroidx/recyclerview/widget/RecyclerView;
invoke-virtual {v3, v6, v4}, Landroidx/recyclerview/widget/RecyclerView;->fling(II)Z
.line 26
:cond_cc
:goto_cc
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;
iget-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->N0:Z
if-eqz v4, :cond_e3
const/4 v4, 0x0
cmpl-float v4, v5, v4
if-lez v4, :cond_e3
.line 27
iput-boolean v6, v3, Lcom/scwang/smart/refresh/layout/a;->N0:Z
goto :goto_e3
.line 28
:cond_da
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;
iput-object v9, v3, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;
goto :goto_e3
:cond_df
move-object/from16 v16, v5
move-object/from16 v18, v6
:cond_e3
:goto_e3
if-eqz v1, :cond_ec
move-object/from16 v1, v16
move-object/from16 v3, v18
.line 29
invoke-static {v3, v1, v2}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_ec
return-void
.end method