b.smali
.class public final Lcom/scwang/smart/refresh/layout/b;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public a:I
.field public final synthetic b:I
.field public final synthetic c:Z
.field public final synthetic d:Z
.field public final synthetic e:Lcom/scwang/smart/refresh/layout/a;
# direct methods
.method public constructor <init>(Lcom/scwang/smart/refresh/layout/a;IZ)V
.registers 4
.line 1
iput-object p1, p0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iput p2, p0, Lcom/scwang/smart/refresh/layout/b;->b:I
iput-boolean p3, p0, Lcom/scwang/smart/refresh/layout/b;->c:Z
const/4 p1, 0x1
iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/b;->d:Z
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
.line 2
iput p1, p0, Lcom/scwang/smart/refresh/layout/b;->a:I
return-void
.end method
# virtual methods
.method public final run()V
.registers 24
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
const/4 v4, 0x0
if-ne v1, v2, :cond_10
const/4 v1, 0x1
goto :goto_11
:cond_10
const/4 v1, 0x0
:goto_11
const-string v2, "runnable"
const-string v5, "com/scwang/smart/refresh/layout/SmartRefreshLayout$7"
const-string v6, "run"
if-eqz v1, :cond_1c
invoke-static {v6, v5, v2}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 1
:cond_1c
iget v7, v0, Lcom/scwang/smart/refresh/layout/b;->a:I
const-wide/16 v8, 0x0
if-nez v7, :cond_97
.line 2
iget-object v10, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-object v11, v10, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;
sget-object v12, Lcom/scwang/smart/refresh/layout/constant/b;->None:Lcom/scwang/smart/refresh/layout/constant/b;
if-ne v11, v12, :cond_33
iget-object v13, v10, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;
sget-object v14, Lcom/scwang/smart/refresh/layout/constant/b;->Loading:Lcom/scwang/smart/refresh/layout/constant/b;
if-ne v13, v14, :cond_33
.line 3
iput-object v12, v10, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;
goto :goto_8c
.line 4
:cond_33
iget-object v13, v10, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
if-eqz v13, :cond_68
iget-boolean v14, v11, Lcom/scwang/smart/refresh/layout/constant/b;->isDragging:Z
if-nez v14, :cond_3f
sget-object v14, Lcom/scwang/smart/refresh/layout/constant/b;->LoadReleased:Lcom/scwang/smart/refresh/layout/constant/b;
if-ne v11, v14, :cond_68
:cond_3f
iget-boolean v14, v11, Lcom/scwang/smart/refresh/layout/constant/b;->isFooter:Z
if-eqz v14, :cond_68
.line 5
invoke-virtual {v13, v8, v9}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
.line 6
iget-object v7, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-object v7, v7, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
invoke-virtual {v7}, Landroid/animation/ValueAnimator;->cancel()V
.line 7
iget-object v7, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
const/4 v8, 0x0
iput-object v8, v7, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;
.line 8
iget-object v7, v7, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;
invoke-virtual {v7, v4}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;
move-result-object v4
if-nez v4, :cond_60
.line 9
iget-object v4, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
invoke-virtual {v4, v12}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V
goto :goto_8c
.line 10
:cond_60
iget-object v4, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
sget-object v7, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpCanceled:Lcom/scwang/smart/refresh/layout/constant/b;
invoke-virtual {v4, v7}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V
goto :goto_8c
.line 11
:cond_68
sget-object v4, Lcom/scwang/smart/refresh/layout/constant/b;->Loading:Lcom/scwang/smart/refresh/layout/constant/b;
if-ne v11, v4, :cond_8c
iget-object v4, v10, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;
if-eqz v4, :cond_8c
iget-object v4, v10, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;
if-eqz v4, :cond_8c
add-int/2addr v7, v3
.line 12
iput v7, v0, Lcom/scwang/smart/refresh/layout/b;->a:I
.line 13
iget-object v3, v10, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;
iget v4, v0, Lcom/scwang/smart/refresh/layout/b;->b:I
int-to-long v7, v4
invoke-virtual {v3, v0, v7, v8}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
.line 14
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
sget-object v4, Lcom/scwang/smart/refresh/layout/constant/b;->LoadFinish:Lcom/scwang/smart/refresh/layout/constant/b;
invoke-virtual {v3, v4}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V
if-eqz v1, :cond_8b
.line 15
invoke-static {v6, v5, v2}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_8b
return-void
.line 16
:cond_8c
:goto_8c
iget-boolean v4, v0, Lcom/scwang/smart/refresh/layout/b;->c:Z
if-eqz v4, :cond_167
.line 17
iget-object v4, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
invoke-virtual {v4, v3}, Lcom/scwang/smart/refresh/layout/a;->s(Z)Lcom/scwang/smart/refresh/layout/api/f;
goto/16 :goto_167
.line 18
:cond_97
iget-object v7, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-object v10, v7, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;
iget-boolean v11, v0, Lcom/scwang/smart/refresh/layout/b;->d:Z
invoke-interface {v10, v7, v11}, Lcom/scwang/smart/refresh/layout/api/a;->g(Lcom/scwang/smart/refresh/layout/api/f;Z)I
move-result v7
.line 19
iget-object v10, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
invoke-static {v10}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
const v10, 0x7fffffff
if-ge v7, v10, :cond_167
.line 20
iget-boolean v10, v0, Lcom/scwang/smart/refresh/layout/b;->c:Z
if-eqz v10, :cond_c2
iget-object v10, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-boolean v11, v10, Lcom/scwang/smart/refresh/layout/a;->P:Z
if-eqz v11, :cond_c2
iget v11, v10, Lcom/scwang/smart/refresh/layout/a;->b:I
if-gez v11, :cond_c2
iget-object v10, v10, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;
invoke-virtual {v10}, Lcom/scwang/smart/refresh/layout/wrapper/a;->b()Z
move-result v10
if-eqz v10, :cond_c2
goto :goto_c3
:cond_c2
const/4 v3, 0x0
.line 21
:goto_c3
iget-object v10, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget v11, v10, Lcom/scwang/smart/refresh/layout/a;->b:I
if-eqz v3, :cond_d1
iget v3, v10, Lcom/scwang/smart/refresh/layout/a;->t0:I
neg-int v3, v3
invoke-static {v11, v3}, Ljava/lang/Math;->max(II)I
move-result v3
goto :goto_d2
:cond_d1
const/4 v3, 0x0
:goto_d2
sub-int/2addr v11, v3
.line 22
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-boolean v10, v3, Lcom/scwang/smart/refresh/layout/a;->n:Z
if-nez v10, :cond_dd
iget-boolean v3, v3, Lcom/scwang/smart/refresh/layout/a;->n0:Z
if-eqz v3, :cond_156
.line 23
:cond_dd
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v20
.line 24
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-boolean v10, v3, Lcom/scwang/smart/refresh/layout/a;->n:Z
if-eqz v10, :cond_131
.line 25
iget v10, v3, Lcom/scwang/smart/refresh/layout/a;->k:F
iput v10, v3, Lcom/scwang/smart/refresh/layout/a;->i:F
.line 26
iget v12, v3, Lcom/scwang/smart/refresh/layout/a;->b:I
sub-int/2addr v12, v11
iput v12, v3, Lcom/scwang/smart/refresh/layout/a;->d:I
.line 27
iput-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->n:Z
.line 28
iget-boolean v12, v3, Lcom/scwang/smart/refresh/layout/a;->O:Z
if-eqz v12, :cond_f8
move v12, v11
goto :goto_f9
:cond_f8
const/4 v12, 0x0
:goto_f9
const/16 v16, 0x0
.line 29
iget v14, v3, Lcom/scwang/smart/refresh/layout/a;->j:F
int-to-float v15, v12
add-float/2addr v10, v15
iget v12, v3, Lcom/scwang/smart/refresh/layout/a;->a:I
mul-int/lit8 v12, v12, 0x2
int-to-float v12, v12
add-float v18, v10, v12
const/4 v10, 0x0
const/16 v19, 0x0
move-wide/from16 v12, v20
move/from16 v17, v14
move/from16 v22, v15
move-wide/from16 v14, v20
invoke-static/range {v12 .. v19}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
move-result-object v12
invoke-static {v3, v12}, Lcom/scwang/smart/refresh/layout/a;->d(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
.line 30
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
const/16 v16, 0x2
iget v14, v3, Lcom/scwang/smart/refresh/layout/a;->j:F
iget v12, v3, Lcom/scwang/smart/refresh/layout/a;->k:F
add-float v18, v12, v22
move-wide/from16 v12, v20
move/from16 v17, v14
move-wide/from16 v14, v20
move/from16 v19, v10
invoke-static/range {v12 .. v19}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
move-result-object v10
invoke-static {v3, v10}, Lcom/scwang/smart/refresh/layout/a;->e(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
.line 31
:cond_131
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-boolean v10, v3, Lcom/scwang/smart/refresh/layout/a;->n0:Z
if-eqz v10, :cond_156
.line 32
iput v4, v3, Lcom/scwang/smart/refresh/layout/a;->m0:I
const/16 v16, 0x1
.line 33
iget v10, v3, Lcom/scwang/smart/refresh/layout/a;->j:F
iget v14, v3, Lcom/scwang/smart/refresh/layout/a;->k:F
const/16 v19, 0x0
move-wide/from16 v12, v20
move/from16 v18, v14
move-wide/from16 v14, v20
move/from16 v17, v10
invoke-static/range {v12 .. v19}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
move-result-object v10
invoke-static {v3, v10}, Lcom/scwang/smart/refresh/layout/a;->f(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
.line 34
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iput-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->n0:Z
.line 35
iput v4, v3, Lcom/scwang/smart/refresh/layout/a;->d:I
.line 36
:cond_156
iget-object v3, v0, Lcom/scwang/smart/refresh/layout/b;->e:Lcom/scwang/smart/refresh/layout/a;
iget-object v4, v3, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;
new-instance v10, Lcom/scwang/smart/refresh/layout/b$a;
invoke-direct {v10, v0, v11}, Lcom/scwang/smart/refresh/layout/b$a;-><init>(Lcom/scwang/smart/refresh/layout/b;I)V
iget v3, v3, Lcom/scwang/smart/refresh/layout/a;->b:I
if-gez v3, :cond_164
int-to-long v8, v7
:cond_164
invoke-virtual {v4, v10, v8, v9}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
:cond_167
:goto_167
if-eqz v1, :cond_16c
.line 37
invoke-static {v6, v5, v2}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
:cond_16c
return-void
.end method