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


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$FooterViewHolder;,
        Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;,
        Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;,
        Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;,
        Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;,
        Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/support/v7/widget/RecyclerView$Adapter<",
        "Landroid/support/v7/widget/RecyclerView$ViewHolder;",
        ">;"
    }
.end annotation


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

.field public b:I

.field private c:Landroid/content/Context;

.field private d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

.field private e:J

.field private f:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;

.field private g:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;",
            ">;"
        }
    .end annotation
.end field

.field private h:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/fdsapi/entity/SubjectComment$Comment;",
            ">;"
        }
    .end annotation
.end field

.field private i:I

.field private j:Lcom/moji/mjweather/ipc/view/CommentFooterView;

.field private k:Z

.field private l:Landroid/view/View$OnClickListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;J)V
    .locals 1

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

    .line 61
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->g:Ljava/util/ArrayList;

    .line 62
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    const/4 v0, 0x3

    .line 65
    iput v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->b:I

    .line 296
    new-instance v0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$2;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$2;-><init>(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)V

    iput-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->l:Landroid/view/View$OnClickListener;

    .line 69
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    .line 70
    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    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/SubjectRelativeArticleAdapter;->a:Landroid/view/LayoutInflater;

    .line 71
    iput-wide p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->e:J

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

    move-result-object p1

    invoke-virtual {p1, p0}, Lorg/greenrobot/eventbus/EventBus;->a(Ljava/lang/Object;)V

    return-void
.end method

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

    .line 49
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;Lcom/moji/mjweather/ipc/view/CommentFooterView;)Lcom/moji/mjweather/ipc/view/CommentFooterView;
    .locals 0

    .line 49
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->j:Lcom/moji/mjweather/ipc/view/CommentFooterView;

    return-object p1
.end method

.method private static a(J)Ljava/lang/String;
    .locals 2

    .line 322
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "MM-dd HH:mm"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method static synthetic b(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)J
    .locals 2

    .line 49
    iget-wide v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->e:J

    return-wide v0
.end method

.method static synthetic c(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;
    .locals 0

    .line 49
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;

    return-object p0
.end method

.method static synthetic d(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;)Lcom/moji/mjweather/ipc/view/CommentFooterView;
    .locals 0

    .line 49
    iget-object p0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->j:Lcom/moji/mjweather/ipc/view/CommentFooterView;

    return-object p0
.end method


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

    .line 327
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return v0

    .line 330
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget v0, v0, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->is_comment:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    .line 331
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/4 v1, 0x5

    if-nez v0, :cond_1

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/2addr v1, v0

    :goto_0
    return v1

    :cond_2
    const/4 v0, 0x3

    return v0
.end method

.method public a(I)I
    .locals 2

    const/4 v0, 0x1

    if-nez p1, :cond_0

    return v0

    :cond_0
    const/4 v1, 0x2

    if-ne p1, v0, :cond_1

    return v1

    :cond_1
    const/4 v0, 0x3

    if-ne p1, v1, :cond_2

    return v0

    :cond_2
    const/4 v1, 0x4

    if-ne p1, v0, :cond_3

    return v1

    :cond_3
    if-le p1, v0, :cond_4

    .line 348
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_4

    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/2addr v0, v1

    if-ge p1, v0, :cond_4

    const/4 p1, 0x5

    return p1

    :cond_4
    const/4 p1, 0x6

    return p1
.end method

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

    const/4 v0, 0x0

    const/4 v1, 0x1

    if-ne p2, v1, :cond_0

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

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

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

    move-result-object p1

    .line 114
    new-instance p2, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;

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

    return-object p2

    :cond_0
    const/4 v1, 0x2

    if-ne p2, v1, :cond_1

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

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

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

    move-result-object p1

    .line 117
    new-instance p2, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;

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

    return-object p2

    :cond_1
    const/4 v1, 0x3

    if-ne p2, v1, :cond_2

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

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

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

    move-result-object p1

    .line 120
    new-instance p2, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;

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

    return-object p2

    :cond_2
    const/4 v1, 0x4

    if-ne p2, v1, :cond_3

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

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

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

    move-result-object p1

    .line 123
    new-instance p2, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;

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

    return-object p2

    :cond_3
    const/4 p1, 0x5

    if-ne p2, p1, :cond_4

    .line 125
    new-instance p1, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;

    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    invoke-direct {p1, p2}, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;-><init>(Landroid/content/Context;)V

    .line 126
    new-instance p2, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;

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

    return-object p2

    .line 128
    :cond_4
    new-instance p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$FooterViewHolder;

    new-instance p2, Lcom/moji/mjweather/ipc/view/CommentFooterView;

    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    invoke-direct {p2, v0}, Lcom/moji/mjweather/ipc/view/CommentFooterView;-><init>(Landroid/content/Context;)V

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

    return-object p1
.end method

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

    .line 134
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;

    const/4 v1, -0x2

    const/4 v2, -0x1

    const/4 v3, 0x0

    if-eqz v0, :cond_1

    .line 135
    check-cast p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;

    .line 137
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    if-eqz p2, :cond_14

    .line 138
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget p2, p2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->is_vote:I

    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 139
    new-instance p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;

    invoke-direct {p2, v2, v1}, Landroid/support/v7/widget/RecyclerView$LayoutParams;-><init>(II)V

    const/high16 v1, 0x41200000    # 10.0f

    .line 140
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v2

    iput v2, p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;->leftMargin:I

    .line 141
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    iput v1, p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;->rightMargin:I

    const/high16 v1, 0x41a80000    # 21.0f

    .line 142
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    iput v1, p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;->bottomMargin:I

    const/high16 v1, 0x41a00000    # 20.0f

    .line 143
    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I

    move-result v1

    iput v1, p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;->topMargin:I

    .line 144
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-wide v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->e:J

    invoke-virtual {v1, v2, v3}, Lcom/moji/mjweather/feed/view/VoteView;->setSubjectId(J)V

    .line 145
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->vote_title:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setVoteTitle(Ljava/lang/String;)V

    .line 146
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->voted_type:I

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setVotedType(I)V

    .line 147
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-boolean v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->has_vote:Z

    iget-boolean v3, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->k:Z

    invoke-virtual {v1, v2, v3}, Lcom/moji/mjweather/feed/view/VoteView;->a(ZZ)V

    .line 148
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->vote_ans1:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setOptionOneName(Ljava/lang/String;)V

    .line 149
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->vote_ans2:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setOptionTwoName(Ljava/lang/String;)V

    .line 150
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->ans1_stat:I

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setAgreeRedNum(I)V

    .line 151
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->ans2_stat:I

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setAgreeBlueNum(I)V

    .line 152
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->vote_icon1:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setOneIcon(Ljava/lang/String;)V

    .line 153
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object v1

    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v2, v2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->vote_icon2:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/moji/mjweather/feed/view/VoteView;->setTwoIcon(Ljava/lang/String;)V

    goto :goto_0

    .line 155
    :cond_0
    new-instance p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;

    invoke-direct {p2, v2, v3}, Landroid/support/v7/widget/RecyclerView$LayoutParams;-><init>(II)V

    .line 157
    :goto_0
    iput-boolean v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->k:Z

    .line 158
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$VoteViewHolder;)Lcom/moji/mjweather/feed/view/VoteView;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/feed/view/VoteView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_a

    .line 160
    :cond_1
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;

    const/4 v4, 0x4

    const/16 v5, 0x8

    if-eqz v0, :cond_3

    .line 161
    check-cast p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;

    .line 162
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    if-eqz p2, :cond_14

    .line 163
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget p2, p2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->width:I

    int-to-float p2, p2

    invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I

    move-result v0

    int-to-float v0, v0

    div-float/2addr p2, v0

    .line 164
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget v0, v0, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->height:I

    int-to-float v0, v0

    div-float/2addr v0, p2

    float-to-int p2, v0

    .line 165
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

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

    .line 166
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;)Landroid/widget/ImageView;

    move-result-object p2

    invoke-virtual {p2, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 167
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

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

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_2

    .line 168
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;)Landroid/widget/ImageView;

    move-result-object p2

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

    .line 169
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v0, v0, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->picture_url:Ljava/lang/String;

    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;)Landroid/widget/ImageView;

    move-result-object v1

    sget v2, Lcom/moji/mjweather/feed/R$drawable;->zaker_default_image:I

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

    goto :goto_1

    .line 171
    :cond_2
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$SubjectHeadViewHolder;)Landroid/widget/ImageView;

    move-result-object p2

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

    .line 173
    :goto_1
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    sget v0, Lcom/moji/mjweather/feed/R$string;->lead_text:I

    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v0, v0, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->sub_desc:Ljava/lang/String;

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 174
    new-instance v0, Landroid/text/SpannableStringBuilder;

    invoke-direct {v0, p2}, Landroid/text/SpannableStringBuilder;-><init>(Ljava/lang/CharSequence;)V

    .line 175
    new-instance p2, Landroid/text/style/ForegroundColorSpan;

    sget v1, Lcom/moji/mjweather/feed/R$color;->lead_text_color:I

    invoke-static {v1}, Lcom/moji/tool/DeviceTool;->e(I)I

    move-result v1

    invoke-direct {p2, v1}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    const/16 v1, 0x21

    .line 176
    invoke-virtual {v0, p2, v3, v4, v1}, Landroid/text/SpannableStringBuilder;->setSpan(Ljava/lang/Object;III)V

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

    move-result-object p1

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

    goto/16 :goto_a

    .line 179
    :cond_3
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;

    if-eqz v0, :cond_e

    .line 180
    check-cast p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;

    .line 182
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    if-eqz p2, :cond_c

    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->feed_list:Ljava/util/ArrayList;

    if-eqz p2, :cond_c

    .line 183
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object p2, p2, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->feed_list:Ljava/util/ArrayList;

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p2

    if-gtz p2, :cond_4

    .line 184
    new-instance p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;

    invoke-direct {p2, v2, v3}, Landroid/support/v7/widget/RecyclerView$LayoutParams;-><init>(II)V

    goto/16 :goto_8

    .line 186
    :cond_4
    new-instance p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;

    invoke-direct {p2, v2, v1}, Landroid/support/v7/widget/RecyclerView$LayoutParams;-><init>(II)V

    .line 187
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    const/4 v0, 0x0

    .line 188
    :goto_2
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v1, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->feed_list:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_d

    .line 189
    iget-object v1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    iget-object v1, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->feed_list:Ljava/util/ArrayList;

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    .line 190
    iget-object v2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a:Landroid/view/LayoutInflater;

    sget v4, Lcom/moji/mjweather/feed/R$layout;->details_item_similar_item:I

    const/4 v6, 0x0

    invoke-virtual {v2, v4, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 191
    sget v4, Lcom/moji/mjweather/feed/R$id;->iv_pic:I

    invoke-virtual {v2, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 192
    sget v6, Lcom/moji/mjweather/feed/R$id;->tv_title:I

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 193
    sget v7, Lcom/moji/mjweather/feed/R$id;->tv_source:I

    invoke-virtual {v2, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    .line 194
    sget v8, Lcom/moji/mjweather/feed/R$id;->tv_recommend_comment_num:I

    invoke-virtual {v2, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    .line 196
    iget v9, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->show_type:I

    const/4 v10, 0x7

    if-eq v9, v10, :cond_7

    iget v9, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->show_type:I

    const/16 v10, 0x9

    if-ne v9, v10, :cond_5

    goto :goto_3

    .line 209
    :cond_5
    sget v9, Lcom/moji/mjweather/feed/R$id;->iv_play:I

    invoke-virtual {v2, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    invoke-virtual {v9, v5}, Landroid/view/View;->setVisibility(I)V

    .line 210
    sget v9, Lcom/moji/mjweather/feed/R$id;->tv_play_time:I

    invoke-virtual {v2, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    invoke-virtual {v9, v5}, Landroid/view/View;->setVisibility(I)V

    .line 211
    iget v9, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->comment_number:I

    if-nez v9, :cond_6

    .line 212
    invoke-virtual {v8, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_4

    .line 214
    :cond_6
    invoke-virtual {v8, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 215
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget v10, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->comment_number:I

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    sget v10, Lcom/moji/mjweather/feed/R$string;->feed_comment_num:I

    invoke-static {v10}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 216
    invoke-virtual {v8, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_4

    .line 197
    :cond_7
    :goto_3
    sget v9, Lcom/moji/mjweather/feed/R$id;->iv_play:I

    invoke-virtual {v2, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    invoke-virtual {v9, v3}, Landroid/view/View;->setVisibility(I)V

    .line 198
    sget v9, Lcom/moji/mjweather/feed/R$id;->tv_play_time:I

    invoke-virtual {v2, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/TextView;

    .line 199
    invoke-virtual {v9, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 200
    iget-object v10, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->time:Ljava/lang/String;

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

    .line 201
    iget v9, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->browse_number:I

    if-nez v9, :cond_8

    .line 202
    invoke-virtual {v8, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_4

    .line 204
    :cond_8
    invoke-virtual {v8, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 205
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget v10, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->browse_number:I

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v10

    invoke-virtual {v10}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v10

    sget v11, Lcom/moji/mjweather/feed/R$string;->paly_num:I

    invoke-virtual {v10, v11}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    .line 206
    invoke-virtual {v8, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 219
    :goto_4
    iget-object v8, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->image_info:Ljava/util/ArrayList;

    if-eqz v8, :cond_9

    iget-object v8, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->image_info:Ljava/util/ArrayList;

    invoke-virtual {v8}, Ljava/util/ArrayList;->size()I

    move-result v8

    if-lez v8, :cond_9

    .line 220
    iget-object v8, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    iget-object v9, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->image_info:Ljava/util/ArrayList;

    invoke-virtual {v9, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Image;

    iget-object v9, v9, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Image;->full_image_url:Ljava/lang/String;

    sget v10, Lcom/moji/mjweather/feed/R$drawable;->zaker_default_image:I

    invoke-static {v8, v9, v4, v10}, Lcom/moji/tool/ImageUtils;->a(Landroid/content/Context;Ljava/lang/String;Landroid/widget/ImageView;I)V

    goto :goto_5

    .line 222
    :cond_9
    sget v8, Lcom/moji/mjweather/feed/R$drawable;->zaker_default_image:I

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

    .line 224
    :goto_5
    iget-object v4, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->feed_title:Ljava/lang/String;

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

    .line 225
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v8, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->create_time:J

    invoke-virtual {v4, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v6, ""

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_a

    const/16 v4, 0x8

    goto :goto_6

    :cond_a
    const/4 v4, 0x0

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

    .line 226
    iget-wide v8, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->create_time:J

    invoke-static {v8, v9}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a(J)Ljava/lang/String;

    move-result-object v4

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

    .line 227
    sget v4, Lcom/moji/mjweather/feed/R$id;->tv_time:I

    invoke-virtual {v2, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 228
    invoke-virtual {v4, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 229
    iget-object v6, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->tag_new:Ljava/lang/String;

    invoke-static {v6}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    if-nez v6, :cond_b

    .line 230
    iget-object v6, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c:Landroid/content/Context;

    sget v7, Lcom/moji/mjweather/feed/R$color;->tag_text_red:I

    invoke-static {v6, v7}, Lcom/moji/mjweather/feed/utils/ResourceUtils;->a(Landroid/content/Context;I)I

    move-result v6

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

    .line 231
    iget-object v6, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->tag_new:Ljava/lang/String;

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

    goto :goto_7

    .line 233
    :cond_b
    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 235
    :goto_7
    new-instance v4, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;

    invoke-direct {v4, p0, v1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$1;-><init>(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;)V

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

    .line 261
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_2

    .line 265
    :cond_c
    new-instance p2, Landroid/support/v7/widget/RecyclerView$LayoutParams;

    invoke-direct {p2, v2, v3}, Landroid/support/v7/widget/RecyclerView$LayoutParams;-><init>(II)V

    .line 267
    :cond_d
    :goto_8
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;->b(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$RelativeArticleViewHolder;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, p2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_a

    .line 268
    :cond_e
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;

    if-eqz v0, :cond_10

    .line 269
    check-cast p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;

    .line 271
    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p2

    if-nez p2, :cond_f

    .line 272
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;)Landroid/widget/FrameLayout;

    move-result-object p2

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

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

    move-result-object p2

    sget v0, Lcom/moji/mjweather/feed/R$string;->comment_area:I

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

    .line 274
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;->c(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;)Landroid/widget/TextView;

    move-result-object p2

    const-string v0, ""

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

    .line 275
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;->d(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->l:Landroid/view/View$OnClickListener;

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

    goto/16 :goto_a

    .line 277
    :cond_f
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;)Landroid/widget/FrameLayout;

    move-result-object p2

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

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

    move-result-object p2

    sget v0, Lcom/moji/mjweather/feed/R$string;->area_comment:I

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

    .line 279
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;->c(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentHeaderViewHolder;)Landroid/widget/TextView;

    move-result-object p1

    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "("

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->i:I

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, ")"

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

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

    goto :goto_a

    .line 281
    :cond_10
    instance-of v0, p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;

    if-eqz v0, :cond_12

    .line 282
    check-cast p1, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;

    .line 283
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    sub-int/2addr p2, v4

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

    move-result-object p2

    check-cast p2, Lcom/moji/http/fdsapi/entity/SubjectComment$Comment;

    if-eqz p2, :cond_11

    .line 285
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;)Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;->setVisibility(I)V

    .line 286
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;)Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;->setComment(Lcom/moji/http/snsforum/ILiveViewComment;)V

    goto :goto_a

    .line 288
    :cond_11
    invoke-static {p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;->a(Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter$CommentViewHolder;)Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;

    move-result-object p1

    invoke-virtual {p1, v5}, Lcom/moji/mjweather/ipc/view/liveviewcomment/CommentView;->setVisibility(I)V

    goto :goto_a

    .line 291
    :cond_12
    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->j:Lcom/moji/mjweather/ipc/view/CommentFooterView;

    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    if-eqz p2, :cond_13

    iget-object p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p2

    if-lez p2, :cond_13

    goto :goto_9

    :cond_13
    const/16 v3, 0x8

    :goto_9
    invoke-virtual {p1, v3}, Lcom/moji/mjweather/ipc/view/CommentFooterView;->setVisibility(I)V

    .line 292
    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->j:Lcom/moji/mjweather/ipc/view/CommentFooterView;

    iget p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->b:I

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/ipc/view/CommentFooterView;->a(I)V

    :cond_14
    :goto_a
    return-void
.end method

.method public a(Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;)V
    .locals 1

    if-eqz p1, :cond_1

    .line 81
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    .line 82
    iget-object v0, p1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->feed_list:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 83
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->g:Ljava/util/ArrayList;

    iget-object p1, p1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;->feed_list:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 85
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c()V

    :cond_1
    return-void
.end method

.method public a(Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;)V
    .locals 0

    .line 106
    iput-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->f:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;

    return-void
.end method

.method public a(Ljava/util/ArrayList;II)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/fdsapi/entity/SubjectComment$Comment;",
            ">;II)V"
        }
    .end annotation

    if-nez p1, :cond_0

    return-void

    .line 93
    :cond_0
    iput p2, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->i:I

    if-nez p3, :cond_1

    .line 95
    iget-object p3, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {p3}, Ljava/util/ArrayList;->clear()V

    .line 97
    :cond_1
    iget-object p3, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {p3, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 98
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    const/16 p3, 0xf

    if-lt p1, p3, :cond_3

    iget-object p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->h:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-ne p1, p2, :cond_2

    goto :goto_0

    :cond_2
    const/4 p1, 0x3

    .line 101
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->f(I)V

    goto :goto_1

    :cond_3
    :goto_0
    const/4 p1, 0x4

    .line 99
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->f(I)V

    :goto_1
    return-void
.end method

.method public d()V
    .locals 1

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

    move-result-object v0

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

    return-void
.end method

.method public f(I)V
    .locals 1

    .line 443
    iput p1, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->b:I

    .line 444
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->j:Lcom/moji/mjweather/ipc/view/CommentFooterView;

    if-eqz v0, :cond_0

    .line 445
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->j:Lcom/moji/mjweather/ipc/view/CommentFooterView;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/ipc/view/CommentFooterView;->a(I)V

    .line 447
    :cond_0
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c()V

    return-void
.end method

.method public updateCommentCount(Lcom/moji/mjweather/feed/event/UpdateCommentCountEvent;)V
    .locals 7
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    if-eqz p1, :cond_2

    .line 453
    iget-object v0, p0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->g:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;

    .line 454
    iget-wide v2, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->feed_id:J

    iget-wide v4, p1, Lcom/moji/mjweather/feed/event/UpdateCommentCountEvent;->b:J

    cmp-long v6, v2, v4

    if-nez v6, :cond_0

    .line 455
    iget v2, p1, Lcom/moji/mjweather/feed/event/UpdateCommentCountEvent;->a:I

    iput v2, v1, Lcom/moji/http/fdsapi/entity/FeedSubjectDetail$Article;->comment_number:I

    goto :goto_0

    :cond_1
    const/4 p1, 0x2

    .line 458
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->c(I)V

    :cond_2
    return-void
.end method
