a.smali
.class public Lcom/scwang/smartrefresh/horizontal/a;
.super Lcom/scwang/smartrefresh/layout/impl/a;
.source "RefreshContentHorizontal.java"
# direct methods
.method constructor <init>(Landroid/view/View;)V
.registers 2
.line 1
invoke-direct {p0, p1}, Lcom/scwang/smartrefresh/layout/impl/a;-><init>(Landroid/view/View;)V
return-void
.end method
# virtual methods
.method public a(I)Landroid/animation/ValueAnimator$AnimatorUpdateListener;
.registers 3
.line 1
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/impl/a;->c:Landroid/view/View;
if-eqz v0, :cond_1b
if-eqz p1, :cond_1b
if-gez p1, :cond_e
.line 2
invoke-static {v0}, Lcom/scwang/smartrefresh/horizontal/b;->d(Landroid/view/View;)Z
move-result v0
if-nez v0, :cond_18
:cond_e
if-lez p1, :cond_1b
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/impl/a;->c:Landroid/view/View;
invoke-static {v0}, Lcom/scwang/smartrefresh/horizontal/b;->c(Landroid/view/View;)Z
move-result v0
if-eqz v0, :cond_1b
.line 3
:cond_18
iput p1, p0, Lcom/scwang/smartrefresh/layout/impl/a;->f:I
return-object p0
:cond_1b
const/4 p1, 0x0
return-object p1
.end method
.method public onAnimationUpdate(Landroid/animation/ValueAnimator;)V
.registers 5
.line 1
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/Integer;
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
move-result p1
.line 2
:try_start_a
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/impl/a;->c:Landroid/view/View;
instance-of v0, v0, Landroid/widget/AbsListView;
if-eqz v0, :cond_1c
.line 3
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/impl/a;->c:Landroid/view/View;
check-cast v0, Landroid/widget/AbsListView;
iget v1, p0, Lcom/scwang/smartrefresh/layout/impl/a;->f:I
sub-int v1, p1, v1
invoke-static {v0, v1}, Lcom/scwang/smartrefresh/layout/c/c;->a(Landroid/widget/AbsListView;I)V
goto :goto_26
.line 4
:cond_1c
iget-object v0, p0, Lcom/scwang/smartrefresh/layout/impl/a;->c:Landroid/view/View;
iget v1, p0, Lcom/scwang/smartrefresh/layout/impl/a;->f:I
sub-int v1, p1, v1
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/view/View;->scrollBy(II)V
:try_end_26
.catch Ljava/lang/Throwable; {:try_start_a .. :try_end_26} :catch_26
.line 5
:catch_26
:goto_26
iput p1, p0, Lcom/scwang/smartrefresh/layout/impl/a;->f:I
return-void
.end method