.class public Lcom/moji/forum/ui/MyFriendActivity;
.super Lcom/moji/forum/base/ForumBaseActivity;
.source "MyFriendActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# static fields
.field public static final FROM:Ljava/lang/String; = "from"


# instance fields
.field private i:Landroid/widget/ListView;

.field private j:Landroid/widget/TextView;

.field private k:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/mqn/entity/FansList$Item;",
            ">;"
        }
    .end annotation
.end field

.field private l:Lcom/moji/forum/ui/FriendsAdapter;

.field private m:Z

.field private n:Z

.field private o:Ljava/lang/String;

.field private p:Ljava/lang/String;

.field private q:Landroid/widget/LinearLayout;

.field private r:Ljava/lang/String;

.field private s:Z

.field private t:I


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

    .line 28
    invoke-direct {p0}, Lcom/moji/forum/base/ForumBaseActivity;-><init>()V

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

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

    iput-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->k:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/moji/forum/ui/MyFriendActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 28
    iput-object p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->r:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/forum/ui/MyFriendActivity;)Z
    .locals 0

    .line 28
    iget-boolean p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->m:Z

    return p0
.end method

.method static synthetic a(Lcom/moji/forum/ui/MyFriendActivity;Z)Z
    .locals 0

    .line 28
    iput-boolean p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->m:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/forum/ui/MyFriendActivity;)Z
    .locals 0

    .line 28
    iget-boolean p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->n:Z

    return p0
.end method

.method static synthetic b(Lcom/moji/forum/ui/MyFriendActivity;Z)Z
    .locals 0

    .line 28
    iput-boolean p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->n:Z

    return p1
.end method

.method static synthetic c(Lcom/moji/forum/ui/MyFriendActivity;)V
    .locals 0

    .line 28
    invoke-direct {p0}, Lcom/moji/forum/ui/MyFriendActivity;->k()V

    return-void
.end method

.method static synthetic d(Lcom/moji/forum/ui/MyFriendActivity;)Z
    .locals 0

    .line 28
    iget-boolean p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->s:Z

    return p0
.end method

.method static synthetic e(Lcom/moji/forum/ui/MyFriendActivity;)Lcom/moji/forum/ui/FriendsAdapter;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->l:Lcom/moji/forum/ui/FriendsAdapter;

    return-object p0
.end method

.method static synthetic f(Lcom/moji/forum/ui/MyFriendActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->q:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method static synthetic g(Lcom/moji/forum/ui/MyFriendActivity;)Ljava/util/ArrayList;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->k:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic h(Lcom/moji/forum/ui/MyFriendActivity;)Landroid/widget/TextView;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->j:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic i(Lcom/moji/forum/ui/MyFriendActivity;)Landroid/widget/ListView;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    return-object p0
.end method

.method private k()V
    .locals 5

    const/4 v0, 0x1

    .line 126
    iput-boolean v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->n:Z

    .line 127
    new-instance v0, Lcom/moji/http/ugc/GetAttentionListRequest;

    iget-object v1, p0, Lcom/moji/forum/ui/MyFriendActivity;->r:Ljava/lang/String;

    invoke-static {}, Lcom/moji/forum/common/ForumUtil;->b()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/moji/forum/ui/MyFriendActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v3

    const/16 v4, 0x14

    invoke-direct {v0, v1, v4, v2, v3}, Lcom/moji/http/ugc/GetAttentionListRequest;-><init>(Ljava/lang/String;ILjava/lang/String;Z)V

    new-instance v1, Lcom/moji/forum/ui/MyFriendActivity$2;

    invoke-direct {v1, p0}, Lcom/moji/forum/ui/MyFriendActivity$2;-><init>(Lcom/moji/forum/ui/MyFriendActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/http/ugc/GetAttentionListRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void
.end method

.method public static startMe(Landroid/content/Context;I)V
    .locals 2

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

    const-class v1, Lcom/moji/forum/ui/MyFriendActivity;

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

    const-string v1, "from"

    .line 78
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 79
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method


# virtual methods
.method protected a()V
    .locals 2

    .line 84
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 85
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    new-instance v1, Lcom/moji/forum/ui/MyFriendActivity$1;

    invoke-direct {v1, p0}, Lcom/moji/forum/ui/MyFriendActivity$1;-><init>(Lcom/moji/forum/ui/MyFriendActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnScrollListener(Landroid/widget/AbsListView$OnScrollListener;)V

    return-void
.end method

.method protected b()V
    .locals 2

    .line 102
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->c:Landroid/widget/TextView;

    sget v1, Lcom/moji/forum/R$string;->my_friends:I

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

    .line 103
    invoke-static {}, Lcom/moji/forum/common/ForumUtil;->a()Z

    move-result v0

    if-nez v0, :cond_0

    .line 104
    invoke-static {p0}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/content/Context;)V

    .line 105
    invoke-virtual {p0}, Lcom/moji/forum/ui/MyFriendActivity;->finish()V

    :cond_0
    return-void
.end method

.method protected c()V
    .locals 4

    .line 55
    invoke-virtual {p0}, Lcom/moji/forum/ui/MyFriendActivity;->d()V

    .line 56
    sget v0, Lcom/moji/forum/R$id;->tv_words:I

    invoke-virtual {p0, v0}, Lcom/moji/forum/ui/MyFriendActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->j:Landroid/widget/TextView;

    .line 57
    sget v0, Lcom/moji/forum/R$id;->listview:I

    invoke-virtual {p0, v0}, Lcom/moji/forum/ui/MyFriendActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    .line 58
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    const/4 v1, 0x0

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

    .line 59
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 60
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    const v2, 0x106000d

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setSelector(I)V

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

    move-result-object v0

    sget v2, Lcom/moji/forum/R$layout;->footer_myfriend:I

    iget-object v3, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->q:Landroid/widget/LinearLayout;

    .line 62
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->q:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

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

    .line 63
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/moji/forum/ui/MyFriendActivity;->q:Landroid/widget/LinearLayout;

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

    .line 64
    new-instance v0, Lcom/moji/forum/ui/FriendsAdapter;

    iget-object v1, p0, Lcom/moji/forum/ui/MyFriendActivity;->k:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/moji/forum/ui/FriendsAdapter;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->l:Lcom/moji/forum/ui/FriendsAdapter;

    .line 65
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->i:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/moji/forum/ui/MyFriendActivity;->l:Lcom/moji/forum/ui/FriendsAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void
.end method

.method protected e()V
    .locals 3

    .line 46
    sget v0, Lcom/moji/forum/R$layout;->activity_myfriend:I

    invoke-virtual {p0, v0}, Lcom/moji/forum/ui/MyFriendActivity;->setContentView(I)V

    .line 47
    invoke-virtual {p0}, Lcom/moji/forum/ui/MyFriendActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "from"

    const/4 v2, -0x1

    .line 49
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->t:I

    :cond_0
    return-void
.end method

.method protected j()V
    .locals 3

    .line 110
    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->o:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->p:Ljava/lang/String;

    if-eqz v0, :cond_0

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

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

    const-string v1, "nickName"

    .line 112
    iget-object v2, p0, Lcom/moji/forum/ui/MyFriendActivity;->o:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "snsId"

    .line 113
    iget-object v2, p0, Lcom/moji/forum/ui/MyFriendActivity;->p:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/4 v1, -0x1

    .line 114
    invoke-virtual {p0, v1, v0}, Lcom/moji/forum/ui/MyFriendActivity;->setResult(ILandroid/content/Intent;)V

    .line 116
    :cond_0
    invoke-virtual {p0}, Lcom/moji/forum/ui/MyFriendActivity;->finish()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    .line 159
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    sget v0, Lcom/moji/forum/R$id;->iv_title_back:I

    if-ne p1, v0, :cond_0

    .line 160
    iget p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->t:I

    packed-switch p1, :pswitch_data_0

    goto :goto_0

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->C_AT_FRIENDS_BACK_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v1, "3"

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

    goto :goto_0

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->C_AT_FRIENDS_BACK_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v1, "2"

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

    goto :goto_0

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->C_AT_FRIENDS_BACK_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v1, "1"

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

    .line 171
    :goto_0
    invoke-virtual {p0}, Lcom/moji/forum/ui/MyFriendActivity;->finish()V

    :cond_0
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method protected onDestroy()V
    .locals 1

    const/4 v0, 0x1

    .line 121
    iput-boolean v0, p0, Lcom/moji/forum/ui/MyFriendActivity;->s:Z

    .line 122
    invoke-super {p0}, Lcom/moji/forum/base/ForumBaseActivity;->onDestroy()V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView<",
            "*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

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

    move-result-object p1

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

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

    .line 71
    iget-object p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->k:Ljava/util/ArrayList;

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/FansList$Item;

    iget-object p1, p1, Lcom/moji/http/mqn/entity/FansList$Item;->nickName:Ljava/lang/String;

    iput-object p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->o:Ljava/lang/String;

    .line 72
    iget-object p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->k:Ljava/util/ArrayList;

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/FansList$Item;

    iget-object p1, p1, Lcom/moji/http/mqn/entity/FansList$Item;->snsId:Ljava/lang/String;

    iput-object p1, p0, Lcom/moji/forum/ui/MyFriendActivity;->p:Ljava/lang/String;

    .line 73
    invoke-virtual {p0}, Lcom/moji/forum/ui/MyFriendActivity;->j()V

    return-void
.end method
