c.smali
.class Lcom/scwang/smartrefresh/layout/c;
.super Landroid/animation/AnimatorListenerAdapter;
.source "SmartRefreshLayout.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->setStateRefreshing(Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Z
.field final synthetic b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
# direct methods
.method constructor <init>(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;Z)V
.registers 3
.line 1
iput-object p1, p0, Lcom/scwang/smartrefresh/layout/c;->b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iput-boolean p2, p0, Lcom/scwang/smartrefresh/layout/c;->a:Z
invoke-direct {p0}, Landroid/animation/AnimatorListenerAdapter;-><init>()V
return-void
.end method
# virtual methods
.method public onAnimationEnd(Landroid/animation/Animator;)V
.registers 6
.line 1
iget-object p1, p0, Lcom/scwang/smartrefresh/layout/c;->b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mLastOpenTime:J
.line 2
iget-object p1, p0, Lcom/scwang/smartrefresh/layout/c;->b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
sget-object v0, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->Refreshing:Lcom/scwang/smartrefresh/layout/constant/RefreshState;
invoke-virtual {p1, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->notifyStateChanged(Lcom/scwang/smartrefresh/layout/constant/RefreshState;)V
.line 3
iget-object p1, p0, Lcom/scwang/smartrefresh/layout/c;->b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mRefreshListener:Lcom/scwang/smartrefresh/layout/b/d;
if-eqz v0, :cond_1d
.line 4
iget-boolean v1, p0, Lcom/scwang/smartrefresh/layout/c;->a:Z
if-eqz v1, :cond_26
.line 5
invoke-interface {v0, p1}, Lcom/scwang/smartrefresh/layout/b/d;->a(Lcom/scwang/smartrefresh/layout/a/j;)V
goto :goto_26
.line 6
:cond_1d
iget-object v0, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mOnMultiPurposeListener:Lcom/scwang/smartrefresh/layout/b/c;
if-nez v0, :cond_26
const/16 v0, 0xbb8
.line 7
invoke-virtual {p1, v0}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->finishRefresh(I)Lcom/scwang/smartrefresh/layout/a/j;
.line 8
:cond_26
:goto_26
iget-object p1, p0, Lcom/scwang/smartrefresh/layout/c;->b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mRefreshHeader:Lcom/scwang/smartrefresh/layout/a/h;
if-eqz v0, :cond_37
.line 9
iget v1, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mHeaderHeight:I
iget v2, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mHeaderMaxDragRate:F
int-to-float v3, v1
mul-float v2, v2, v3
float-to-int v2, v2
invoke-interface {v0, p1, v1, v2}, Lcom/scwang/smartrefresh/layout/a/h;->onStartAnimator(Lcom/scwang/smartrefresh/layout/a/j;II)V
.line 10
:cond_37
iget-object p1, p0, Lcom/scwang/smartrefresh/layout/c;->b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mOnMultiPurposeListener:Lcom/scwang/smartrefresh/layout/b/c;
if-eqz v0, :cond_5d
iget-object v1, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mRefreshHeader:Lcom/scwang/smartrefresh/layout/a/h;
instance-of v1, v1, Lcom/scwang/smartrefresh/layout/a/g;
if-eqz v1, :cond_5d
.line 11
iget-boolean v1, p0, Lcom/scwang/smartrefresh/layout/c;->a:Z
if-eqz v1, :cond_4a
.line 12
invoke-interface {v0, p1}, Lcom/scwang/smartrefresh/layout/b/d;->a(Lcom/scwang/smartrefresh/layout/a/j;)V
.line 13
:cond_4a
iget-object p1, p0, Lcom/scwang/smartrefresh/layout/c;->b:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
iget-object v0, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mOnMultiPurposeListener:Lcom/scwang/smartrefresh/layout/b/c;
iget-object v1, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mRefreshHeader:Lcom/scwang/smartrefresh/layout/a/h;
check-cast v1, Lcom/scwang/smartrefresh/layout/a/g;
iget v2, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mHeaderHeight:I
iget p1, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->mHeaderMaxDragRate:F
int-to-float v3, v2
mul-float p1, p1, v3
float-to-int p1, p1
invoke-interface {v0, v1, v2, p1}, Lcom/scwang/smartrefresh/layout/b/c;->b(Lcom/scwang/smartrefresh/layout/a/g;II)V
:cond_5d
return-void
.end method