.class public Lcom/moji/mjweather/feed/adapter/ChannelAdapter;
.super Landroid/support/v7/widget/RecyclerView$Adapter;
.source "ChannelAdapter.java"

# interfaces
.implements Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnItemMoveListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnFinishClickListener;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$HeaderViewHolder;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;,
        Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnMyChannelItemClickListener;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/support/v7/widget/RecyclerView$Adapter<",
        "Landroid/support/v7/widget/RecyclerView$ViewHolder;",
        ">;",
        "Lcom/moji/mjweather/feed/adapter/ChannelItemDragHelperCallback$OnItemMoveListener;"
    }
.end annotation


# instance fields
.field private a:Landroid/view/LayoutInflater;

.field private b:Landroid/support/v7/widget/helper/ItemTouchHelper;

.field private c:Z

.field private d:I

.field private e:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;",
            ">;"
        }
    .end annotation
.end field

.field private f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;",
            ">;"
        }
    .end annotation
.end field

.field private g:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnMyChannelItemClickListener;

.field private h:Landroid/view/View;

.field private i:Z

.field private j:Landroid/content/Context;

.field private k:Landroid/widget/TextView;

.field private l:Landroid/os/Handler;

.field private m:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnFinishClickListener;

.field private n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/support/v7/widget/helper/ItemTouchHelper;Ljava/util/List;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/support/v7/widget/helper/ItemTouchHelper;",
            "Ljava/util/List<",
            "Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;",
            ">;",
            "Ljava/util/List<",
            "Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;",
            ">;)V"
        }
    .end annotation

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

    .line 600
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->l:Landroid/os/Handler;

    .line 96
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->j:Landroid/content/Context;

    .line 97
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a:Landroid/view/LayoutInflater;

    .line 98
    iput-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->b:Landroid/support/v7/widget/helper/ItemTouchHelper;

    .line 99
    iput-object p3, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    .line 100
    iput-object p4, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    return-void
.end method

.method private a(FF)Landroid/view/animation/TranslateAnimation;
    .locals 10

    .line 692
    new-instance v9, Landroid/view/animation/TranslateAnimation;

    const/4 v1, 0x1

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v5, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v0, v9

    move v4, p1

    move v8, p2

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    const-wide/16 p1, 0x168

    .line 698
    invoke-virtual {v9, p1, p2}, Landroid/view/animation/TranslateAnimation;->setDuration(J)V

    const/4 p1, 0x1

    .line 699
    invoke-virtual {v9, p1}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    return-object v9
.end method

.method private a(Landroid/view/ViewGroup;Landroid/support/v7/widget/RecyclerView;Landroid/view/View;)Landroid/widget/ImageView;
    .locals 6

    .line 638
    invoke-virtual {p3}, Landroid/view/View;->destroyDrawingCache()V

    const/4 v0, 0x1

    .line 639
    invoke-virtual {p3, v0}, Landroid/view/View;->setDrawingCacheEnabled(Z)V

    .line 640
    new-instance v1, Landroid/widget/ImageView;

    invoke-virtual {p2}, Landroid/support/v7/widget/RecyclerView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 641
    invoke-virtual {p3}, Landroid/view/View;->getDrawingCache()Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-static {v2}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;

    move-result-object v2

    .line 642
    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    const/4 v3, 0x0

    .line 643
    invoke-virtual {p3, v3}, Landroid/view/View;->setDrawingCacheEnabled(Z)V

    const/4 v4, 0x2

    .line 644
    new-array v5, v4, [I

    .line 645
    invoke-virtual {p3, v5}, Landroid/view/View;->getLocationOnScreen([I)V

    .line 646
    new-array p3, v4, [I

    .line 647
    invoke-virtual {p2, p3}, Landroid/support/v7/widget/RecyclerView;->getLocationOnScreen([I)V

    .line 648
    new-instance p2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    invoke-direct {p2, v4, v2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 649
    aget v2, v5, v3

    aget v4, v5, v0

    aget p3, p3, v0

    sub-int/2addr v4, p3

    invoke-virtual {p2, v2, v4, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    .line 650
    invoke-virtual {p1, v1, p2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-object v1
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/widget/TextView;)Landroid/widget/TextView;
    .locals 0

    .line 32
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->k:Landroid/widget/TextView;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnMyChannelItemClickListener;
    .locals 0

    .line 32
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->g:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnMyChannelItemClickListener;

    return-object p0
.end method

.method private a(Landroid/support/v7/widget/RecyclerView;Landroid/view/View;FF)V
    .locals 2

    .line 494
    invoke-virtual {p1}, Landroid/support/v7/widget/RecyclerView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 495
    invoke-direct {p0, v0, p1, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a(Landroid/view/ViewGroup;Landroid/support/v7/widget/RecyclerView;Landroid/view/View;)Landroid/widget/ImageView;

    move-result-object p1

    .line 497
    invoke-virtual {p2}, Landroid/view/View;->getLeft()I

    move-result v1

    int-to-float v1, v1

    sub-float/2addr p3, v1

    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result v1

    int-to-float v1, v1

    sub-float/2addr p4, v1

    .line 496
    invoke-direct {p0, p3, p4}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a(FF)Landroid/view/animation/TranslateAnimation;

    move-result-object p3

    const/4 p4, 0x4

    .line 498
    invoke-virtual {p2, p4}, Landroid/view/View;->setVisibility(I)V

    .line 499
    invoke-virtual {p1, p3}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 501
    new-instance p4, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$5;

    invoke-direct {p4, p0, v0, p1, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$5;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/ViewGroup;Landroid/widget/ImageView;Landroid/view/View;)V

    invoke-virtual {p3, p4}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    return-void
.end method

.method private a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)V
    .locals 4

    .line 527
    invoke-virtual {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->e()I

    move-result p1

    .line 529
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v0

    sub-int v0, p1, v0

    if-ltz v0, :cond_2

    .line 530
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-le v0, v1, :cond_0

    goto :goto_0

    .line 533
    :cond_0
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    .line 534
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 535
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    const/4 v2, 0x0

    invoke-interface {v0, v2, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 536
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d()I

    move-result v1

    add-int/2addr v0, v1

    .line 537
    invoke-virtual {p0, p1, v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->b(II)V

    .line 538
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v1

    new-instance v2, Lcom/moji/mjweather/feed/event/EventBusChannelMove;

    add-int/lit8 v3, p1, -0x1

    invoke-direct {v2, v3}, Lcom/moji/mjweather/feed/event/EventBusChannelMove;-><init>(I)V

    invoke-virtual {v1, v2}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    .line 539
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    if-eqz v1, :cond_1

    .line 540
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    invoke-interface {v1, p1, v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;->a(II)V

    :cond_1
    return-void

    :cond_2
    :goto_0
    return-void
.end method

.method private a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)V
    .locals 5

    .line 550
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    move-result-object v0

    .line 551
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)I

    move-result p1

    const/4 v1, -0x1

    if-ne p1, v1, :cond_0

    return-void

    .line 561
    :cond_0
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v2

    add-int/2addr v1, v2

    .line 562
    invoke-virtual {p0, p1, v1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->b(II)V

    .line 563
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v2

    new-instance v3, Lcom/moji/mjweather/feed/event/EventBusChannelMove;

    add-int/lit8 v4, v1, -0x1

    invoke-direct {v3, v4, v0}, Lcom/moji/mjweather/feed/event/EventBusChannelMove;-><init>(ILcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;)V

    invoke-virtual {v2, v3}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    .line 564
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    if-eqz v0, :cond_1

    .line 565
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    invoke-interface {v0, p1, v1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;->a(II)V

    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/support/v7/widget/RecyclerView;)V
    .locals 0

    .line 32
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c(Landroid/support/v7/widget/RecyclerView;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/support/v7/widget/RecyclerView;Landroid/view/View;FF)V
    .locals 0

    .line 32
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a(Landroid/support/v7/widget/RecyclerView;Landroid/view/View;FF)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)V
    .locals 0

    .line 32
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)V
    .locals 0

    .line 32
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)V

    return-void
.end method

.method private b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)V
    .locals 5

    .line 575
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    move-result-object v0

    .line 576
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)I

    move-result p1

    const/4 v1, -0x1

    if-ne p1, v1, :cond_0

    return-void

    .line 580
    :cond_0
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->l:Landroid/os/Handler;

    new-instance v2, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$6;

    invoke-direct {v2, p0, p1, v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$6;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;ILcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;)V

    const-wide/16 v3, 0x168

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 594
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    if-eqz v0, :cond_1

    .line 595
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v1

    add-int/2addr v0, v1

    .line 596
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    invoke-interface {v1, p1, v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;->a(II)V

    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)V
    .locals 0

    .line 32
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)V

    return-void
.end method

.method static synthetic b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)Z
    .locals 0

    .line 32
    iget-boolean p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c:Z

    return p0
.end method

.method private c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;
    .locals 1

    .line 603
    invoke-virtual {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;->e()I

    move-result p1

    .line 604
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    sub-int/2addr p1, v0

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d()I

    move-result v0

    sub-int/2addr p1, v0

    if-ltz p1, :cond_1

    .line 605
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-le p1, v0, :cond_0

    goto :goto_0

    .line 608
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    return-object p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return-object p1
.end method

.method static synthetic c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)Ljava/util/List;
    .locals 0

    .line 32
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    return-object p0
.end method

.method private c(Landroid/support/v7/widget/RecyclerView;)V
    .locals 1

    .line 672
    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->m:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnFinishClickListener;

    if-eqz p1, :cond_0

    .line 673
    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->m:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnFinishClickListener;

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnFinishClickListener;->a(Z)V

    :cond_0
    return-void
.end method

.method private d(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)I
    .locals 3

    .line 612
    invoke-virtual {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;->e()I

    move-result p1

    .line 613
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    sub-int v0, p1, v0

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d()I

    move-result v1

    sub-int/2addr v0, v1

    if-ltz v0, :cond_1

    .line 614
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-le v0, v1, :cond_0

    goto :goto_0

    .line 617
    :cond_0
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    .line 618
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 624
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return p1

    :cond_1
    :goto_0
    const/4 p1, -0x1

    return p1
.end method

.method static synthetic d(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)V
    .locals 0

    .line 32
    invoke-direct {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->h()V

    return-void
.end method

.method static synthetic e(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)Landroid/support/v7/widget/helper/ItemTouchHelper;
    .locals 0

    .line 32
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->b:Landroid/support/v7/widget/helper/ItemTouchHelper;

    return-object p0
.end method

.method static synthetic f(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;)Landroid/content/Context;
    .locals 0

    .line 32
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->j:Landroid/content/Context;

    return-object p0
.end method

.method private h()V
    .locals 2

    .line 378
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 379
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->k:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 381
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->k:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    return-void
.end method


# virtual methods
.method public a()I
    .locals 2

    .line 477
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->h:Landroid/view/View;

    if-eqz v0, :cond_1

    .line 478
    iget-boolean v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->i:Z

    if-eqz v0, :cond_0

    .line 479
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d()I

    move-result v1

    add-int/2addr v0, v1

    return v0

    :cond_0
    const/4 v0, 0x1

    return v0

    .line 485
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d()I

    move-result v1

    add-int/2addr v0, v1

    return v0
.end method

.method public a(I)I
    .locals 6

    .line 114
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->h:Landroid/view/View;

    const/4 v1, 0x4

    const/4 v2, 0x0

    const/4 v3, 0x3

    const/4 v4, 0x2

    const/4 v5, 0x1

    if-nez v0, :cond_5

    if-nez p1, :cond_0

    return v2

    .line 117
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_2

    if-eq p1, v5, :cond_1

    if-ne p1, v4, :cond_2

    :cond_1
    return v1

    .line 119
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/2addr v0, v5

    if-ne p1, v0, :cond_3

    return v4

    :cond_3
    if-le p1, v5, :cond_4

    .line 121
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/2addr v0, v5

    if-ge p1, v0, :cond_4

    return v5

    :cond_4
    return v3

    :cond_5
    if-nez p1, :cond_6

    const/4 p1, 0x5

    return p1

    :cond_6
    if-ne p1, v5, :cond_7

    return v2

    .line 131
    :cond_7
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_9

    if-eq p1, v4, :cond_8

    if-ne p1, v3, :cond_9

    :cond_8
    return v1

    .line 133
    :cond_9
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/2addr v0, v4

    if-ne p1, v0, :cond_a

    return v4

    :cond_a
    if-le p1, v4, :cond_b

    .line 135
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/2addr v0, v4

    if-ge p1, v0, :cond_b

    return v5

    :cond_b
    return v3
.end method

.method public a(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;
    .locals 2

    const/4 v0, 0x0

    packed-switch p2, :pswitch_data_0

    const/4 p1, 0x0

    return-object p1

    .line 151
    :pswitch_0
    new-instance p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$HeaderViewHolder;

    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->h:Landroid/view/View;

    invoke-direct {p1, p0, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$HeaderViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/View;)V

    return-object p1

    .line 170
    :pswitch_1
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjweather/feed/R$layout;->item_channel_manager:I

    invoke-virtual {p2, v1, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 171
    new-instance p2, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;

    invoke-direct {p2, p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/View;)V

    .line 172
    invoke-static {p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    new-instance v0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$1;

    invoke-direct {v0, p0, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$1;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)V

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    .line 281
    :pswitch_2
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjweather/feed/R$layout;->item_channel_manager:I

    invoke-virtual {p2, v1, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    .line 282
    new-instance v0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;

    invoke-direct {v0, p0, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/View;)V

    .line 283
    invoke-static {v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$4;

    invoke-direct {v1, p0, p1, v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$4;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/ViewGroup;Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object v0

    .line 276
    :pswitch_3
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjweather/feed/R$layout;->item_zaker_channel_other_header:I

    invoke-virtual {p2, v1, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 277
    new-instance p2, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;

    invoke-direct {p2, p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/View;)V

    return-object p2

    .line 184
    :pswitch_4
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjweather/feed/R$layout;->item_channel_manager:I

    invoke-virtual {p2, v1, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p2

    .line 185
    new-instance v0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;

    invoke-direct {v0, p0, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/View;)V

    .line 186
    invoke-static {v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$2;

    invoke-direct {v1, p0, v0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$2;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;Landroid/view/ViewGroup;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 231
    invoke-static {v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$3;

    invoke-direct {v1, p0, p1, v0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$3;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/ViewGroup;Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    return-object v0

    .line 153
    :pswitch_5
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->a:Landroid/view/LayoutInflater;

    sget v1, Lcom/moji/mjweather/feed/R$layout;->item_zaker_channel_my_header:I

    invoke-virtual {p2, v1, p1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 154
    new-instance p2, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;

    invoke-direct {p2, p0, p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;-><init>(Lcom/moji/mjweather/feed/adapter/ChannelAdapter;Landroid/view/View;)V

    return-object p2

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

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

    .line 387
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;

    const/4 v1, 0x4

    const/4 v2, 0x1

    const/16 v3, 0x8

    const/4 v4, 0x0

    if-eqz v0, :cond_2

    .line 388
    check-cast p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;

    .line 389
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v5

    sub-int/2addr p2, v5

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    .line 395
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v5, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->name:Ljava/lang/String;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 396
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/widget/ImageView;

    move-result-object v0

    iget v5, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->isHot:I

    if-ne v5, v2, :cond_0

    const/4 v3, 0x0

    :cond_0
    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 398
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->j:Landroid/content/Context;

    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->iconPath:Ljava/lang/String;

    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->d(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/widget/ImageView;

    move-result-object v2

    sget v3, Lcom/moji/mjweather/feed/R$drawable;->channel_manger_item_default_img:I

    invoke-static {v0, p2, v2, v3}, Lcom/moji/tool/ImageUtils;->a(Landroid/content/Context;Ljava/lang/String;Landroid/widget/ImageView;I)V

    .line 405
    iget-boolean p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c:Z

    if-eqz p2, :cond_1

    .line 406
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->e(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/widget/ImageView;

    move-result-object p2

    invoke-virtual {p2, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 407
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->e(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/widget/ImageView;

    move-result-object p1

    sget p2, Lcom/moji/mjweather/feed/R$drawable;->icon_delete:I

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_0

    .line 409
    :cond_1
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;->e(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyViewHolder;)Landroid/widget/ImageView;

    move-result-object p1

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_0

    .line 411
    :cond_2
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;

    if-eqz v0, :cond_3

    .line 412
    check-cast p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;

    .line 413
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v1

    sub-int/2addr p2, v1

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    .line 420
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->name:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 421
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 422
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->j:Landroid/content/Context;

    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->iconPath:Ljava/lang/String;

    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;->c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$PinViewHolder;)Landroid/widget/ImageView;

    move-result-object p1

    sget v1, Lcom/moji/mjweather/feed/R$drawable;->channel_manger_item_default_img:I

    invoke-static {v0, p2, p1, v1}, Lcom/moji/tool/ImageUtils;->a(Landroid/content/Context;Ljava/lang/String;Landroid/widget/ImageView;I)V

    goto/16 :goto_0

    .line 424
    :cond_3
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;

    if-eqz v0, :cond_5

    .line 425
    check-cast p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;

    .line 426
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    iget-object v5, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    sub-int/2addr p2, v5

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d()I

    move-result v5

    sub-int/2addr p2, v5

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    .line 427
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;->b(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v5, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->name:Ljava/lang/String;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 428
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->j:Landroid/content/Context;

    iget-object v5, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->iconPath:Ljava/lang/String;

    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;->c(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Landroid/widget/ImageView;

    move-result-object v6

    sget v7, Lcom/moji/mjweather/feed/R$drawable;->channel_manger_item_default_img:I

    invoke-static {v0, v5, v6, v7}, Lcom/moji/tool/ImageUtils;->a(Landroid/content/Context;Ljava/lang/String;Landroid/widget/ImageView;I)V

    .line 429
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;->d(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Landroid/widget/ImageView;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 430
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;->e(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherViewHolder;)Landroid/widget/ImageView;

    move-result-object p1

    iget p2, p2, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;->isHot:I

    if-ne p2, v2, :cond_4

    const/4 v3, 0x0

    :cond_4
    invoke-virtual {p1, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    .line 442
    :cond_5
    instance-of p2, p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;

    if-eqz p2, :cond_7

    .line 443
    check-cast p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;

    .line 444
    iget-boolean p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c:Z

    if-eqz p2, :cond_6

    .line 445
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    sget p2, Lcom/moji/mjweather/feed/R$string;->finish:I

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 447
    :cond_6
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$MyChannelHeaderViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    sget p2, Lcom/moji/mjweather/feed/R$string;->edit:I

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    .line 450
    :cond_7
    instance-of p2, p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;

    if-eqz p2, :cond_9

    .line 451
    check-cast p1, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;

    .line 452
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    if-eqz p2, :cond_8

    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->f:Ljava/util/List;

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result p2

    if-nez p2, :cond_8

    .line 453
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    invoke-virtual {p1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 455
    :cond_8
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;->a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OtherChannelHeaderViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    invoke-virtual {p1, v3}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_9
    :goto_0
    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 0

    .line 104
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->h:Landroid/view/View;

    return-void
.end method

.method public a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;)V
    .locals 0

    .line 907
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    return-void
.end method

.method public a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnFinishClickListener;)V
    .locals 0

    .line 899
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->m:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnFinishClickListener;

    return-void
.end method

.method public a(Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnMyChannelItemClickListener;)V
    .locals 0

    .line 708
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->g:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnMyChannelItemClickListener;

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 471
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->i:Z

    return-void
.end method

.method public d()I
    .locals 1

    .line 80
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public e()I
    .locals 1

    .line 84
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->h:Landroid/view/View;

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x2

    :goto_0
    return v0
.end method

.method public e(II)V
    .locals 4

    .line 656
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v1

    sub-int v1, p1, v1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;

    .line 657
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v2

    sub-int v2, p1, v2

    invoke-interface {v1, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 658
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e()I

    move-result v2

    sub-int v2, p2, v2

    invoke-interface {v1, v2, v0}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 659
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->b(II)V

    .line 660
    invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/feed/event/EventBusChannelMove;

    add-int/lit8 v2, p1, -0x1

    add-int/lit8 v3, p2, -0x1

    invoke-direct {v1, v2, v3}, Lcom/moji/mjweather/feed/event/EventBusChannelMove;-><init>(II)V

    invoke-virtual {v0, v1}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V

    .line 661
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    if-eqz v0, :cond_0

    .line 662
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->n:Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;

    invoke-interface {v0, p1, p2}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter$OnChannelMoveListener;->a(II)V

    :cond_0
    return-void
.end method

.method public f()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/moji/http/fdsapi/entity/FeedManagerSubscribeItem;",
            ">;"
        }
    .end annotation

    .line 88
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->e:Ljava/util/List;

    return-object v0
.end method

.method public f(I)V
    .locals 0

    .line 108
    iput p1, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->d:I

    return-void
.end method

.method public g()V
    .locals 1

    .line 915
    iget-boolean v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c:Z

    xor-int/lit8 v0, v0, 0x1

    iput-boolean v0, p0, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c:Z

    .line 916
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/ChannelAdapter;->c()V

    return-void
.end method
