.class public Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;
.super Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;
.source "FeedSubjectDetailActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout$OnActionDownListener;
.implements Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView$OnCommentSendListener;
.implements Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow$OnMenuItemClickListener;


# annotations
.annotation build Lcom/moji/router/annotation/Router;
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;",
        "Landroid/view/View$OnClickListener;",
        "Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout$OnActionDownListener;",
        "Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView$OnCommentSendListener<",
        "Lcom/moji/http/snsforum/ILiveViewComment;",
        ">;",
        "Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow$OnMenuItemClickListener<",
        "Lcom/moji/http/snsforum/ILiveViewComment;",
        ">;"
    }
.end annotation


# static fields
.field public static final SUBJECT_ID:Ljava/lang/String; = "subject_id"


# instance fields
.field private A:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

.field protected a:Landroid/widget/ImageView;

.field private b:Landroid/widget/RelativeLayout;

.field private c:Landroid/widget/LinearLayout;

.field private i:Landroid/support/v7/widget/RecyclerView;

.field private j:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

.field private k:J

.field private l:Landroid/widget/FrameLayout;

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

.field private n:J

.field private o:Landroid/widget/TextView;

.field private p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

.field private q:Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;

.field private r:Lcom/moji/mjweather/feed/view/CommentNumView;

.field private s:Z

.field private t:I

.field private u:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

.field private v:Ljava/lang/String;

.field private w:I

.field private x:Landroid/widget/LinearLayout;

.field private y:Z

.field private z:Z


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

    .line 63
    invoke-direct {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;-><init>()V

    const/4 v0, 0x0

    .line 81
    iput v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->t:I

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;I)I
    .locals 0

    .line 63
    iput p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->w:I

    return p1
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;)Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;
    .locals 0

    .line 63
    iput-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->u:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;)Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;
    .locals 0

    .line 63
    iput-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->u:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 63
    iput-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->v:Ljava/lang/String;

    return-object p1
.end method

.method private a(Lcom/moji/http/snsforum/ILiveViewComment;)V
    .locals 8

    .line 452
    instance-of v0, p1, Lcom/moji/http/fdsapi/entity/SubjectComment$Comment;

    if-eqz v0, :cond_0

    .line 454
    new-instance v0, Lcom/moji/http/fdsapi/DeleteFeedSubjectCommentRequest;

    invoke-interface {p1}, Lcom/moji/http/snsforum/ILiveViewComment;->getCommentId()J

    move-result-wide v2

    const-wide/16 v4, 0x0

    iget-wide v6, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    move-object v1, v0

    invoke-direct/range {v1 .. v7}, Lcom/moji/http/fdsapi/DeleteFeedSubjectCommentRequest;-><init>(JJJ)V

    goto :goto_0

    .line 455
    :cond_0
    instance-of v0, p1, Lcom/moji/http/fdsapi/entity/SubjectComment$Comment$ReplyComment;

    if-eqz v0, :cond_1

    .line 457
    check-cast p1, Lcom/moji/http/fdsapi/entity/SubjectComment$Comment$ReplyComment;

    .line 458
    new-instance v7, Lcom/moji/http/fdsapi/DeleteFeedSubjectCommentRequest;

    iget-wide v1, p1, Lcom/moji/http/fdsapi/entity/SubjectComment$Comment$ReplyComment;->comment_id:J

    iget-wide v3, p1, Lcom/moji/http/fdsapi/entity/SubjectComment$Comment$ReplyComment;->id:J

    iget-wide v5, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    move-object v0, v7

    invoke-direct/range {v0 .. v6}, Lcom/moji/http/fdsapi/DeleteFeedSubjectCommentRequest;-><init>(JJJ)V

    .line 462
    :goto_0
    new-instance p1, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$7;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$7;-><init>(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)V

    invoke-virtual {v0, p1}, Lcom/moji/http/fdsapi/DeleteFeedSubjectCommentRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void

    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;Z)Z
    .locals 0

    .line 63
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->s:Z

    return p1
.end method

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

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->j:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    return-object p0
.end method

.method private b(I)V
    .locals 2

    .line 358
    iput p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->t:I

    .line 360
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    invoke-virtual {v0}, Landroid/support/v7/widget/RecyclerView;->getLayoutManager()Landroid/support/v7/widget/RecyclerView$LayoutManager;

    move-result-object v0

    check-cast v0, Landroid/support/v7/widget/LinearLayoutManager;

    invoke-virtual {v0}, Landroid/support/v7/widget/LinearLayoutManager;->o()I

    move-result v0

    .line 361
    iget-object v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    invoke-virtual {v1}, Landroid/support/v7/widget/RecyclerView;->getLayoutManager()Landroid/support/v7/widget/RecyclerView$LayoutManager;

    move-result-object v1

    check-cast v1, Landroid/support/v7/widget/LinearLayoutManager;

    invoke-virtual {v1}, Landroid/support/v7/widget/LinearLayoutManager;->q()I

    move-result v1

    if-gt p1, v0, :cond_0

    .line 365
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    invoke-virtual {v0, p1}, Landroid/support/v7/widget/RecyclerView;->a(I)V

    goto :goto_0

    :cond_0
    if-gt p1, v1, :cond_1

    .line 368
    iget-object v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    sub-int/2addr p1, v0

    invoke-virtual {v1, p1}, Landroid/support/v7/widget/RecyclerView;->getChildAt(I)Landroid/view/View;

    move-result-object p1

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

    move-result p1

    .line 369
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p1}, Landroid/support/v7/widget/RecyclerView;->scrollBy(II)V

    goto :goto_0

    .line 372
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    invoke-virtual {v0, p1}, Landroid/support/v7/widget/RecyclerView;->a(I)V

    const/4 p1, 0x1

    .line 374
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->s:Z

    :goto_0
    return-void
.end method

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

    .line 63
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->y:Z

    return p1
.end method

.method static synthetic c(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Z
    .locals 0

    .line 63
    iget-boolean p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->s:Z

    return p0
.end method

.method static synthetic c(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;Z)Z
    .locals 0

    .line 63
    iput-boolean p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->z:Z

    return p1
.end method

.method static synthetic d(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)I
    .locals 0

    .line 63
    iget p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->t:I

    return p0
.end method

.method static synthetic e(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Landroid/support/v7/widget/RecyclerView;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    return-object p0
.end method

.method static synthetic f(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Z
    .locals 0

    .line 63
    iget-boolean p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->y:Z

    return p0
.end method

.method static synthetic g(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Z
    .locals 0

    .line 63
    iget-boolean p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->z:Z

    return p0
.end method

.method static synthetic h(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->q:Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;

    return-object p0
.end method

.method static synthetic i(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    return-object p0
.end method

.method static synthetic j(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Landroid/widget/FrameLayout;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->l:Landroid/widget/FrameLayout;

    return-object p0
.end method

.method private j()V
    .locals 1

    .line 229
    new-instance v0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$3;

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

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->A:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    return-void
.end method

.method static synthetic k(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    return-object p0
.end method

.method private k()V
    .locals 2

    const/4 v0, 0x3

    .line 441
    invoke-direct {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b(I)V

    .line 442
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->o:Landroid/widget/TextView;

    const-string v1, ""

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

    const/4 v0, 0x0

    .line 443
    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->v:Ljava/lang/String;

    const/4 v0, 0x0

    .line 444
    iput v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->w:I

    .line 445
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    invoke-virtual {v0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;->b()V

    .line 446
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->r:Lcom/moji/mjweather/feed/view/CommentNumView;

    invoke-virtual {v0}, Lcom/moji/mjweather/feed/view/CommentNumView;->a()V

    .line 447
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->requestCommentList()V

    return-void
.end method

.method static synthetic l(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Landroid/widget/LinearLayout;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->x:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method private l()V
    .locals 1

    .line 483
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

    if-nez v0, :cond_0

    return-void

    .line 486
    :cond_0
    invoke-direct {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m()V

    return-void
.end method

.method private m()V
    .locals 8

    .line 490
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

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

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

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, ""

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

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

    .line 491
    :goto_0
    iget-object v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

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

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

    move-result v1

    if-eqz v1, :cond_1

    const-string v1, ""

    goto :goto_1

    :cond_1
    iget-object v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

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

    .line 492
    :goto_1
    iget-object v2, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->m:Lcom/moji/http/fdsapi/entity/FeedSubjectDetail;

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

    .line 493
    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "http://m.moji.com/feed/subject/"

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

    iget-wide v4, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

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

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

    move-result-object v3

    .line 495
    new-instance v4, Lcom/moji/share/entity/ShareContentConfig$Builder;

    invoke-direct {v4, v0, v1}, Lcom/moji/share/entity/ShareContentConfig$Builder;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 496
    invoke-virtual {v4, v3}, Lcom/moji/share/entity/ShareContentConfig$Builder;->b(Ljava/lang/String;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    move-result-object v0

    sget-object v1, Lcom/moji/share/entity/ShareChannelType;->WX_TIMELINE:Lcom/moji/share/entity/ShareChannelType;

    sget-object v3, Lcom/moji/share/entity/ShareContentType;->WEBPAGE:Lcom/moji/share/entity/ShareContentType;

    .line 497
    invoke-virtual {v0, v1, v3}, Lcom/moji/share/entity/ShareContentConfig$Builder;->a(Lcom/moji/share/entity/ShareChannelType;Lcom/moji/share/entity/ShareContentType;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    move-result-object v0

    sget-object v1, Lcom/moji/share/entity/ShareChannelType;->QQ:Lcom/moji/share/entity/ShareChannelType;

    sget-object v3, Lcom/moji/share/entity/ShareContentType;->WEBPAGE:Lcom/moji/share/entity/ShareContentType;

    .line 498
    invoke-virtual {v0, v1, v3}, Lcom/moji/share/entity/ShareContentConfig$Builder;->a(Lcom/moji/share/entity/ShareChannelType;Lcom/moji/share/entity/ShareContentType;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    move-result-object v0

    sget-object v1, Lcom/moji/share/entity/ShareChannelType;->MESSAGE:Lcom/moji/share/entity/ShareChannelType;

    .line 499
    invoke-virtual {v0, v1}, Lcom/moji/share/entity/ShareContentConfig$Builder;->a(Lcom/moji/share/entity/ShareChannelType;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    .line 501
    new-instance v0, Lcom/moji/share/MJThirdShareManager;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/moji/share/MJThirdShareManager;-><init>(Landroid/app/Activity;Lcom/moji/share/listener/ShareListener;)V

    .line 502
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    const/4 v5, 0x0

    if-eqz v3, :cond_2

    .line 503
    sget v2, Lcom/moji/mjweather/feed/R$drawable;->moji_share_icon:I

    invoke-static {p0, v2, v1}, Lcom/moji/mjweather/feed/utils/ResourceUtils;->a(Landroid/content/Context;ILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 504
    new-instance v2, Ljava/lang/StringBuilder;

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

    invoke-static {}, Lcom/moji/tool/FilePathUtil;->u()Ljava/lang/String;

    move-result-object v3

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

    const-string v3, "screen_shot_to_share.jpg"

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

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

    move-result-object v2

    const/16 v3, 0x50

    .line 505
    invoke-static {v2, v1, v3}, Lcom/moji/tool/FileTool;->a(Ljava/lang/String;Landroid/graphics/Bitmap;I)Z

    .line 506
    invoke-virtual {v4, v2}, Lcom/moji/share/entity/ShareContentConfig$Builder;->c(Ljava/lang/String;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    .line 507
    sget-object v1, Lcom/moji/share/entity/ShareFromType;->FeedSubject:Lcom/moji/share/entity/ShareFromType;

    invoke-virtual {v4}, Lcom/moji/share/entity/ShareContentConfig$Builder;->a()Lcom/moji/share/entity/ShareContentConfig;

    move-result-object v2

    invoke-virtual {v0, v1, v2, v5}, Lcom/moji/share/MJThirdShareManager;->a(Lcom/moji/share/entity/ShareFromType;Lcom/moji/share/entity/ShareContentConfig;Z)V

    goto :goto_3

    .line 510
    :cond_2
    new-instance v1, Ljava/io/File;

    invoke-static {}, Lcom/moji/tool/FilePathUtil;->u()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v1, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 511
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_3

    .line 512
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    .line 514
    :cond_3
    invoke-virtual {v1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v3

    if-eqz v3, :cond_4

    .line 516
    array-length v6, v3

    :goto_2
    if-ge v5, v6, :cond_4

    aget-object v7, v3, v5

    .line 517
    invoke-virtual {v7}, Ljava/io/File;->delete()Z

    add-int/lit8 v5, v5, 0x1

    goto :goto_2

    .line 520
    :cond_4
    new-instance v3, Ljava/lang/StringBuilder;

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

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

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

    sget-object v1, Ljava/io/File;->separator:Ljava/lang/String;

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

    const-string v1, "sharepic_"

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

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    invoke-virtual {v3, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ".png"

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

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

    move-result-object v1

    .line 521
    invoke-virtual {v4, v1}, Lcom/moji/share/entity/ShareContentConfig$Builder;->c(Ljava/lang/String;)Lcom/moji/share/entity/ShareContentConfig$Builder;

    .line 522
    new-instance v3, Lcom/moji/requestcore/DownloadRequest;

    new-instance v5, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$8;

    invoke-direct {v5, p0, v0, v4}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$8;-><init>(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;Lcom/moji/share/MJThirdShareManager;Lcom/moji/share/entity/ShareContentConfig$Builder;)V

    invoke-direct {v3, v1, v2, v5}, Lcom/moji/requestcore/DownloadRequest;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/moji/requestcore/ProgressListener;)V

    .line 535
    new-instance v1, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$9;

    invoke-direct {v1, p0, v0, v4}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$9;-><init>(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;Lcom/moji/share/MJThirdShareManager;Lcom/moji/share/entity/ShareContentConfig$Builder;)V

    invoke-virtual {v3, v1}, Lcom/moji/requestcore/DownloadRequest;->b(Lcom/moji/requestcore/DownloadRequest$DownloadCallback;)V

    :goto_3
    return-void
.end method

.method static synthetic m(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)V
    .locals 0

    .line 63
    invoke-direct {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k()V

    return-void
.end method

.method static synthetic n(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)Lcom/moji/mjweather/feed/view/CommentNumView;
    .locals 0

    .line 63
    iget-object p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->r:Lcom/moji/mjweather/feed/view/CommentNumView;

    return-object p0
.end method

.method static synthetic o(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)I
    .locals 0

    .line 63
    iget p0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->w:I

    return p0
.end method

.method static synthetic p(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)J
    .locals 2

    .line 63
    iget-wide v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    return-wide v0
.end method


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

    .line 92
    sget v0, Lcom/moji/mjweather/feed/R$layout;->feedsubjectdetail_activity:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->setContentView(I)V

    .line 93
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "subject_id"

    const-wide/16 v2, 0x0

    .line 95
    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    :cond_0
    return-void
.end method

.method protected c()V
    .locals 5

    .line 101
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->w()V

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

    move-result-object v0

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

    const/4 v2, 0x0

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

    move-result-object v0

    .line 103
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->a(Landroid/view/View;)V

    .line 104
    sget v0, Lcom/moji/mjweather/feed/R$id;->iv_share:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->a:Landroid/widget/ImageView;

    .line 105
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->a:Landroid/widget/ImageView;

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

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

    .line 106
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->a:Landroid/widget/ImageView;

    const/4 v1, 0x1

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

    .line 107
    sget v0, Lcom/moji/mjweather/feed/R$string;->feed_subject_detail:I

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

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b(Ljava/lang/String;)V

    .line 108
    sget v0, Lcom/moji/mjweather/feed/R$id;->view_loading:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->l:Landroid/widget/FrameLayout;

    .line 109
    sget v0, Lcom/moji/mjweather/feed/R$id;->net_error_layout:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b:Landroid/widget/RelativeLayout;

    .line 110
    sget v0, Lcom/moji/mjweather/feed/R$id;->ll_content_layout:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->c:Landroid/widget/LinearLayout;

    .line 111
    sget v0, Lcom/moji/mjweather/feed/R$id;->rv_relative_article:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/support/v7/widget/RecyclerView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    .line 112
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    new-instance v1, Landroid/support/v7/widget/LinearLayoutManager;

    invoke-direct {v1, p0}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V

    .line 113
    new-instance v0, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    iget-wide v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    invoke-direct {v0, p0, v1, v2}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;-><init>(Landroid/content/Context;J)V

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->j:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    .line 114
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

    iget-object v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->j:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V

    .line 116
    sget v0, Lcom/moji/mjweather/feed/R$id;->edit_comment:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->o:Landroid/widget/TextView;

    .line 117
    sget v0, Lcom/moji/mjweather/feed/R$id;->view_comment_input:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    .line 118
    sget v0, Lcom/moji/mjweather/feed/R$id;->ll_root:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->q:Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;

    .line 119
    sget v0, Lcom/moji/mjweather/feed/R$id;->v_comment_num:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/feed/view/CommentNumView;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->r:Lcom/moji/mjweather/feed/view/CommentNumView;

    .line 120
    sget v0, Lcom/moji/mjweather/feed/R$id;->ll_bottom_comment_input:I

    invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->x:Landroid/widget/LinearLayout;

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

    move-result v0

    if-eqz v0, :cond_0

    .line 124
    invoke-direct {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->j()V

    .line 125
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    .line 126
    invoke-virtual {v0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->A:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

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

    move-result v0

    const/4 v1, 0x0

    const/16 v2, 0x8

    if-eqz v0, :cond_1

    .line 130
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b:Landroid/widget/RelativeLayout;

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

    .line 131
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->c:Landroid/widget/LinearLayout;

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

    goto :goto_0

    .line 133
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b:Landroid/widget/RelativeLayout;

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

    .line 134
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->c:Landroid/widget/LinearLayout;

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

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

    move-result-object v0

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

    new-instance v2, Ljava/lang/StringBuilder;

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

    iget-wide v3, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

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

    const-string v3, ""

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

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

    move-result-object v2

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

    return-void
.end method

.method protected e()V
    .locals 2

    .line 141
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->a:Landroid/widget/ImageView;

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

    .line 142
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b:Landroid/widget/RelativeLayout;

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

    .line 143
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->o:Landroid/widget/TextView;

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

    .line 144
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    invoke-virtual {v0, p0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;->setOnCommentSendListener(Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView$OnCommentSendListener;)V

    .line 145
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->q:Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;

    invoke-virtual {v0, p0}, Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout;->setOnActionDownListener(Lcom/moji/mjweather/ipc/view/ActionDownListenerLinearLayout$OnActionDownListener;)V

    .line 146
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->r:Lcom/moji/mjweather/feed/view/CommentNumView;

    invoke-virtual {v0, p0}, Lcom/moji/mjweather/feed/view/CommentNumView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 147
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->j:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    new-instance v1, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$1;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$1;-><init>(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->a(Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewReplyCommentView$OnReplyCommentListener;)V

    .line 188
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->i:Landroid/support/v7/widget/RecyclerView;

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

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

    invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->a(Landroid/support/v7/widget/RecyclerView$OnScrollListener;)V

    return-void
.end method

.method public onActionDown()Z
    .locals 1

    .line 268
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->u:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->u:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {v0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 269
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->u:Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;

    invoke-virtual {v0}, Lcom/moji/mjweather/ipc/view/liveviewcomment/MenuPopWindow;->b()V

    const/4 v0, 0x1

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    .line 551
    invoke-super {p0, p1, p2, p3}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 p3, 0xc8

    if-ne p1, p3, :cond_0

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    .line 556
    iget-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    invoke-virtual {p1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;->getContentString()Ljava/lang/String;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    invoke-virtual {p2}, Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;->getCommentImpl()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/moji/http/snsforum/ILiveViewComment;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->onSend(Ljava/lang/String;Lcom/moji/http/snsforum/ILiveViewComment;)V

    :cond_0
    return-void
.end method

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

    .line 338
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->a:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_0

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

    move-result-object p1

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

    new-instance v1, Ljava/lang/StringBuilder;

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

    iget-wide v2, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

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

    const-string v2, ""

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

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

    move-result-object v1

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

    .line 340
    invoke-direct {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->l()V

    goto :goto_0

    .line 341
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b:Landroid/widget/RelativeLayout;

    if-ne p1, v0, :cond_2

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

    move-result p1

    const/4 v0, 0x0

    const/16 v1, 0x8

    if-eqz p1, :cond_1

    .line 343
    iget-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b:Landroid/widget/RelativeLayout;

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

    .line 344
    iget-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->c:Landroid/widget/LinearLayout;

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

    .line 345
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p_()V

    goto :goto_0

    .line 347
    :cond_1
    iget-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b:Landroid/widget/RelativeLayout;

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

    .line 348
    iget-object p1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->c:Landroid/widget/LinearLayout;

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

    goto :goto_0

    .line 350
    :cond_2
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->o:Landroid/widget/TextView;

    if-ne p1, v0, :cond_3

    const/4 p1, 0x0

    .line 351
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->startComment(Lcom/moji/http/snsforum/ILiveViewComment;)V

    goto :goto_0

    .line 352
    :cond_3
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->r:Lcom/moji/mjweather/feed/view/CommentNumView;

    if-ne p1, v0, :cond_4

    const/4 p1, 0x3

    .line 353
    invoke-direct {p0, p1}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->b(I)V

    :cond_4
    :goto_0
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 330
    invoke-super {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onDestroy()V

    .line 331
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->j:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    if-eqz v0, :cond_0

    .line 332
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->j:Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;

    invoke-virtual {v0}, Lcom/moji/mjweather/feed/adapter/SubjectRelativeArticleAdapter;->d()V

    :cond_0
    return-void
.end method

.method public onMenuItemClick(Ljava/lang/String;Lcom/moji/http/snsforum/ILiveViewComment;)V
    .locals 2

    if-nez p2, :cond_0

    return-void

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

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/account/data/AccountProvider;->d()Ljava/lang/String;

    move-result-object p1

    .line 254
    invoke-interface {p2}, Lcom/moji/http/snsforum/ILiveViewComment;->getSnsId()J

    move-result-wide v0

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

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_1

    .line 255
    invoke-virtual {p0, p2}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->startComment(Lcom/moji/http/snsforum/ILiveViewComment;)V

    goto :goto_0

    .line 257
    :cond_1
    invoke-direct {p0, p2}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->a(Lcom/moji/http/snsforum/ILiveViewComment;)V

    :goto_0
    return-void
.end method

.method public bridge synthetic onMenuItemClick(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 0

    .line 62
    check-cast p2, Lcom/moji/http/snsforum/ILiveViewComment;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->onMenuItemClick(Ljava/lang/String;Lcom/moji/http/snsforum/ILiveViewComment;)V

    return-void
.end method

.method public onSend(Ljava/lang/String;Lcom/moji/http/snsforum/ILiveViewComment;)V
    .locals 3

    .line 281
    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object p1

    const-string v0, " "

    const-string v1, ""

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object p1

    .line 282
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-ge v0, v2, :cond_0

    .line 283
    sget p1, Lcom/moji/mjweather/feed/R$string;->text_not_null:I

    invoke-static {p0, p1, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    return-void

    .line 286
    :cond_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v2, 0x3e8

    if-le v0, v2, :cond_1

    .line 287
    sget p1, Lcom/moji/mjweather/feed/R$string;->can_enter_500_words_please_modification:I

    invoke-static {p0, p1, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    return-void

    .line 290
    :cond_1
    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_3

    if-nez p2, :cond_2

    const-wide/16 v0, 0x0

    goto :goto_0

    .line 291
    :cond_2
    invoke-interface {p2}, Lcom/moji/http/snsforum/ILiveViewComment;->getCommentId()J

    move-result-wide v0

    :goto_0
    invoke-virtual {p0, v0, v1, p1}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->sendComment(JLjava/lang/String;)V

    goto :goto_1

    .line 293
    :cond_3
    new-instance p1, Landroid/content/Intent;

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

    const-string p2, "com.moji.mjweather.me.activity.LoginDialogActivity"

    .line 294
    invoke-virtual {p1, p0, p2}, Landroid/content/Intent;->setClassName(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;

    const/16 p2, 0xc8

    .line 295
    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->startActivityForResult(Landroid/content/Intent;I)V

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

    move-result-object p1

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

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

    :goto_1
    return-void
.end method

.method public bridge synthetic onSend(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 0

    .line 62
    check-cast p2, Lcom/moji/http/snsforum/ILiveViewComment;

    invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->onSend(Ljava/lang/String;Lcom/moji/http/snsforum/ILiveViewComment;)V

    return-void
.end method

.method protected onStart()V
    .locals 2

    .line 563
    invoke-super {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onStart()V

    .line 564
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->n:J

    return-void
.end method

.method protected onStop()V
    .locals 7

    .line 569
    invoke-super {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onStop()V

    .line 570
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->n:J

    sub-long/2addr v0, v2

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

    move-result-object v2

    sget-object v3, Lcom/moji/statistics/EVENT_TAG;->FEEDS_TOPIC_DURATION:Lcom/moji/statistics/EVENT_TAG;

    new-instance v4, Ljava/lang/StringBuilder;

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

    const-string v5, ""

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

    iget-wide v5, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

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

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

    move-result-object v4

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

    return-void
.end method

.method protected p_()V
    .locals 3

    .line 303
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->l:Landroid/widget/FrameLayout;

    const/4 v1, 0x0

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

    .line 304
    new-instance v0, Lcom/moji/http/fdsapi/FeedSubjectRequest;

    iget-wide v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    invoke-direct {v0, v1, v2}, Lcom/moji/http/fdsapi/FeedSubjectRequest;-><init>(J)V

    .line 305
    new-instance v1, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$4;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$4;-><init>(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)V

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

    .line 325
    invoke-virtual {p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->requestCommentList()V

    return-void
.end method

.method public requestCommentList()V
    .locals 7

    const/4 v0, 0x1

    .line 412
    iput-boolean v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->z:Z

    .line 413
    new-instance v0, Lcom/moji/http/fdsapi/FeedSubjectCommentListRequest;

    iget-wide v2, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    iget v4, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->w:I

    iget-object v6, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->v:Ljava/lang/String;

    const/16 v5, 0xf

    move-object v1, v0

    invoke-direct/range {v1 .. v6}, Lcom/moji/http/fdsapi/FeedSubjectCommentListRequest;-><init>(JIILjava/lang/String;)V

    .line 414
    new-instance v1, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$6;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$6;-><init>(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)V

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

    return-void
.end method

.method public sendComment(JLjava/lang/String;)V
    .locals 11

    .line 380
    new-instance v10, Lcom/moji/http/fdsapi/AddSubjectCommentRequest;

    iget-wide v1, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->k:J

    invoke-static {}, Lcom/moji/mjweather/feed/utils/FeedUtils;->b()I

    move-result v8

    invoke-static {}, Lcom/moji/mjweather/feed/utils/FeedUtils;->a()Ljava/lang/String;

    move-result-object v9

    const-wide/16 v5, 0x0

    move-object v0, v10

    move-wide v3, p1

    move-object v7, p3

    invoke-direct/range {v0 .. v9}, Lcom/moji/http/fdsapi/AddSubjectCommentRequest;-><init>(JJJLjava/lang/String;ILjava/lang/String;)V

    .line 381
    new-instance p1, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$5;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity$5;-><init>(Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;)V

    invoke-virtual {v10, p1}, Lcom/moji/http/fdsapi/AddSubjectCommentRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void
.end method

.method public startComment(Lcom/moji/http/snsforum/ILiveViewComment;)V
    .locals 2

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

    move-result-object v0

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

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

    .line 402
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    const/4 v1, 0x0

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

    if-nez p1, :cond_0

    .line 404
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;->a(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_0

    .line 406
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/feed/FeedSubjectDetailActivity;->p:Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;

    invoke-interface {p1}, Lcom/moji/http/snsforum/ILiveViewComment;->getNick()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, p1}, Lcom/moji/mjweather/ipc/view/liveviewcomment/LiveViewCommentInputView;->a(Ljava/lang/String;Ljava/lang/Object;)V

    :goto_0
    return-void
.end method
