ChannelPostsFragment$onViewCreated$5.smali

.class public final Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment$onViewCreated$5;
.super Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;


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

    .line 178
    iput-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment$onViewCreated$5;->a:Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;

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

    return-void
.end method


# virtual methods
.method public final onItemRangeChanged(II)V
    .registers 3

    .line 188
    invoke-virtual {p0, p1, p2}, Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment$onViewCreated$5;->onItemRangeInserted(II)V

    return-void
.end method

.method public final onItemRangeInserted(II)V
    .registers 5

    .line 180
    iget-object p2, p0, Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment$onViewCreated$5;->a:Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;

    invoke-static {p2}, Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;->b(Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;)Lcom/imo/android/imoim/views/LoadMoreRecyclerView;

    move-result-object p2

    invoke-virtual {p2}, Lcom/imo/android/imoim/views/LoadMoreRecyclerView;->getLayoutManager()Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    move-result-object p2

    if-eqz p2, :cond_24

    check-cast p2, Landroidx/recyclerview/widget/LinearLayoutManager;

    .line 181
    iget-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment$onViewCreated$5;->a:Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;->b(Lcom/imo/android/imoim/publicchannel/profile/tab/ChannelPostsFragment;)Lcom/imo/android/imoim/views/LoadMoreRecyclerView;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Lcom/imo/android/imoim/views/LoadMoreRecyclerView;->canScrollVertically(I)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_23

    if-nez p1, :cond_23

    const/4 p1, 0x0

    .line 183
    invoke-virtual {p2, p1, p1}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPositionWithOffset(II)V

    :cond_23
    return-void

    .line 180
    :cond_24
    new-instance p1, Lkotlin/TypeCastException;

    const-string p2, "null cannot be cast to non-null type androidx.recyclerview.widget.LinearLayoutManager"

    invoke-direct {p1, p2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1
.end method