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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/feed/ChannelBaseFragment;->onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.end annotation

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


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

.field private b:Z


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

    .line 212
    iput-object p1, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$4;->a:Lcom/moji/mjweather/feed/ChannelBaseFragment;

    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 3

    if-eqz p2, :cond_0

    const/4 v0, 0x2

    if-ne p2, v0, :cond_1

    .line 218
    :cond_0
    iget-boolean v0, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$4;->b:Z

    if-eqz v0, :cond_1

    .line 219
    iget-object v0, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$4;->a:Lcom/moji/mjweather/feed/ChannelBaseFragment;

    const/4 v1, 0x1

    const/16 v2, 0xa

    invoke-static {v0, v1, v2}, Lcom/moji/mjweather/feed/ChannelBaseFragment;->a(Lcom/moji/mjweather/feed/ChannelBaseFragment;II)V

    :cond_1
    if-nez p2, :cond_2

    .line 224
    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 225
    invoke-virtual {p1}, Landroid/support/v7/widget/LinearLayoutManager;->o()I

    move-result p2

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

    move-result v0

    .line 227
    iget-object v1, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$4;->a:Lcom/moji/mjweather/feed/ChannelBaseFragment;

    invoke-static {v1, p2, v0}, Lcom/moji/mjweather/feed/ChannelBaseFragment;->b(Lcom/moji/mjweather/feed/ChannelBaseFragment;II)V

    .line 228
    iget-object v1, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$4;->a:Lcom/moji/mjweather/feed/ChannelBaseFragment;

    invoke-static {v1, p2, v0, p1}, Lcom/moji/mjweather/feed/ChannelBaseFragment;->a(Lcom/moji/mjweather/feed/ChannelBaseFragment;IILandroid/support/v7/widget/LinearLayoutManager;)V

    :cond_2
    return-void
.end method

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

    .line 235
    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 236
    invoke-virtual {p1}, Landroid/support/v7/widget/LinearLayoutManager;->q()I

    move-result p2

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

    move-result p1

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

    if-lt p2, p1, :cond_0

    const/4 p1, 0x1

    .line 239
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$4;->b:Z

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 241
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$4;->b:Z

    :goto_0
    return-void
.end method
