.class Lcom/moji/forum/ui/MyCommentFragment$1;
.super Ljava/lang/Object;
.source "MyCommentFragment.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/MyCommentFragment;->c()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/forum/ui/MyCommentFragment;

.field private b:Z


# direct methods
.method constructor <init>(Lcom/moji/forum/ui/MyCommentFragment;)V
    .locals 0

    .line 91
    iput-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 2

    .line 106
    iget-object v0, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {v0}, Lcom/moji/forum/ui/MyCommentFragment;->a(Lcom/moji/forum/ui/MyCommentFragment;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x0

    if-lez v0, :cond_0

    if-eqz p4, :cond_0

    add-int/2addr p2, p3

    if-lt p2, p4, :cond_0

    iget-object p2, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    iget-boolean p2, p2, Lcom/moji/forum/ui/MyCommentFragment;->b:Z

    if-nez p2, :cond_0

    iget-object p2, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    iget-boolean p2, p2, Lcom/moji/forum/ui/MyCommentFragment;->c:Z

    if-nez p2, :cond_0

    .line 108
    iget-object p2, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-virtual {p2, v1}, Lcom/moji/forum/ui/MyCommentFragment;->a(Z)V

    .line 111
    :cond_0
    invoke-virtual {p1}, Landroid/widget/AbsListView;->getLastVisiblePosition()I

    move-result p2

    const/4 v0, 0x1

    sub-int/2addr p4, v0

    if-ne p2, p4, :cond_1

    sub-int/2addr p3, v0

    invoke-virtual {p1, p3}, Landroid/widget/AbsListView;->getChildAt(I)Landroid/view/View;

    move-result-object p2

    if-eqz p2, :cond_1

    .line 112
    invoke-virtual {p1, p3}, Landroid/widget/AbsListView;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->getBottom()I

    move-result p1

    iget-object p2, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    invoke-static {p2}, Lcom/moji/forum/ui/MyCommentFragment;->b(Lcom/moji/forum/ui/MyCommentFragment;)Landroid/widget/ListView;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/ListView;->getHeight()I

    move-result p2

    if-gt p1, p2, :cond_1

    .line 113
    iput-boolean v0, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->b:Z

    goto :goto_0

    .line 115
    :cond_1
    iput-boolean v1, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->b:Z

    :goto_0
    return-void
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 0

    if-eqz p2, :cond_0

    const/4 p1, 0x2

    if-ne p2, p1, :cond_1

    .line 98
    :cond_0
    iget-boolean p1, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->b:Z

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    iget-boolean p1, p1, Lcom/moji/forum/ui/MyCommentFragment;->b:Z

    if-nez p1, :cond_1

    .line 99
    iget-object p1, p0, Lcom/moji/forum/ui/MyCommentFragment$1;->a:Lcom/moji/forum/ui/MyCommentFragment;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Lcom/moji/forum/ui/MyCommentFragment;->a(Z)V

    :cond_1
    return-void
.end method
