i.smali
.class Lcom/scwang/smartrefresh/layout/i;
.super Ljava/lang/Object;
.source "SmartRefreshLayout.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/scwang/smartrefresh/layout/j;->run()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:I
.field final synthetic b:Lcom/scwang/smartrefresh/layout/j;
# direct methods
.method constructor <init>(Lcom/scwang/smartrefresh/layout/j;I)V
.registers 3
.line 1
iput-object p1, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iput p2, p0, Lcom/scwang/smartrefresh/layout/i;->a:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 8
.line 1
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/j;->e:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-boolean v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mEnableScrollContentWhenLoaded:Z
const/4 v2, 0x0
if-eqz v1, :cond_16
iget v1, p0, Lcom/scwang/smartrefresh/layout/i;->a:I
if-gez v1, :cond_16
.line 2
iget-object v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mRefreshContent:Lcom/scwang/smartrefresh/layout/a/e;
iget v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mSpinner:I
invoke-interface {v1, v0}, Lcom/scwang/smartrefresh/layout/a/e;->a(I)Landroid/animation/ValueAnimator$AnimatorUpdateListener;
move-result-object v0
goto :goto_17
:cond_16
move-object v0, v2
:goto_17
if-eqz v0, :cond_26
const/4 v1, 0x2
.line 3
new-array v1, v1, [I
fill-array-data v1, :array_96
invoke-static {v1}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;
move-result-object v1
invoke-interface {v0, v1}, Landroid/animation/ValueAnimator$AnimatorUpdateListener;->onAnimationUpdate(Landroid/animation/ValueAnimator;)V
.line 4
:cond_26
new-instance v1, Lcom/scwang/smartrefresh/layout/h;
invoke-direct {v1, p0}, Lcom/scwang/smartrefresh/layout/h;-><init>(Lcom/scwang/smartrefresh/layout/i;)V
.line 5
iget-object v3, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iget-object v4, v3, Lcom/scwang/smartrefresh/layout/j;->e:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget v5, v4, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mSpinner:I
const/4 v6, 0x0
if-lez v5, :cond_3b
.line 6
iget-object v0, v4, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mKernel:Lcom/scwang/smartrefresh/layout/a/i;
invoke-interface {v0, v6}, Lcom/scwang/smartrefresh/layout/a/i;->a(I)Landroid/animation/ValueAnimator;
move-result-object v0
goto :goto_8c
:cond_3b
if-nez v0, :cond_66
if-nez v5, :cond_40
goto :goto_66
.line 7
:cond_40
iget-boolean v0, v3, Lcom/scwang/smartrefresh/layout/j;->c:Z
if-eqz v0, :cond_5b
iget-boolean v0, v4, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mEnableFooterFollowWhenNoMoreData:Z
if-eqz v0, :cond_5b
.line 8
iget v0, v4, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mFooterHeight:I
neg-int v3, v0
if-lt v5, v3, :cond_53
.line 9
sget-object v0, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->None:Lcom/scwang/smartrefresh/layout/constant/RefreshState;
invoke-virtual {v4, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->notifyStateChanged(Lcom/scwang/smartrefresh/layout/constant/RefreshState;)V
goto :goto_8b
.line 10
:cond_53
iget-object v3, v4, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mKernel:Lcom/scwang/smartrefresh/layout/a/i;
neg-int v0, v0
invoke-interface {v3, v0}, Lcom/scwang/smartrefresh/layout/a/i;->a(I)Landroid/animation/ValueAnimator;
move-result-object v0
goto :goto_8c
.line 11
:cond_5b
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/j;->e:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mKernel:Lcom/scwang/smartrefresh/layout/a/i;
invoke-interface {v0, v6}, Lcom/scwang/smartrefresh/layout/a/i;->a(I)Landroid/animation/ValueAnimator;
move-result-object v0
goto :goto_8c
.line 12
:cond_66
:goto_66
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/j;->e:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
if-eqz v0, :cond_77
.line 13
invoke-virtual {v0}, Landroid/animation/ValueAnimator;->cancel()V
.line 14
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/j;->e:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iput-object v2, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->reboundAnimator:Landroid/animation/ValueAnimator;
.line 15
:cond_77
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/j;->e:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mKernel:Lcom/scwang/smartrefresh/layout/a/i;
invoke-interface {v0, v6, v6}, Lcom/scwang/smartrefresh/layout/a/i;->a(IZ)Lcom/scwang/smartrefresh/layout/a/i;
.line 16
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/i;->b:Lcom/scwang/smartrefresh/layout/j;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/j;->e:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mKernel:Lcom/scwang/smartrefresh/layout/a/i;
sget-object v3, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->None:Lcom/scwang/smartrefresh/layout/constant/RefreshState;
invoke-interface {v0, v3}, Lcom/scwang/smartrefresh/layout/a/i;->a(Lcom/scwang/smartrefresh/layout/constant/RefreshState;)Lcom/scwang/smartrefresh/layout/a/i;
:goto_8b
move-object v0, v2
:goto_8c
if-eqz v0, :cond_92
.line 17
invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
goto :goto_95
.line 18
:cond_92
invoke-virtual {v1, v2}, Lcom/scwang/smartrefresh/layout/h;->onAnimationEnd(Landroid/animation/Animator;)V
:goto_95
return-void
:array_96
.array-data 4
0x0
0x0
.end array-data
.end method