.class Lcom/moji/forum/ui/TopicActivity$6;
.super Ljava/lang/Object;
.source "TopicActivity.java"

# interfaces
.implements Lcom/moji/forum/ui/CommentAdapter$CommentAdapterListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/forum/ui/TopicActivity;->a()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/forum/ui/TopicActivity;


# direct methods
.method constructor <init>(Lcom/moji/forum/ui/TopicActivity;)V
    .locals 0

    .line 542
    iput-object p1, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

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

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/http/mqn/entity/TopicComment$CommentImage;)V
    .locals 4

    .line 562
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicActivity;->c(Lcom/moji/forum/ui/TopicActivity;)Lcom/moji/statistics/EventManager;

    move-result-object v0

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

    invoke-static {}, Lcom/moji/tool/DeviceTool;->D()Z

    move-result v2

    if-eqz v2, :cond_0

    const-string v2, "1"

    goto :goto_0

    :cond_0
    const-string v2, "2"

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

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

    iget-object v1, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    const-class v2, Lcom/moji/forum/ui/ForumPictureActivity;

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

    const-string v1, "picUrl"

    .line 564
    iget-object v2, p1, Lcom/moji/http/mqn/entity/TopicComment$CommentImage;->path:Ljava/lang/String;

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

    const-string v1, "topic_id"

    .line 565
    iget-object v2, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {v2}, Lcom/moji/forum/ui/TopicActivity;->o(Lcom/moji/forum/ui/TopicActivity;)Ljava/lang/String;

    move-result-object v2

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

    const-string v1, "come_from"

    .line 566
    const-class v2, Lcom/moji/forum/ui/TopicActivity;

    invoke-virtual {v2}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v2

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

    const-string v1, "comment_image_id"

    .line 567
    iget-wide v2, p1, Lcom/moji/http/mqn/entity/TopicComment$CommentImage;->id:J

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object p1

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

    .line 568
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-virtual {p1, v0}, Lcom/moji/forum/ui/TopicActivity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public a(Lcom/moji/http/mqn/entity/TopicComment;)V
    .locals 3

    .line 546
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicActivity;->c(Lcom/moji/forum/ui/TopicActivity;)Lcom/moji/statistics/EventManager;

    move-result-object v0

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

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

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

    move-result v0

    if-eqz v0, :cond_0

    .line 549
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicActivity;->m(Lcom/moji/forum/ui/TopicActivity;)Landroid/widget/RelativeLayout;

    move-result-object v0

    const/4 v1, 0x0

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

    .line 550
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicActivity;->m(Lcom/moji/forum/ui/TopicActivity;)Landroid/widget/RelativeLayout;

    move-result-object v0

    iget-wide v1, p1, Lcom/moji/http/mqn/entity/TopicComment;->id:J

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

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    .line 551
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {v0}, Lcom/moji/forum/ui/TopicActivity;->n(Lcom/moji/forum/ui/TopicActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

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

    sget v2, Lcom/moji/forum/R$string;->reply:I

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

    move-result-object v2

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

    iget-object p1, p1, Lcom/moji/http/mqn/entity/TopicComment;->nick:Ljava/lang/String;

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

    const-string p1, "\uff1a"

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

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

    move-result-object p1

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

    .line 552
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    const/4 v0, 0x1

    invoke-static {p1, v0}, Lcom/moji/forum/ui/TopicActivity;->a(Lcom/moji/forum/ui/TopicActivity;Z)V

    goto :goto_0

    .line 554
    :cond_0
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {p1}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :goto_0
    return-void
.end method

.method public b(Lcom/moji/http/mqn/entity/TopicComment;)V
    .locals 2

    .line 588
    iget-object p1, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {p1}, Lcom/moji/forum/ui/TopicActivity;->c(Lcom/moji/forum/ui/TopicActivity;)Lcom/moji/statistics/EventManager;

    move-result-object p1

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

    invoke-static {}, Lcom/moji/tool/DeviceTool;->D()Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "1"

    goto :goto_0

    :cond_0
    const-string v1, "2"

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

    return-void
.end method

.method public c(Lcom/moji/http/mqn/entity/TopicComment;)V
    .locals 1

    .line 573
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    iget-object p1, p1, Lcom/moji/http/mqn/entity/TopicComment;->sns_id:Ljava/lang/String;

    invoke-static {v0, p1}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method public d(Lcom/moji/http/mqn/entity/TopicComment;)V
    .locals 1

    .line 578
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    invoke-static {v0, p1}, Lcom/moji/forum/ui/TopicActivity;->a(Lcom/moji/forum/ui/TopicActivity;Lcom/moji/http/mqn/entity/TopicComment;)V

    return-void
.end method

.method public e(Lcom/moji/http/mqn/entity/TopicComment;)V
    .locals 3

    .line 583
    iget-object v0, p0, Lcom/moji/forum/ui/TopicActivity$6;->a:Lcom/moji/forum/ui/TopicActivity;

    iget-wide v1, p1, Lcom/moji/http/mqn/entity/TopicComment;->id:J

    invoke-static {v0, v1, v2}, Lcom/moji/forum/ui/TopicActivity;->a(Lcom/moji/forum/ui/TopicActivity;J)V

    return-void
.end method
