.class public Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback;
.super Landroid/support/v7/widget/helper/ItemTouchHelper$Callback;
.source "ChannelItemDragHelperCallback.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnItemMoveListener;,
        Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnDragVHListener;
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 7
    invoke-direct {p0}, Landroid/support/v7/widget/helper/ItemTouchHelper$Callback;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Landroid/support/v7/widget/RecyclerView;Landroid/support/v7/widget/RecyclerView$ViewHolder;)I
    .locals 0

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

    move-result-object p1

    .line 13
    instance-of p1, p1, Landroid/support/v7/widget/GridLayoutManager;

    if-eqz p1, :cond_0

    const/16 p1, 0xf

    goto :goto_0

    :cond_0
    const/4 p1, 0x3

    :goto_0
    const/4 p2, 0x0

    .line 20
    invoke-static {p1, p2}, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback;->b(II)I

    move-result p1

    return p1
.end method

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

    return-void
.end method

.method public a()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public b(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V
    .locals 1

    if-eqz p2, :cond_0

    .line 46
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnDragVHListener;

    if-eqz v0, :cond_0

    .line 47
    move-object v0, p1

    check-cast v0, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnDragVHListener;

    .line 48
    invoke-interface {v0}, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnDragVHListener;->y()V

    .line 51
    :cond_0
    invoke-super {p0, p1, p2}, Landroid/support/v7/widget/helper/ItemTouchHelper$Callback;->b(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V

    return-void
.end method

.method public b()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public b(Landroid/support/v7/widget/RecyclerView;Landroid/support/v7/widget/RecyclerView$ViewHolder;Landroid/support/v7/widget/RecyclerView$ViewHolder;)Z
    .locals 2

    .line 26
    invoke-virtual {p2}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->h()I

    move-result v0

    invoke-virtual {p3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->h()I

    move-result v1

    if-eq v0, v1, :cond_0

    const/4 p1, 0x0

    return p1

    .line 30
    :cond_0
    invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView;->getAdapter()Landroid/support/v7/widget/RecyclerView$Adapter;

    move-result-object v0

    instance-of v0, v0, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnItemMoveListener;

    if-eqz v0, :cond_1

    .line 31
    invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView;->getAdapter()Landroid/support/v7/widget/RecyclerView$Adapter;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnItemMoveListener;

    .line 32
    invoke-virtual {p2}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->e()I

    move-result p2

    invoke-virtual {p3}, Landroid/support/v7/widget/RecyclerView$ViewHolder;->e()I

    move-result p3

    invoke-interface {p1, p2, p3}, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnItemMoveListener;->e(II)V

    :cond_1
    const/4 p1, 0x1

    return p1
.end method

.method public d(Landroid/support/v7/widget/RecyclerView;Landroid/support/v7/widget/RecyclerView$ViewHolder;)V
    .locals 1

    .line 56
    instance-of v0, p2, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnDragVHListener;

    if-eqz v0, :cond_0

    .line 57
    move-object v0, p2

    check-cast v0, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnDragVHListener;

    .line 58
    invoke-interface {v0}, Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnDragVHListener;->z()V

    .line 60
    :cond_0
    invoke-super {p0, p1, p2}, Landroid/support/v7/widget/helper/ItemTouchHelper$Callback;->d(Landroid/support/v7/widget/RecyclerView;Landroid/support/v7/widget/RecyclerView$ViewHolder;)V

    return-void
.end method
