.class public Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;
.super Lcom/moji/newliveview/home/presenter/AbsHomePresenter;
.source "PictureRankItemPresenter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;
    }
.end annotation


# static fields
.field private static h:I = 0x2


# instance fields
.field public f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/newliveview/rank/view/PictureRankItemView;",
            ">;"
        }
    .end annotation
.end field

.field public g:Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

.field private i:I

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

.field private k:I


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;I)V
    .locals 1

    const/4 v0, 0x0

    .line 59
    invoke-direct {p0, p1, v0}, Lcom/moji/newliveview/home/presenter/AbsHomePresenter;-><init>(Landroid/content/Context;Lcom/moji/base/MJPresenter$ICallback;)V

    .line 54
    new-instance p1, Ljava/util/ArrayList;

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

    iput-object p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->f:Ljava/util/List;

    .line 60
    iput p2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->i:I

    .line 61
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object p1

    invoke-virtual {p1, p0}, Lcom/moji/bus/Bus;->a(Ljava/lang/Object;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;)I
    .locals 0

    .line 49
    iget p0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->i:I

    return p0
.end method

.method private a(ILjava/util/ArrayList;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/snsforum/entity/ThumbPictureItem;",
            ">;)V"
        }
    .end annotation

    .line 179
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->b:Landroid/content/Context;

    const-class v2, Lcom/moji/newliveview/detail/PictureDetailActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 180
    new-instance v1, Landroid/os/Bundle;

    const/4 v2, 0x5

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V

    const-string v2, "extra_data_thumb_picture_list"

    .line 181
    invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putParcelableArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    const-string p2, "extra_data_target_position"

    .line 182
    invoke-virtual {v1, p2, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 183
    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 184
    iget-object p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->b:Landroid/content/Context;

    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 185
    iget-object p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->b:Landroid/content/Context;

    check-cast p1, Landroid/app/Activity;

    sget p2, Lcom/moji/newliveview/R$anim;->activity_open_right_in:I

    sget v0, Lcom/moji/newliveview/R$anim;->activity_open_right_out:I

    invoke-virtual {p1, p2, v0}, Landroid/app/Activity;->overridePendingTransition(II)V

    return-void
.end method

.method private a(Lcom/moji/newliveview/base/view/AttentionButton;Lcom/moji/http/snsforum/entity/Rank;)V
    .locals 3

    .line 189
    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result v0

    if-nez v0, :cond_0

    .line 190
    sget p1, Lcom/moji/newliveview/R$string;->no_net_work:I

    invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(I)V

    return-void

    .line 193
    :cond_0
    invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/account/data/AccountProvider;->f()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 194
    iget-boolean v0, p2, Lcom/moji/http/snsforum/entity/Rank;->is_concern:Z

    const/4 v1, 0x7

    const/4 v2, 0x6

    if-eqz v0, :cond_2

    .line 195
    invoke-virtual {p1, p2}, Lcom/moji/newliveview/base/view/AttentionButton;->b(Lcom/moji/http/snsforum/entity/Rank;)V

    .line 196
    iget p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->k:I

    if-ne p1, v2, :cond_1

    .line 197
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_AUTHENTICATIONLIST_ATTENTION_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v0, "2"

    invoke-virtual {p1, p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    .line 198
    :cond_1
    iget p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->k:I

    if-ne p1, v1, :cond_5

    .line 199
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_OFFICIALLIST_ATTENTION_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v0, "2"

    invoke-virtual {p1, p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    .line 202
    :cond_2
    invoke-virtual {p1, p2}, Lcom/moji/newliveview/base/view/AttentionButton;->a(Lcom/moji/http/snsforum/entity/Rank;)V

    .line 203
    iget p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->k:I

    if-ne p1, v2, :cond_3

    .line 204
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_AUTHENTICATIONLIST_ATTENTION_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v0, "1"

    invoke-virtual {p1, p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    .line 205
    :cond_3
    iget p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->k:I

    if-ne p1, v1, :cond_5

    .line 206
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_OFFICIALLIST_ATTENTION_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v0, "1"

    invoke-virtual {p1, p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    .line 210
    :cond_4
    invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->b:Landroid/content/Context;

    invoke-virtual {p1, p2}, Lcom/moji/account/data/AccountProvider;->b(Landroid/content/Context;)V

    :cond_5
    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;ILjava/util/ArrayList;)V
    .locals 0

    .line 49
    invoke-direct {p0, p1, p2}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->a(ILjava/util/ArrayList;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;Lcom/moji/newliveview/base/view/AttentionButton;Lcom/moji/http/snsforum/entity/Rank;)V
    .locals 0

    .line 49
    invoke-direct {p0, p1, p2}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->a(Lcom/moji/newliveview/base/view/AttentionButton;Lcom/moji/http/snsforum/entity/Rank;)V

    return-void
.end method

.method static synthetic b(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;)V
    .locals 0

    .line 49
    invoke-direct {p0}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->g()V

    return-void
.end method

.method static synthetic f()I
    .locals 1

    .line 49
    sget v0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->h:I

    return v0
.end method

.method private g()V
    .locals 5

    .line 215
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->b:Landroid/content/Context;

    const-class v2, Lcom/moji/newliveview/rank/ui/RankActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 216
    new-instance v1, Landroid/os/Bundle;

    const/4 v2, 0x3

    invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(I)V

    const-string v3, "key_position"

    .line 217
    iget v4, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->i:I

    invoke-virtual {v1, v3, v4}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 218
    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 219
    iget-object v1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->b:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 220
    iget v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->i:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 221
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_OFFICIALLIST_MORE_CLICK:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    .line 222
    :cond_0
    iget v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->i:I

    if-ne v0, v2, :cond_1

    .line 223
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_AUTHENTICATIONLIST_MORE_CLICK:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    :cond_1
    :goto_0
    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/support/v7/widget/RecyclerView$ViewHolder;
    .locals 3

    .line 80
    iget v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->i:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 81
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_OFFICIALLIST:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    .line 82
    :cond_0
    iget v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->i:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_1

    .line 83
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->NEWLIVEVIEW_AUTHENTICATIONLIST:Lcom/moji/statistics/EVENT_TAG;

    invoke-virtual {v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;)Lcom/moji/statistics/EventManager;

    .line 86
    :cond_1
    :goto_0
    new-instance v0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

    sget v1, Lcom/moji/newliveview/R$layout;->item_picture_rank_home:I

    const/4 v2, 0x0

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

    move-result-object p1

    invoke-direct {v0, p0, p1}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;-><init>(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;Landroid/view/View;)V

    iput-object v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->g:Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

    return-object v0
.end method

.method public a(Landroid/content/Context;Landroid/support/v7/widget/RecyclerView$ViewHolder;IZI)V
    .locals 3
    .param p3    # I
        .annotation build Landroid/support/annotation/StringRes;
        .end annotation
    .end param

    .line 90
    iput p5, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->k:I

    .line 91
    invoke-virtual {p0}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->b()Z

    move-result p5

    if-eqz p5, :cond_5

    .line 92
    iget-object p5, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->j:Ljava/util/List;

    if-nez p5, :cond_0

    return-void

    .line 95
    :cond_0
    check-cast p2, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

    .line 96
    invoke-static {p2}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;->a(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;)Landroid/widget/TextView;

    move-result-object p5

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

    .line 97
    invoke-static {p2}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;->b(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;)Landroid/widget/LinearLayout;

    move-result-object p3

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

    const/4 p3, 0x0

    const/4 p5, 0x0

    .line 98
    :goto_0
    iget-object v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->j:Ljava/util/List;

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

    move-result v0

    if-ge p5, v0, :cond_4

    .line 100
    sget v0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->h:I

    const/4 v1, 0x1

    if-ge p5, v0, :cond_1

    iget-object v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->f:Ljava/util/List;

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

    move-result v0

    if-le v0, p5, :cond_1

    .line 101
    iget-object v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->f:Ljava/util/List;

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

    move-result-object v0

    check-cast v0, Lcom/moji/newliveview/rank/view/PictureRankItemView;

    goto :goto_1

    .line 103
    :cond_1
    new-instance v0, Lcom/moji/newliveview/rank/view/PictureRankItemView;

    invoke-direct {v0, p1}, Lcom/moji/newliveview/rank/view/PictureRankItemView;-><init>(Landroid/content/Context;)V

    .line 104
    iget-object v2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->f:Ljava/util/List;

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

    .line 105
    sget v2, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->h:I

    add-int/2addr v2, v1

    sput v2, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->h:I

    .line 107
    :goto_1
    invoke-virtual {v0, p4}, Lcom/moji/newliveview/rank/view/PictureRankItemView;->a(Z)V

    .line 108
    iget-object v2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->j:Ljava/util/List;

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/snsforum/entity/Rank;

    .line 109
    invoke-virtual {v0, v2}, Lcom/moji/newliveview/rank/view/PictureRankItemView;->a(Lcom/moji/http/snsforum/entity/Rank;)V

    .line 110
    iget-object v2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->j:Ljava/util/List;

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

    move-result v2

    sub-int/2addr v2, v1

    if-eq p5, v2, :cond_2

    goto :goto_2

    :cond_2
    const/4 v1, 0x0

    :goto_2
    invoke-virtual {v0, v1}, Lcom/moji/newliveview/rank/view/PictureRankItemView;->b(Z)V

    .line 111
    new-instance v1, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$2;

    invoke-direct {v1, p0}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$2;-><init>(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;)V

    invoke-virtual {v0, v1}, Lcom/moji/newliveview/rank/view/PictureRankItemView;->setCustomClickListener(Lcom/moji/newliveview/rank/view/PictureRankItemView$CustomClickListener;)V

    .line 138
    invoke-virtual {v0}, Lcom/moji/newliveview/rank/view/PictureRankItemView;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    if-eqz v1, :cond_3

    .line 140
    invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 142
    :cond_3
    invoke-static {p2}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;->b(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;)Landroid/widget/LinearLayout;

    move-result-object v1

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

    add-int/lit8 p5, p5, 0x1

    goto :goto_0

    .line 144
    :cond_4
    invoke-virtual {p0}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->c()V

    :cond_5
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/snsforum/entity/Rank;",
            ">;)V"
        }
    .end annotation

    .line 65
    iput-object p1, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->j:Ljava/util/List;

    return-void
.end method

.method public d()V
    .locals 3

    .line 69
    new-instance v0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$1;

    invoke-direct {v0, p0}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$1;-><init>(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;)V

    sget-object v1, Lcom/moji/tool/thread/ThreadType;->NORMAL_THREAD:Lcom/moji/tool/thread/ThreadType;

    sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    invoke-static {v0, v1, v2}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;Lcom/moji/tool/thread/ThreadType;Lcom/moji/tool/thread/ThreadPriority;)I

    return-void
.end method

.method public e()V
    .locals 1

    .line 229
    invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/moji/bus/Bus;->b(Ljava/lang/Object;)V

    return-void
.end method

.method public refreshAttentionEvent(Lcom/moji/newliveview/rank/AttentionEvent;)V
    .locals 7
    .annotation runtime Lorg/greenrobot/eventbus/Subscribe;
        a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
    .end annotation

    .line 236
    iget-object v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->j:Ljava/util/List;

    if-eqz v0, :cond_2

    if-eqz p1, :cond_2

    .line 237
    iget-object v0, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_2

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/snsforum/entity/Rank;

    .line 238
    iget-wide v2, v1, Lcom/moji/http/snsforum/entity/Rank;->sns_id:J

    iget-wide v4, p1, Lcom/moji/newliveview/rank/AttentionEvent;->a:J

    sub-long/2addr v2, v4

    const-wide/16 v4, 0x0

    cmp-long v6, v2, v4

    if-nez v6, :cond_0

    .line 239
    iget-boolean v2, v1, Lcom/moji/http/snsforum/entity/Rank;->is_concern:Z

    iget-boolean v3, p1, Lcom/moji/newliveview/rank/AttentionEvent;->b:Z

    if-eq v2, v3, :cond_0

    .line 240
    iget-boolean v2, p1, Lcom/moji/newliveview/rank/AttentionEvent;->b:Z

    iput-boolean v2, v1, Lcom/moji/http/snsforum/entity/Rank;->is_concern:Z

    .line 241
    iget-object v2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->g:Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->g:Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

    invoke-static {v2}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;->b(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;)Landroid/widget/LinearLayout;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 242
    iget-object v2, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->g:Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

    invoke-static {v2}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;->b(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;)Landroid/widget/LinearLayout;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v2

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v2, :cond_0

    .line 244
    iget-object v4, p0, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter;->g:Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;

    invoke-static {v4}, Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;->b(Lcom/moji/newliveview/home/presenter/PictureRankItemPresenter$PictureRankHolder;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 245
    instance-of v5, v4, Lcom/moji/newliveview/rank/view/PictureRankItemView;

    if-eqz v5, :cond_1

    .line 246
    check-cast v4, Lcom/moji/newliveview/rank/view/PictureRankItemView;

    .line 247
    invoke-virtual {v4, v1}, Lcom/moji/newliveview/rank/view/PictureRankItemView;->a(Lcom/moji/http/snsforum/entity/Rank;)V

    :cond_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_2
    return-void
.end method
