PostCommentsFragment$setupView$1.smali

.class public final Lcom/imo/android/imoim/world/detail/PostCommentsFragment$setupView$1;
.super Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/world/detail/PostCommentsFragment;->c()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/world/detail/PostCommentsFragment;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/world/detail/PostCommentsFragment;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 263
    iput-object p1, p0, Lcom/imo/android/imoim/world/detail/PostCommentsFragment$setupView$1;->a:Lcom/imo/android/imoim/world/detail/PostCommentsFragment;

    invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;-><init>()V

    return-void
.end method


# virtual methods
.method public final onScrolled(Landroidx/recyclerview/widget/RecyclerView;II)V
    .registers 5

    const-string v0, "recyclerView"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 266
    invoke-super {p0, p1, p2, p3}, Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;->onScrolled(Landroidx/recyclerview/widget/RecyclerView;II)V

    if-lez p3, :cond_5b

    const/4 p2, 0x2

    .line 267
    invoke-static {p1, p2}, Lcom/imo/android/imoim/profile/b;->a(Landroidx/recyclerview/widget/RecyclerView;I)Z

    move-result p2

    if-eqz p2, :cond_5b

    .line 271
    iget-object p2, p0, Lcom/imo/android/imoim/world/detail/PostCommentsFragment$setupView$1;->a:Lcom/imo/android/imoim/world/detail/PostCommentsFragment;

    invoke-static {p2}, Lcom/imo/android/imoim/world/detail/PostCommentsFragment;->j(Lcom/imo/android/imoim/world/detail/PostCommentsFragment;)Z

    move-result p2

    if-nez p2, :cond_5b

    iget-object p2, p0, Lcom/imo/android/imoim/world/detail/PostCommentsFragment$setupView$1;->a:Lcom/imo/android/imoim/world/detail/PostCommentsFragment;

    invoke-static {p2}, Lcom/imo/android/imoim/world/detail/PostCommentsFragment;->l(Lcom/imo/android/imoim/world/detail/PostCommentsFragment;)Lcom/imo/android/imoim/world/detail/PostDetailViewModel;

    move-result-object p2

    .line 1091
    iget-object p2, p2, Lcom/imo/android/imoim/world/detail/PostDetailViewModel;->l:Landroidx/lifecycle/LiveData;

    .line 271
    invoke-virtual {p2}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/imo/android/imoim/world/detail/d;

    if-eqz p2, :cond_2c

    .line 2008
    iget-object p2, p2, Lcom/imo/android/imoim/world/detail/d;->a:Lcom/imo/android/imoim/world/detail/e;

    goto :goto_2d

    :cond_2c
    const/4 p2, 0x0

    .line 271
    :goto_2d
    sget-object p3, Lcom/imo/android/imoim/world/detail/e;->NO_DATA:Lcom/imo/android/imoim/world/detail/e;

    if-eq p2, p3, :cond_5b

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView;->getItemAnimator()Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;

    move-result-object p1

    if-eqz p1, :cond_3e

    invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$ItemAnimator;->isRunning()Z

    move-result p1

    const/4 p2, 0x1

    if-eq p1, p2, :cond_5b

    :cond_3e
    iget-object p1, p0, Lcom/imo/android/imoim/world/detail/PostCommentsFragment$setupView$1;->a:Lcom/imo/android/imoim/world/detail/PostCommentsFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/world/detail/PostCommentsFragment;->l(Lcom/imo/android/imoim/world/detail/PostCommentsFragment;)Lcom/imo/android/imoim/world/detail/PostDetailViewModel;

    move-result-object p1

    .line 2094
    iget-object p1, p1, Lcom/imo/android/imoim/world/detail/PostDetailViewModel;->n:Landroidx/lifecycle/LiveData;

    .line 271
    invoke-virtual {p1}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

    sget-object p2, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-static {p1, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_55

    goto :goto_5b

    .line 275
    :cond_55
    iget-object p1, p0, Lcom/imo/android/imoim/world/detail/PostCommentsFragment$setupView$1;->a:Lcom/imo/android/imoim/world/detail/PostCommentsFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/world/detail/PostCommentsFragment;->m(Lcom/imo/android/imoim/world/detail/PostCommentsFragment;)V

    nop

    :cond_5b
    :goto_5b
    return-void
.end method