.class Lcom/moji/mjweather/feed/VideoDetailsActivity$1;
.super Landroid/support/v7/widget/RecyclerView$OnScrollListener;
.source "VideoDetailsActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/feed/VideoDetailsActivity;->x()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/feed/VideoDetailsActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/feed/VideoDetailsActivity;)V
    .locals 0

    .line 208
    iput-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-direct {p0}, Landroid/support/v7/widget/RecyclerView$OnScrollListener;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Landroid/support/v7/widget/RecyclerView;I)V
    .locals 2

    .line 211
    invoke-super {p0, p1, p2}, Landroid/support/v7/widget/RecyclerView$OnScrollListener;->a(Landroid/support/v7/widget/RecyclerView;I)V

    if-nez p2, :cond_1

    .line 212
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-boolean p1, p1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->R:Z

    if-eqz p1, :cond_1

    .line 213
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-object p1, p1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->r:Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;

    invoke-virtual {p1}, Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;->getLayoutManager()Landroid/support/v7/widget/RecyclerView$LayoutManager;

    move-result-object p1

    .line 214
    check-cast p1, Landroid/support/v7/widget/LinearLayoutManager;

    .line 215
    invoke-virtual {p1}, Landroid/support/v7/widget/LinearLayoutManager;->o()I

    move-result v0

    .line 216
    iget-object v1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-object v1, v1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->r:Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;

    invoke-virtual {v1}, Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;->getLayoutManager()Landroid/support/v7/widget/RecyclerView$LayoutManager;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/support/v7/widget/RecyclerView$LayoutManager;->c(I)Landroid/view/View;

    move-result-object v0

    .line 217
    instance-of v0, v0, Lcom/moji/mjweather/ipc/view/ScrollMakerLinearLayout;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 219
    invoke-virtual {p1}, Landroid/support/v7/widget/LinearLayoutManager;->q()I

    move-result p1

    .line 220
    iget-object v0, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-object v0, v0, Lcom/moji/mjweather/feed/VideoDetailsActivity;->r:Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;

    invoke-virtual {v0}, Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;->getLayoutManager()Landroid/support/v7/widget/RecyclerView$LayoutManager;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/support/v7/widget/RecyclerView$LayoutManager;->c(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 222
    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result p1

    if-eqz p1, :cond_0

    .line 224
    iget-object v0, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-object v0, v0, Lcom/moji/mjweather/feed/VideoDetailsActivity;->r:Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;

    invoke-virtual {v0, v1, p1}, Lcom/moji/mjweather/feed/view/FeedDetailRecyclerView;->a(II)V

    .line 228
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iput-boolean v1, p1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->R:Z

    :cond_1
    if-eqz p2, :cond_2

    const/4 p1, 0x2

    if-ne p2, p1, :cond_3

    .line 232
    :cond_2
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-boolean p1, p1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->G:Z

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-boolean p1, p1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->H:Z

    if-nez p1, :cond_3

    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-object p1, p1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->s:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;

    iget p1, p1, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->x:I

    const/4 p2, 0x4

    if-eq p1, p2, :cond_3

    .line 233
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    iget-object p1, p1, Lcom/moji/mjweather/feed/VideoDetailsActivity;->s:Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/feed/adapter/AbsDetailAdapter;->i(I)V

    .line 234
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/feed/VideoDetailsActivity;->b(I)V

    :cond_3
    return-void
.end method

.method public a(Landroid/support/v7/widget/RecyclerView;II)V
    .locals 0

    .line 242
    invoke-super {p0, p1, p2, p3}, Landroid/support/v7/widget/RecyclerView$OnScrollListener;->a(Landroid/support/v7/widget/RecyclerView;II)V

    .line 243
    invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView;->getLayoutManager()Landroid/support/v7/widget/RecyclerView$LayoutManager;

    move-result-object p1

    check-cast p1, Landroid/support/v7/widget/LinearLayoutManager;

    .line 244
    invoke-virtual {p1}, Landroid/support/v7/widget/LinearLayoutManager;->q()I

    move-result p2

    .line 245
    invoke-virtual {p1}, Landroid/support/v7/widget/LinearLayoutManager;->K()I

    move-result p1

    .line 246
    iget-object p3, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$1;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    add-int/lit8 p1, p1, -0x5

    if-lt p2, p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    iput-boolean p1, p3, Lcom/moji/mjweather/feed/VideoDetailsActivity;->G:Z

    return-void
.end method
