.class public Lcom/moji/forum/ui/TopicSquareActivity;
.super Lcom/moji/forum/ui/ForumShareBaseActivity;
.source "TopicSquareActivity.java"

# interfaces
.implements Landroid/view/View$OnLongClickListener;


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

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/forum/ui/TopicSquareActivity$AsyncUploadPic;,
        Lcom/moji/forum/ui/TopicSquareActivity$CopyPicTask;,
        Lcom/moji/forum/ui/TopicSquareActivity$IndicatorViewHolder;,
        Lcom/moji/forum/ui/TopicSquareActivity$TopViewHolder;,
        Lcom/moji/forum/ui/TopicSquareActivity$ViewHolder;,
        Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;,
        Lcom/moji/forum/ui/TopicSquareActivity$NewTopicHandler;
    }
.end annotation


# static fields
.field public static final AT_FRIEND:I = 0x2a5

.field public static final DEL_IMAGE:I = 0x2a7

.field public static FUNC_CHILD_VIEW_EMOTICON:I = 0x0

.field public static FUNC_CHILD_VIEW_IMAGE:I = 0x1

.field public static final ISRECOMMENDCOTERIE:Ljava/lang/String; = "is_recommend_coterie"

.field public static final SELECT_IMAGE:I = 0x2a6

.field public static final TOPIC_SQUARE_TYPE:I = 0x3


# instance fields
.field private A:J

.field private B:J

.field private C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

.field private D:Z

.field private E:Ljava/lang/String;

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

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

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

.field private I:I

.field private J:Landroid/graphics/drawable/ColorDrawable;

.field private K:Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;

.field private L:Landroid/graphics/drawable/Drawable;

.field private M:Z

.field private N:Z

.field private O:Landroid/widget/LinearLayout;

.field private P:Landroid/widget/FrameLayout;

.field private Q:Landroid/widget/RelativeLayout;

.field private R:Landroid/widget/LinearLayout;

.field private S:Landroid/widget/LinearLayout;

.field private T:Landroid/widget/ImageView;

.field private U:Lcom/moji/badge/BadgeView;

.field private V:Landroid/widget/GridView;

.field private W:Lcom/moji/forum/ui/ImageAdapter;

.field private X:Lcom/moji/forum/view/AutoHeightLayout;

.field private Y:Landroid/view/inputmethod/InputMethodManager;

.field private Z:Landroid/widget/EditText;

.field private aA:Lcom/moji/forum/controller/SquareDrafController;

.field private aB:Z

.field private aC:I

.field private aD:Z

.field private aE:Ljava/lang/String;

.field private aF:Landroid/widget/TextView;

.field private aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

.field private aa:Landroid/widget/ImageButton;

.field private ab:Landroid/widget/ImageButton;

.field private ac:Lcom/moji/emotion/EmotionFragment;

.field private ad:Landroid/widget/Button;

.field private ae:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/ImageInfo;",
            ">;"
        }
    .end annotation
.end field

.field private af:I

.field private ag:Landroid/widget/ImageView;

.field private ah:Landroid/widget/TextView;

.field private ai:Landroid/widget/TextView;

.field private aj:Lcom/moji/ArcProcess;

.field private ak:Landroid/app/Dialog;

.field private al:Landroid/os/Handler;

.field private am:Landroid/graphics/drawable/Drawable;

.field private an:Landroid/graphics/drawable/Drawable;

.field private ao:Landroid/graphics/drawable/Drawable;

.field private ap:Landroid/graphics/drawable/Drawable;

.field private aq:Z

.field private ar:I

.field private as:Landroid/widget/ImageView;

.field private at:Landroid/widget/TextView;

.field private au:Lcom/moji/badge/BadgeView;

.field private av:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/AtInfo;",
            ">;"
        }
    .end annotation
.end field

.field private aw:Z

.field private ax:Z

.field private ay:Landroid/view/View;

.field private az:I

.field protected m:I

.field public mChildViewPosition:I

.field public mIsSending:Z

.field protected n:I

.field protected o:I

.field private p:Landroid/widget/ListView;

.field public picNumLimit:I

.field private q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

.field private r:Landroid/widget/LinearLayout;

.field public replyBarAfterClick:Landroid/widget/LinearLayout;

.field public replyBarBeforeClick:Landroid/widget/LinearLayout;

.field private s:Landroid/widget/ImageView;

.field private t:Landroid/widget/ImageView;

.field private u:Landroid/widget/TextView;

.field private v:Landroid/widget/TextView;

.field private w:Landroid/widget/TextView;

.field private x:Landroid/widget/RelativeLayout;

.field private y:Landroid/widget/RelativeLayout;

.field private z:Landroid/widget/RelativeLayout;


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

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .line 114
    invoke-direct {p0}, Lcom/moji/forum/ui/ForumShareBaseActivity;-><init>()V

    const/4 v0, 0x1

    .line 128
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->D:Z

    .line 130
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

    .line 131
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

    .line 132
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->H:Ljava/util/ArrayList;

    .line 156
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    const/4 v1, -0x1

    .line 163
    iput v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->mChildViewPosition:I

    const/4 v1, 0x3

    .line 168
    iput v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->picNumLimit:I

    .line 173
    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$NewTopicHandler;

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

    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->al:Landroid/os/Handler;

    .line 183
    new-instance v1, Ljava/util/ArrayList;

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

    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

    .line 189
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    const/4 v0, 0x0

    .line 194
    iput v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->az:I

    return-void
.end method

.method static synthetic A(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/view/View;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ay:Landroid/view/View;

    return-object p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->u:Landroid/widget/TextView;

    return-object p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->v:Landroid/widget/TextView;

    return-object p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->w:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic E(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->s:Landroid/widget/ImageView;

    return-object p0
.end method

.method static synthetic F(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->t:Landroid/widget/ImageView;

    return-object p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->H:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic H(Lcom/moji/forum/ui/TopicSquareActivity;)I
    .locals 0

    .line 114
    iget p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->I:I

    return p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

    return-object p0
.end method

.method static synthetic J(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ap:Landroid/graphics/drawable/Drawable;

    return-object p0
.end method

.method static synthetic K(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ao:Landroid/graphics/drawable/Drawable;

    return-object p0
.end method

.method static synthetic L(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->an:Landroid/graphics/drawable/Drawable;

    return-object p0
.end method

.method static synthetic M(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->am:Landroid/graphics/drawable/Drawable;

    return-object p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic O(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/forum/ui/ImageAdapter;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

    return-object p0
.end method

.method static synthetic P(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/app/Dialog;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    return-object p0
.end method

.method static synthetic Q(Lcom/moji/forum/ui/TopicSquareActivity;)V
    .locals 0

    .line 114
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->w()V

    return-void
.end method

.method static synthetic R(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/os/Handler;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->al:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic S(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->K:Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/forum/ui/TopicSquareActivity;I)I
    .locals 0

    .line 114
    iput p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aC:I

    return p1
.end method

.method static synthetic a(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->L:Landroid/graphics/drawable/Drawable;

    return-object p1
.end method

.method static synthetic a(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/ArcProcess;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aj:Lcom/moji/ArcProcess;

    return-object p0
.end method

.method static synthetic a(Lcom/moji/forum/ui/TopicSquareActivity;Lcom/moji/http/mqn/entity/TopicSquareInfo;)Lcom/moji/http/mqn/entity/TopicSquareInfo;
    .locals 0

    .line 114
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    return-object p1
.end method

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

    .line 114
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aE:Ljava/lang/String;

    return-object p1
.end method

.method private a(Landroid/widget/ImageView;II)V
    .locals 1

    .line 1337
    invoke-virtual {p1}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

    if-nez v0, :cond_0

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

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

    .line 1339
    :cond_0
    iput p2, v0, Landroid/widget/LinearLayout$LayoutParams;->width:I

    .line 1340
    iput p3, v0, Landroid/widget/LinearLayout$LayoutParams;->height:I

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

    return-void
.end method

.method static synthetic a(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;II)V
    .locals 0

    .line 114
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;II)V

    return-void
.end method

.method static synthetic a(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;Ljava/lang/String;)V
    .locals 0

    .line 114
    invoke-virtual {p0, p1, p2}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;Ljava/lang/String;I)V
    .locals 0

    .line 114
    invoke-virtual {p0, p1, p2, p3}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;Ljava/lang/String;I)V

    return-void
.end method

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

    .line 799
    new-instance v0, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    invoke-direct {v0, p0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;-><init>(Landroid/content/Context;)V

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

    .line 800
    invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object v0

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

    move-result v1

    if-nez v1, :cond_0

    goto :goto_0

    :cond_0
    sget p1, Lcom/moji/forum/R$string;->topic_has_delete:I

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->getString(I)Ljava/lang/String;

    move-result-object p1

    :goto_0
    invoke-virtual {v0, p1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(Ljava/lang/CharSequence;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    sget v0, Lcom/moji/forum/R$string;->ok:I

    .line 802
    invoke-virtual {p1, v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    const/4 v0, 0x0

    .line 803
    invoke-virtual {p1, v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->c(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    .line 804
    invoke-virtual {p1, v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(Z)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    sget v0, Lcom/moji/forum/R$string;->cancel:I

    .line 805
    invoke-virtual {p1, v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    new-instance v0, Lcom/moji/forum/ui/TopicSquareActivity$14;

    invoke-direct {v0, p0}, Lcom/moji/forum/ui/TopicSquareActivity$14;-><init>(Lcom/moji/forum/ui/TopicSquareActivity;)V

    .line 806
    invoke-virtual {p1, v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;

    move-result-object p1

    .line 812
    invoke-virtual {p1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b()Lcom/moji/dialog/MJDialog;

    return-void
.end method

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

    .line 114
    iput-boolean p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aD:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ap:Landroid/graphics/drawable/Drawable;

    return-object p1
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->at:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic b(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;Ljava/lang/String;)V
    .locals 0

    .line 114
    invoke-virtual {p0, p1, p2}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic b(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;Ljava/lang/String;I)V
    .locals 0

    .line 114
    invoke-virtual {p0, p1, p2, p3}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;Ljava/lang/String;I)V

    return-void
.end method

.method static synthetic b(Lcom/moji/forum/ui/TopicSquareActivity;Ljava/lang/String;)V
    .locals 0

    .line 114
    invoke-direct {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private b(Z)V
    .locals 2

    const/4 v0, 0x0

    .line 1970
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->mIsSending:Z

    .line 1971
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aj:Lcom/moji/ArcProcess;

    if-eqz v1, :cond_0

    .line 1972
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aj:Lcom/moji/ArcProcess;

    invoke-virtual {v1, v0}, Lcom/moji/ArcProcess;->setAngle(I)V

    .line 1974
    :cond_0
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    invoke-virtual {v1}, Landroid/app/Dialog;->isShowing()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 1975
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    invoke-virtual {v1}, Landroid/app/Dialog;->dismiss()V

    :cond_1
    if-eqz p1, :cond_2

    .line 1978
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

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

    invoke-static {p1, v1, v0}, Lcom/moji/forum/common/ToastUtil;->a(Landroid/content/Context;II)V

    :cond_2
    return-void
.end method

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

    .line 114
    iput-boolean p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->N:Z

    return p1
.end method

.method static synthetic c(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ao:Landroid/graphics/drawable/Drawable;

    return-object p1
.end method

.method static synthetic c(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/forum/view/AutoHeightLayout;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;Ljava/lang/String;)V
    .locals 0

    .line 114
    invoke-virtual {p0, p1, p2}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic c(Lcom/moji/forum/ui/TopicSquareActivity;Z)Z
    .locals 0

    .line 114
    iput-boolean p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aw:Z

    return p1
.end method

.method static synthetic d(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->an:Landroid/graphics/drawable/Drawable;

    return-object p1
.end method

.method static synthetic d(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/ImageButton;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    return-object p0
.end method

.method static synthetic d(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;Ljava/lang/String;)V
    .locals 0

    .line 114
    invoke-virtual {p0, p1, p2}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;Ljava/lang/String;)V

    return-void
.end method

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

    .line 114
    iput-boolean p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    return p1
.end method

.method static synthetic e(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->am:Landroid/graphics/drawable/Drawable;

    return-object p1
.end method

.method static synthetic e(Lcom/moji/forum/ui/TopicSquareActivity;Landroid/widget/ImageView;Ljava/lang/String;)V
    .locals 0

    .line 114
    invoke-virtual {p0, p1, p2}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic e(Lcom/moji/forum/ui/TopicSquareActivity;Z)V
    .locals 0

    .line 114
    invoke-direct {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->b(Z)V

    return-void
.end method

.method static synthetic e(Lcom/moji/forum/ui/TopicSquareActivity;)Z
    .locals 0

    .line 114
    iget-boolean p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->N:Z

    return p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic g(Lcom/moji/forum/ui/TopicSquareActivity;)Z
    .locals 0

    .line 114
    iget-boolean p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->M:Z

    return p0
.end method

.method static synthetic h(Lcom/moji/forum/ui/TopicSquareActivity;)V
    .locals 0

    .line 114
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->v()V

    return-void
.end method

.method static synthetic i(Lcom/moji/forum/ui/TopicSquareActivity;)V
    .locals 0

    .line 114
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->p()V

    return-void
.end method

.method static synthetic j(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/EditText;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    return-object p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aF:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic l(Lcom/moji/forum/ui/TopicSquareActivity;)J
    .locals 2

    .line 114
    iget-wide v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

    return-wide v0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aE:Ljava/lang/String;

    return-object p0
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic o(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/forum/controller/SquareDrafController;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    return-object p0
.end method

.method private p()V
    .locals 5

    .line 589
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->q()I

    move-result v0

    .line 590
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ah:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

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

    sget v3, Lcom/moji/forum/R$string;->topic_comment_image_select:I

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

    move-result-object v3

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

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

    sget v3, Lcom/moji/forum/R$string;->topic_comment_image_pager:I

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

    move-result-object 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 {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const/4 v1, 0x0

    const/16 v2, 0x8

    const/4 v3, 0x1

    if-nez v0, :cond_0

    .line 592
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->U:Lcom/moji/badge/BadgeView;

    invoke-virtual {v0, v3}, Lcom/moji/badge/BadgeView;->b(Z)V

    .line 593
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->au:Lcom/moji/badge/BadgeView;

    invoke-virtual {v0, v3}, Lcom/moji/badge/BadgeView;->b(Z)V

    .line 594
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->S:Landroid/widget/LinearLayout;

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

    .line 595
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->V:Landroid/widget/GridView;

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

    .line 596
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ah:Landroid/widget/TextView;

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

    .line 597
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->R:Landroid/widget/LinearLayout;

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

    goto :goto_0

    .line 599
    :cond_0
    iget-object v4, p0, Lcom/moji/forum/ui/TopicSquareActivity;->S:Landroid/widget/LinearLayout;

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

    .line 600
    iget-object v4, p0, Lcom/moji/forum/ui/TopicSquareActivity;->V:Landroid/widget/GridView;

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

    .line 601
    iget-object v4, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ah:Landroid/widget/TextView;

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

    .line 602
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->R:Landroid/widget/LinearLayout;

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

    .line 603
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->U:Lcom/moji/badge/BadgeView;

    new-instance v2, Ljava/lang/StringBuilder;

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

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

    const-string v4, ""

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

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

    move-result-object v2

    sget-object v4, Landroid/widget/TextView$BufferType;->NORMAL:Landroid/widget/TextView$BufferType;

    invoke-virtual {v1, v2, v4}, Lcom/moji/badge/BadgeView;->setText(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V

    .line 604
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->U:Lcom/moji/badge/BadgeView;

    invoke-virtual {v1, v3}, Lcom/moji/badge/BadgeView;->a(Z)V

    .line 605
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->au:Lcom/moji/badge/BadgeView;

    new-instance v2, Ljava/lang/StringBuilder;

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

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

    const-string v0, ""

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

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

    move-result-object v0

    sget-object v2, Landroid/widget/TextView$BufferType;->NORMAL:Landroid/widget/TextView$BufferType;

    invoke-virtual {v1, v0, v2}, Lcom/moji/badge/BadgeView;->setText(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V

    .line 606
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->au:Lcom/moji/badge/BadgeView;

    invoke-virtual {v0, v3}, Lcom/moji/badge/BadgeView;->a(Z)V

    :goto_0
    return-void
.end method

.method static synthetic p(Lcom/moji/forum/ui/TopicSquareActivity;)Z
    .locals 0

    .line 114
    iget-boolean p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aw:Z

    return p0
.end method

.method private q()I
    .locals 3

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 612
    :goto_0
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result v2

    if-ge v0, v2, :cond_1

    .line 613
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/ugc/bean/ImageInfo;

    iget v2, v2, Lcom/moji/http/ugc/bean/ImageInfo;->type:I

    if-nez v2, :cond_0

    add-int/lit8 v1, v1, 0x1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return v1
.end method

.method static synthetic q(Lcom/moji/forum/ui/TopicSquareActivity;)Z
    .locals 0

    .line 114
    iget-boolean p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aq:Z

    return p0
.end method

.method static synthetic r(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    return-object p0
.end method

.method private r()V
    .locals 9

    .line 827
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v0}, Lcom/moji/forum/controller/SquareDrafController;->b()Ljava/lang/String;

    move-result-object v0

    .line 828
    iget-wide v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    move-result-object v1

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

    move-result v0

    if-eqz v0, :cond_6

    .line 829
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v0}, Lcom/moji/forum/controller/SquareDrafController;->c()Ljava/lang/String;

    move-result-object v0

    .line 830
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v1}, Lcom/moji/forum/controller/SquareDrafController;->d()Ljava/util/ArrayList;

    move-result-object v1

    .line 831
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v2}, Lcom/moji/forum/controller/SquareDrafController;->e()Ljava/util/ArrayList;

    move-result-object v2

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

    move-result v3

    const/4 v4, 0x1

    if-lez v3, :cond_1

    .line 834
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v3}, Lcom/moji/forum/controller/SquareDrafController;->g()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 836
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v3}, Lcom/moji/forum/controller/SquareDrafController;->h()Ljava/lang/String;

    move-result-object v3

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

    move-result v5

    if-nez v5, :cond_1

    .line 838
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->getWeatherPunchCard()Ljava/lang/String;

    move-result-object v5

    .line 839
    invoke-virtual {v0, v3, v5}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    .line 840
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v3, v5}, Lcom/moji/forum/controller/SquareDrafController;->c(Ljava/lang/String;)V

    .line 841
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v3, v0}, Lcom/moji/forum/controller/SquareDrafController;->b(Ljava/lang/String;)V

    .line 842
    iput-object v5, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aE:Ljava/lang/String;

    .line 843
    iput-boolean v4, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aD:Z

    .line 844
    invoke-static {p0, v0, v1}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/content/Context;Ljava/lang/String;Ljava/util/ArrayList;)Landroid/text/SpannableString;

    move-result-object v3

    .line 845
    invoke-static {v5}, Lcom/moji/forum/common/ForumUtil;->b(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v6

    .line 846
    invoke-virtual {v3}, Landroid/text/SpannableString;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v7

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

    move-result v5

    add-int/2addr v5, v7

    .line 848
    new-instance v8, Lcom/moji/forum/ui/MyImageSpan;

    invoke-direct {v8, p0, v6}, Lcom/moji/forum/ui/MyImageSpan;-><init>(Landroid/content/Context;Landroid/graphics/Bitmap;)V

    const/16 v6, 0x21

    invoke-virtual {v3, v8, v7, v5, v6}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 849
    iget-object v5, p0, Lcom/moji/forum/ui/TopicSquareActivity;->at:Landroid/widget/TextView;

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

    .line 850
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

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

    .line 851
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v3}, Landroid/text/SpannableString;->length()I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/widget/EditText;->setSelection(I)V

    goto :goto_0

    .line 854
    :cond_0
    invoke-static {p0, v0, v1}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/content/Context;Ljava/lang/String;Ljava/util/ArrayList;)Landroid/text/SpannableString;

    move-result-object v0

    .line 855
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->at:Landroid/widget/TextView;

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

    .line 856
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

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

    .line 857
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/text/SpannableString;->length()I

    move-result v0

    invoke-virtual {v3, v0}, Landroid/widget/EditText;->setSelection(I)V

    .line 862
    :cond_1
    :goto_0
    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

    if-eqz v2, :cond_2

    .line 864
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    .line 865
    iput-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    .line 866
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

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

    invoke-virtual {v0, v1}, Lcom/moji/forum/ui/ImageAdapter;->a(Ljava/util/ArrayList;)V

    :cond_2
    const/4 v0, 0x0

    .line 868
    :goto_1
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result v1

    if-ge v0, v1, :cond_4

    .line 869
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/ugc/bean/ImageInfo;

    iget v1, v1, Lcom/moji/http/ugc/bean/ImageInfo;->type:I

    if-ne v1, v4, :cond_3

    .line 870
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    add-int/lit8 v0, v0, -0x1

    :cond_3
    add-int/2addr v0, v4

    goto :goto_1

    .line 874
    :cond_4
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result v0

    iget v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->picNumLimit:I

    if-ge v0, v1, :cond_5

    .line 875
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    new-instance v1, Lcom/moji/http/ugc/bean/ImageInfo;

    invoke-direct {v1, v4}, Lcom/moji/http/ugc/bean/ImageInfo;-><init>(I)V

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

    .line 877
    :cond_5
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->p()V

    .line 878
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

    invoke-virtual {v0}, Lcom/moji/forum/ui/ImageAdapter;->notifyDataSetChanged()V

    :cond_6
    return-void
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

    return-object p0
.end method

.method private s()V
    .locals 7

    .line 1576
    iget v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aC:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

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

    move-result-object v0

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

    move-result v0

    if-eqz v0, :cond_0

    .line 1577
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->getWeatherPunchCard()Ljava/lang/String;

    move-result-object v0

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

    move-result v2

    if-nez v2, :cond_0

    .line 1579
    invoke-static {v0}, Lcom/moji/forum/common/ForumUtil;->b(Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v2

    .line 1580
    new-instance v3, Landroid/text/SpannableString;

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

    .line 1581
    new-instance v4, Lcom/moji/forum/ui/MyImageSpan;

    invoke-direct {v4, p0, v2}, Lcom/moji/forum/ui/MyImageSpan;-><init>(Landroid/content/Context;Landroid/graphics/Bitmap;)V

    const/4 v2, 0x0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v5

    const/16 v6, 0x21

    invoke-virtual {v3, v4, v2, v5, v6}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 1582
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 1583
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setSelection(I)V

    .line 1584
    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aE:Ljava/lang/String;

    .line 1585
    iput-boolean v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aD:Z

    :cond_0
    return-void
.end method

.method static synthetic t(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/graphics/drawable/Drawable;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->L:Landroid/graphics/drawable/Drawable;

    return-object p0
.end method

.method private t()V
    .locals 3

    .line 1594
    iget-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aB:Z

    if-nez v0, :cond_1

    .line 1595
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v0}, Lcom/moji/forum/controller/SquareDrafController;->b()Ljava/lang/String;

    move-result-object v0

    .line 1596
    iget-wide v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    move-result-object v1

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

    move-result v0

    if-nez v0, :cond_0

    .line 1597
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v0}, Lcom/moji/forum/controller/SquareDrafController;->f()V

    :cond_0
    const/4 v0, 0x1

    .line 1599
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aB:Z

    :cond_1
    return-void
.end method

.method static synthetic u(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    return-object p0
.end method

.method private u()V
    .locals 3

    .line 1605
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    if-eqz v0, :cond_0

    .line 1606
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

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

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    iget-object v1, v1, Lcom/moji/http/mqn/entity/TopicSquareInfo;->content:Ljava/lang/String;

    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    iget-object v2, v2, Lcom/moji/http/mqn/entity/TopicSquareInfo;->path:Ljava/lang/String;

    invoke-virtual {p0, v0, v1, v2}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method static synthetic v(Lcom/moji/forum/ui/TopicSquareActivity;)Lcom/moji/http/mqn/entity/TopicSquareInfo;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    return-object p0
.end method

.method private v()V
    .locals 3

    .line 1697
    new-instance v0, Lcom/moji/camera/model/GalleryOptions$Builder;

    invoke-direct {v0}, Lcom/moji/camera/model/GalleryOptions$Builder;-><init>()V

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/camera/model/GalleryOptions$Builder;->a(Z)Lcom/moji/camera/model/GalleryOptions$Builder;

    move-result-object v0

    iget v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->picNumLimit:I

    invoke-virtual {v0, v2}, Lcom/moji/camera/model/GalleryOptions$Builder;->a(I)Lcom/moji/camera/model/GalleryOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/moji/camera/model/GalleryOptions$Builder;->b(Z)Lcom/moji/camera/model/GalleryOptions$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/camera/model/GalleryOptions$Builder;->a()Lcom/moji/camera/model/GalleryOptions;

    move-result-object v0

    .line 1698
    new-instance v2, Lcom/moji/camera/model/CropOptions$Builder;

    invoke-direct {v2}, Lcom/moji/camera/model/CropOptions$Builder;-><init>()V

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->a(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->b(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->c(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/moji/camera/model/CropOptions$Builder;->d(I)Lcom/moji/camera/model/CropOptions$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/moji/camera/model/CropOptions$Builder;->a()Lcom/moji/camera/model/CropOptions;

    move-result-object v1

    .line 1699
    sget v2, Lcom/moji/forum/R$string;->select_photo:I

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

    move-result-object v2

    invoke-static {p0, v2, v0, v1}, Lcom/moji/camera/PhotoActivity;->takePhoto(Landroid/app/Activity;Ljava/lang/String;Lcom/moji/camera/model/GalleryOptions;Lcom/moji/camera/model/CropOptions;)V

    return-void
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    return-object p0
.end method

.method private w()V
    .locals 3

    .line 1774
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    if-nez v0, :cond_0

    .line 1775
    new-instance v0, Landroid/app/Dialog;

    sget v1, Lcom/moji/forum/R$style;->dialog:I

    invoke-direct {v0, p0, v1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    const-string v0, "layout_inflater"

    .line 1776
    invoke-virtual {p0, v0}, Lcom/moji/forum/ui/TopicSquareActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 1777
    sget v1, Lcom/moji/forum/R$layout;->upload_dialog: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 1778
    sget v1, Lcom/moji/forum/R$id;->arcprocess:I

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

    move-result-object v1

    check-cast v1, Lcom/moji/ArcProcess;

    iput-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aj:Lcom/moji/ArcProcess;

    .line 1779
    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    invoke-virtual {v1, v0}, Landroid/app/Dialog;->setContentView(Landroid/view/View;)V

    .line 1780
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 1781
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 1783
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ak:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    return-void
.end method

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

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->c:Landroid/widget/TextView;

    return-object p0
.end method

.method static synthetic y(Lcom/moji/forum/ui/TopicSquareActivity;)Z
    .locals 0

    .line 114
    iget-boolean p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    return p0
.end method

.method static synthetic z(Lcom/moji/forum/ui/TopicSquareActivity;)Landroid/widget/RelativeLayout;
    .locals 0

    .line 114
    iget-object p0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->x:Landroid/widget/RelativeLayout;

    return-object p0
.end method


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

    .line 393
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->as:Landroid/widget/ImageView;

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

    .line 394
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

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

    .line 395
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ab:Landroid/widget/ImageButton;

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

    .line 396
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ad:Landroid/widget/Button;

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

    .line 397
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ag:Landroid/widget/ImageView;

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

    .line 398
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->T:Landroid/widget/ImageView;

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

    .line 399
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->at:Landroid/widget/TextView;

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

    .line 400
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->s:Landroid/widget/ImageView;

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

    .line 408
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->at:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v0

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

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

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

    .line 416
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

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

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

    invoke-virtual {v0, v1}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->setOnRefreshListener(Lcom/moji/pulltorefresh/PullRefresher$OnContainerRefreshListener;)V

    .line 430
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$3;

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

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

    .line 460
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$4;

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

    invoke-virtual {v0, v1}, Lcom/moji/forum/ui/ImageAdapter;->a(Lcom/moji/forum/ui/ImageAdapter$ImageAdapterListener;)V

    .line 473
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$5;

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

    invoke-virtual {v0, v1}, Lcom/moji/forum/view/AutoHeightLayout;->setOnAutoResizeListener(Lcom/moji/forum/view/AutoHeightLayout$OnAutoResizeListener;)V

    .line 497
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$6;

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

    invoke-virtual {v0, v1}, Lcom/moji/forum/view/AutoHeightLayout;->setOnAutoViewStateChangedListener(Lcom/moji/forum/view/AutoHeightLayout$OnAutoViewStateChangedListener;)V

    .line 510
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->x:Landroid/widget/RelativeLayout;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$7;

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

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

    .line 521
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->y:Landroid/widget/RelativeLayout;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$8;

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

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

    .line 532
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->z:Landroid/widget/RelativeLayout;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$9;

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

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

    .line 542
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$10;

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

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 578
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$11;

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

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method protected a(Landroid/widget/AbsListView;I)V
    .locals 6

    const/4 v0, 0x0

    const v1, -0xdededf

    const/4 v2, 0x0

    if-nez p2, :cond_3

    .line 228
    invoke-virtual {p1, v2}, Landroid/widget/AbsListView;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_4

    .line 231
    iget-boolean p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aw:Z

    if-nez p2, :cond_0

    .line 232
    iget p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->n:I

    goto :goto_0

    .line 234
    :cond_0
    iget p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->o:I

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

    move-result v3

    invoke-static {v3}, Ljava/lang/Math;->abs(I)I

    move-result v3

    iget-object v4, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    invoke-virtual {v4}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getHeadViewHeight()I

    move-result v4

    if-ge v3, v4, :cond_1

    .line 236
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    const/high16 v3, 0x3f800000    # 1.0f

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

    move-result v4

    int-to-float v4, v4

    iget-object v5, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    invoke-virtual {v5}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->getHeadViewHeight()I

    move-result v5

    int-to-float v5, v5

    div-float/2addr v4, v5

    invoke-static {v4}, Ljava/lang/Math;->abs(F)F

    move-result v4

    sub-float/2addr v3, v4

    invoke-virtual {v0, v3, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(FZ)V

    goto :goto_0

    .line 238
    :cond_1
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    invoke-virtual {v3, v0, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(FZ)V

    .line 242
    :goto_0
    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    if-ge v0, p2, :cond_2

    .line 243
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->a:Landroid/widget/RelativeLayout;

    const/high16 v1, -0x1000000

    const/high16 v2, 0x437f0000    # 255.0f

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

    move-result p1

    int-to-float p1, p1

    int-to-float p2, p2

    div-float/2addr p1, p2

    invoke-static {p1}, Ljava/lang/Math;->abs(F)F

    move-result p1

    mul-float p1, p1, v2

    float-to-int p1, p1

    shl-int/lit8 p1, p1, 0x18

    and-int/2addr p1, v1

    const p2, 0x212121

    or-int/2addr p1, p2

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

    goto :goto_1

    .line 245
    :cond_2
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->a:Landroid/widget/RelativeLayout;

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

    goto :goto_1

    .line 249
    :cond_3
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->a:Landroid/widget/RelativeLayout;

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

    .line 250
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    invoke-virtual {p1, v0, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->a(FZ)V

    :cond_4
    :goto_1
    return-void
.end method

.method protected a(Lcom/moji/http/mqn/entity/TopicSquareList;Z)V
    .locals 9

    if-nez p1, :cond_0

    return-void

    .line 693
    :cond_0
    iget-object v0, p1, Lcom/moji/http/mqn/entity/TopicSquareList;->page_cursor:Ljava/lang/String;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->E:Ljava/lang/String;

    const/4 v0, 0x0

    if-eqz p2, :cond_1

    .line 695
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

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

    .line 696
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

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

    .line 697
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->H:Ljava/util/ArrayList;

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

    .line 698
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->H:Ljava/util/ArrayList;

    iget-object v1, p1, Lcom/moji/http/mqn/entity/TopicSquareList;->hot_list:Ljava/util/ArrayList;

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

    .line 699
    iget-boolean p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->M:Z

    if-eqz p2, :cond_1

    .line 700
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->M:Z

    .line 701
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->m()V

    .line 704
    :cond_1
    iget-object p2, p1, Lcom/moji/http/mqn/entity/TopicSquareList;->hot_list:Ljava/util/ArrayList;

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

    move-result-object p2

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

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_5

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    .line 706
    iput-boolean v2, v1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->is_hot:Z

    .line 707
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

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

    move-result-object v3

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

    move-result v4

    if-eqz v4, :cond_4

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

    move-result-object v4

    check-cast v4, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    .line 708
    iget-wide v5, v1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

    iget-wide v7, v4, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

    cmp-long v4, v5, v7

    if-nez v4, :cond_3

    goto :goto_1

    :cond_4
    const/4 v2, 0x0

    :goto_1
    if-nez v2, :cond_2

    .line 713
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 715
    :cond_5
    iget-object p2, p1, Lcom/moji/http/mqn/entity/TopicSquareList;->topic_list:Ljava/util/ArrayList;

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

    move-result-object p2

    :cond_6
    :goto_2
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_9

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    .line 717
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

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

    move-result-object v3

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

    move-result v4

    if-eqz v4, :cond_8

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

    move-result-object v4

    check-cast v4, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    .line 718
    iget-wide v5, v1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

    iget-wide v7, v4, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

    cmp-long v4, v5, v7

    if-nez v4, :cond_7

    const/4 v3, 0x1

    goto :goto_3

    :cond_8
    const/4 v3, 0x0

    :goto_3
    if-nez v3, :cond_6

    .line 723
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 725
    :cond_9
    iget-boolean p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->M:Z

    if-nez p2, :cond_a

    iget-object p1, p1, Lcom/moji/http/mqn/entity/TopicSquareList;->topic_list:Ljava/util/ArrayList;

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

    move-result p1

    const/16 p2, 0x14

    if-ge p1, p2, :cond_a

    .line 726
    iput-boolean v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->M:Z

    .line 727
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->l()V

    .line 729
    :cond_a
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->K:Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;

    invoke-virtual {p1}, Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;->notifyDataSetChanged()V

    return-void
.end method

.method protected a(Z)V
    .locals 6

    const/4 v0, 0x1

    .line 632
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->N:Z

    .line 633
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->m()V

    .line 634
    new-instance v1, Ljava/util/HashMap;

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

    const-string v2, "square_id"

    .line 635
    iget-wide v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v2, 0x3

    if-eqz p1, :cond_0

    const/4 v3, 0x0

    .line 637
    iput v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ar:I

    const-string v3, "page_past"

    const-string v4, "0"

    .line 638
    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "page_cursor"

    const-string v4, ""

    .line 639
    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

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

    move-result-object v3

    sget-object v4, Lcom/moji/statistics/EVENT_TAG;->THEME_PULL_SHOW:Lcom/moji/statistics/EVENT_TAG;

    iget v5, p0, Lcom/moji/forum/ui/TopicSquareActivity;->az:I

    invoke-static {v5, v2}, Ljava/lang/Math;->min(II)I

    move-result v2

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

    move-result-object v2

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

    .line 641
    iget v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->az:I

    add-int/2addr v2, v0

    iput v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->az:I

    goto :goto_0

    .line 643
    :cond_0
    iget v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ar:I

    add-int/2addr v3, v0

    iput v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ar:I

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

    move-result-object v0

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

    iget v4, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ar:I

    invoke-static {v4, v2}, Ljava/lang/Math;->min(II)I

    move-result v2

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

    move-result-object v2

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

    const-string v0, "page_past"

    const-string v2, "1"

    .line 645
    invoke-virtual {v1, v0, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "page_cursor"

    .line 646
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->E:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_0
    const-string v0, "page_length"

    const-string v2, "20"

    .line 648
    invoke-virtual {v1, v0, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 650
    new-instance v0, Lcom/moji/http/mqn/SquareListRequest;

    invoke-direct {v0, v1}, Lcom/moji/http/mqn/SquareListRequest;-><init>(Ljava/util/HashMap;)V

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$12;

    invoke-direct {v1, p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity$12;-><init>(Lcom/moji/forum/ui/TopicSquareActivity;Z)V

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

    return-void
.end method

.method protected b()V
    .locals 4

    const/4 v0, 0x1

    .line 817
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->l:Z

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

    move-result-object v0

    if-eqz v0, :cond_0

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

    move-result-object v0

    const-string v1, "square_id"

    const-wide/16 v2, 0x0

    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/forum/ui/TopicSquareActivity;->B:J

    .line 821
    :cond_0
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->p()V

    .line 822
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->r()V

    return-void
.end method

.method protected c()V
    .locals 4

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

    move-result v0

    int-to-float v0, v0

    invoke-static {}, Lcom/moji/forum/common/ResUtil;->a()F

    move-result v1

    const/high16 v2, 0x42280000    # 42.0f

    mul-float v1, v1, v2

    sub-float/2addr v0, v1

    const/high16 v1, 0x40400000    # 3.0f

    div-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->af:I

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

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

    move-result v0

    int-to-float v0, v0

    invoke-static {}, Lcom/moji/forum/common/ResUtil;->a()F

    move-result v2

    const/high16 v3, 0x42000000    # 32.0f

    mul-float v2, v2, v3

    sub-float/2addr v0, v2

    invoke-static {}, Lcom/moji/forum/common/ResUtil;->a()F

    move-result v2

    const/high16 v3, 0x41200000    # 10.0f

    mul-float v2, v2, v3

    sub-float/2addr v0, v2

    div-float/2addr v0, v1

    float-to-int v0, v0

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

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

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

    move-result-object v0

    check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    .line 269
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->F()V

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

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

    .line 272
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

    const/4 v1, 0x0

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

    .line 273
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

    const/4 v2, 0x0

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

    .line 274
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

    sget v2, Lcom/moji/forum/R$color;->transparent:I

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

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

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

    move-result-object v0

    check-cast v0, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    .line 276
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    iget v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->m:I

    int-to-float v2, v2

    const v3, 0x3f4ccccd    # 0.8f

    mul-float v2, v2, v3

    float-to-int v2, v2

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->setHeadViewHeight(I)V

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

    move-result-object v0

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

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

    .line 278
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->fl_header_layout:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

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

    move-result v1

    if-nez v1, :cond_1

    const v1, 0x43838000    # 263.0f

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

    move-result v1

    .line 281
    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout$LayoutParams;

    if-nez v2, :cond_0

    .line 283
    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v3, -0x1

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

    .line 284
    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 286
    :cond_0
    iput v1, v2, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 288
    :goto_0
    invoke-virtual {v0}, Landroid/widget/FrameLayout;->requestLayout()V

    .line 290
    :cond_1
    sget v0, Lcom/moji/forum/R$id;->comment_num:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    .line 291
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->iv_topic_square_image:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->s:Landroid/widget/ImageView;

    .line 292
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->iv_topic_square_title_image:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->t:Landroid/widget/ImageView;

    .line 293
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->tv_topic_square_content:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    .line 294
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->tv_topic_square_read_count:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    .line 295
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->tv_topic_square_discuss_count:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    .line 296
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->ll_essence_topic:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->x:Landroid/widget/RelativeLayout;

    .line 297
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->ll_hot_topic:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->y:Landroid/widget/RelativeLayout;

    .line 298
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->ll_square_topic_member:I

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

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->z:Landroid/widget/RelativeLayout;

    .line 299
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    sget v1, Lcom/moji/forum/R$id;->next:I

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

    move-result-object v0

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ay:Landroid/view/View;

    .line 300
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->r:Landroid/widget/LinearLayout;

    const/4 v1, 0x4

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

    .line 302
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->k()V

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

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

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->P:Landroid/widget/FrameLayout;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Q:Landroid/widget/RelativeLayout;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

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

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

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

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->T:Landroid/widget/ImageView;

    .line 310
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->T:Landroid/widget/ImageView;

    iget v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->af:I

    iget v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->af:I

    invoke-direct {p0, v0, v1, v2}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Landroid/widget/ImageView;II)V

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->V:Landroid/widget/GridView;

    .line 312
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    new-instance v1, Lcom/moji/http/ugc/bean/ImageInfo;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Lcom/moji/http/ugc/bean/ImageInfo;-><init>(I)V

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

    .line 313
    new-instance v0, Lcom/moji/forum/ui/ImageAdapter;

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

    iget v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->af:I

    const/4 v3, 0x3

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

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

    .line 314
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->V:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

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

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

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

    move-result-object v0

    check-cast v0, Lcom/moji/forum/view/AutoHeightLayout;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    .line 316
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->P:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Lcom/moji/forum/view/AutoHeightLayout;->setAutoHeightLayoutView(Landroid/view/View;)V

    const-string v0, "input_method"

    .line 317
    invoke-virtual {p0, v0}, Lcom/moji/forum/ui/TopicSquareActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Y:Landroid/view/inputmethod/InputMethodManager;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ab:Landroid/widget/ImageButton;

    .line 322
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    sget v1, Lcom/moji/forum/R$id;->emoticonFragment:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->findFragmentById(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/moji/emotion/EmotionFragment;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ac:Lcom/moji/emotion/EmotionFragment;

    .line 323
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ac:Lcom/moji/emotion/EmotionFragment;

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v0, v1}, Lcom/moji/emotion/EmotionFragment;->a(Landroid/widget/EditText;)V

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ad:Landroid/widget/Button;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ag:Landroid/widget/ImageView;

    .line 327
    new-instance v0, Lcom/moji/badge/BadgeView;

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ag:Landroid/widget/ImageView;

    invoke-direct {v0, p0, v1}, Lcom/moji/badge/BadgeView;-><init>(Landroid/content/Context;Landroid/view/View;)V

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->U:Lcom/moji/badge/BadgeView;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->as:Landroid/widget/ImageView;

    .line 329
    new-instance v0, Lcom/moji/badge/BadgeView;

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->as:Landroid/widget/ImageView;

    invoke-direct {v0, p0, v1}, Lcom/moji/badge/BadgeView;-><init>(Landroid/content/Context;Landroid/view/View;)V

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->au:Lcom/moji/badge/BadgeView;

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

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

    .line 333
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ai:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

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

    sget v2, Lcom/moji/forum/R$string;->topic_comment_image_select: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;

    const-string v2, "0"

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

    sget v2, Lcom/moji/forum/R$string;->topic_comment_image_pager: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;

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

    move-result-object v1

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

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

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

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

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

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

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

    .line 336
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

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

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

    .line 337
    new-instance v0, Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;

    invoke-direct {v0, p0}, Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;-><init>(Lcom/moji/forum/ui/TopicSquareActivity;)V

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->K:Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;

    .line 338
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->K:Lcom/moji/forum/ui/TopicSquareActivity$TopicSquareAdapter;

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

    .line 339
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->p:Landroid/widget/ListView;

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

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

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

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

    move-result-object v0

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

    return-void
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 2

    .line 621
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    .line 622
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {v0}, Lcom/moji/forum/view/AutoHeightLayout;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 623
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->b()V

    .line 624
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v0, Lcom/moji/forum/R$drawable;->add_emotion_forum:I

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

    const/4 p1, 0x1

    return p1

    .line 628
    :cond_0
    invoke-super {p0, p1}, Lcom/moji/forum/ui/ForumShareBaseActivity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method protected e()V
    .locals 3

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

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

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

    move-result v0

    if-eqz v0, :cond_1

    .line 210
    sget-object v0, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    const-string v1, "4.4.4"

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

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {p0}, Lcom/moji/tool/DeviceTool;->c(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 211
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x20

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    goto :goto_0

    .line 213
    :cond_0
    new-instance v0, Lcom/moji/mjweather/library/AndroidBug5497Workaround;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/library/AndroidBug5497Workaround;-><init>(Landroid/app/Activity;)V

    .line 216
    :cond_1
    :goto_0
    invoke-static {}, Lcom/moji/tool/DeviceTool;->C()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 217
    sget v0, Lcom/moji/forum/R$dimen;->full_banner_margintop:I

    invoke-static {v0}, Lcom/moji/forum/common/ResUtil;->d(I)F

    move-result v0

    float-to-int v0, v0

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

    move-result v1

    add-int/2addr v0, v1

    iput v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->m:I

    goto :goto_1

    .line 219
    :cond_2
    sget v0, Lcom/moji/forum/R$dimen;->full_banner_margintop:I

    invoke-static {v0}, Lcom/moji/forum/common/ResUtil;->d(I)F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->m:I

    .line 221
    :goto_1
    sget v0, Lcom/moji/forum/R$dimen;->city_liveview_pic_height:I

    invoke-static {v0}, Lcom/moji/forum/common/ResUtil;->d(I)F

    move-result v0

    sget v1, Lcom/moji/forum/R$dimen;->title_bar_height:I

    invoke-static {v1}, Lcom/moji/forum/common/ResUtil;->d(I)F

    move-result v1

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->m:I

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    int-to-float v1, v1

    sub-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->n:I

    .line 222
    sget v0, Lcom/moji/forum/R$dimen;->city_liveview_pic_height:I

    invoke-static {v0}, Lcom/moji/forum/common/ResUtil;->d(I)F

    move-result v0

    sget v1, Lcom/moji/forum/R$dimen;->title_bar_height:I

    invoke-static {v1}, Lcom/moji/forum/common/ResUtil;->d(I)F

    move-result v1

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->m:I

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    int-to-float v1, v1

    const v2, 0x3e4ccccc    # 0.19999999f

    mul-float v1, v1, v2

    sub-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->o:I

    .line 223
    new-instance v0, Lcom/moji/forum/controller/SquareDrafController;

    invoke-direct {v0}, Lcom/moji/forum/controller/SquareDrafController;-><init>()V

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    return-void
.end method

.method public getDefaultDrawable()Landroid/graphics/drawable/Drawable;
    .locals 2

    .line 1332
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->J:Landroid/graphics/drawable/ColorDrawable;

    if-nez v0, :cond_0

    new-instance v0, Landroid/graphics/drawable/ColorDrawable;

    const v1, -0xd0b08

    invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    iput-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->J:Landroid/graphics/drawable/ColorDrawable;

    .line 1333
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->J:Landroid/graphics/drawable/ColorDrawable;

    return-object v0
.end method

.method public getWeatherPunchCard()Ljava/lang/String;
    .locals 2

    .line 794
    new-instance v0, Ljava/lang/StringBuilder;

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

    move-result-object v1

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

    const-string v1, "\uff0c"

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

    invoke-static {p0}, Lcom/moji/forum/common/ForumUtil;->e(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

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

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

    move-result-object v0

    return-object v0
.end method

.method protected j()Ljava/lang/String;
    .locals 3

    .line 1613
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "http://m.moji.com/moquan/square/"

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

    iget-object v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

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

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

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

    move-result-object v0

    return-object v0
.end method

.method protected n()V
    .locals 3

    const/4 v0, 0x1

    .line 733
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aw:Z

    .line 735
    new-instance v0, Lcom/moji/http/mqn/TopicSquareInfoRequest;

    iget-wide v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    new-instance v1, Lcom/moji/forum/ui/TopicSquareActivity$13;

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

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

    return-void
.end method

.method protected o()V
    .locals 2

    .line 2026
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    if-eqz v0, :cond_1

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

    move-result v0

    if-nez v0, :cond_0

    .line 2028
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

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

    invoke-virtual {p0, v1}, Lcom/moji/forum/ui/TopicSquareActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->showErrorView(Ljava/lang/String;)V

    goto :goto_0

    .line 2030
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aG:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-virtual {v0}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->G()V

    .line 2031
    sget v0, Lcom/moji/forum/R$string;->theme_has_delete:I

    invoke-virtual {p0, v0}, Lcom/moji/forum/ui/TopicSquareActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/moji/forum/ui/TopicSquareActivity;->a(Ljava/lang/String;)V

    goto :goto_0

    .line 2034
    :cond_1
    sget v0, Lcom/moji/forum/R$string;->network_exception:I

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

    :goto_0
    return-void
.end method

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

    .line 1618
    invoke-super {p0, p1, p2, p3}, Lcom/moji/forum/ui/ForumShareBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 v0, 0x7b

    const/4 v1, -0x1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eq p1, v0, :cond_e

    const/16 v0, 0xb8

    if-eq p1, v0, :cond_9

    const/16 v0, 0x2a5

    if-eq p1, v0, :cond_4

    const/16 v0, 0x2a7

    if-eq p1, v0, :cond_0

    goto/16 :goto_7

    :cond_0
    if-nez p2, :cond_14

    if-eqz p3, :cond_3

    :try_start_0
    const-string p1, "total_iamge_id"

    .line 1660
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object p1

    if-nez p1, :cond_1

    goto :goto_0

    .line 1662
    :cond_1
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    const-string p1, "total_iamge_id"

    .line 1663
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object p1

    check-cast p1, Ljava/util/ArrayList;

    iput-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    .line 1664
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result p1

    iget p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->picNumLimit:I

    if-ge p1, p2, :cond_2

    .line 1665
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    new-instance p2, Lcom/moji/http/ugc/bean/ImageInfo;

    invoke-direct {p2, v2}, Lcom/moji/http/ugc/bean/ImageInfo;-><init>(I)V

    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1667
    :cond_2
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    invoke-virtual {p1, p2}, Lcom/moji/forum/ui/ImageAdapter;->a(Ljava/util/ArrayList;)V

    .line 1668
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->p()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1671
    :catch_0
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

    invoke-virtual {p1}, Lcom/moji/forum/ui/ImageAdapter;->notifyDataSetChanged()V

    goto/16 :goto_7

    :cond_3
    :goto_0
    return-void

    :cond_4
    if-ne p2, v1, :cond_14

    .line 1622
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

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

    move-result p1

    const/16 p2, 0x14

    if-lt p1, p2, :cond_5

    .line 1623
    sget p1, Lcom/moji/forum/R$string;->at_more_than_limit_people:I

    invoke-static {p0, p1, v3}, Lcom/moji/forum/common/ToastUtil;->a(Landroid/content/Context;II)V

    return-void

    :cond_5
    if-nez p3, :cond_6

    return-void

    :cond_6
    const-string p1, "nickName"

    .line 1627
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string p2, "snsId"

    .line 1628
    invoke-virtual {p3, p2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-eqz p1, :cond_8

    if-nez p2, :cond_7

    goto :goto_1

    .line 1630
    :cond_7
    iget-object p3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

    invoke-static {p0, p1, p2, p3}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;)Landroid/graphics/Bitmap;

    move-result-object p1

    .line 1631
    new-instance p3, Landroid/text/SpannableString;

    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, " @"

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

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

    const-string v1, " "

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

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

    move-result-object v0

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

    .line 1632
    new-instance v0, Lcom/moji/forum/ui/MyImageSpan;

    invoke-direct {v0, p0, p1}, Lcom/moji/forum/ui/MyImageSpan;-><init>(Landroid/content/Context;Landroid/graphics/Bitmap;)V

    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result p1

    add-int/lit8 p1, p1, 0x3

    const/16 p2, 0x21

    invoke-virtual {p3, v0, v3, p1, p2}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 1633
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {p1}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {p2}, Landroid/widget/EditText;->getSelectionStart()I

    move-result p2

    invoke-interface {p1, p2, p3}, Landroid/text/Editable;->insert(ILjava/lang/CharSequence;)Landroid/text/Editable;

    .line 1634
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {p1}, Landroid/widget/EditText;->requestFocus()Z

    goto/16 :goto_7

    :cond_8
    :goto_1
    return-void

    :cond_9
    if-nez p3, :cond_a

    return-void

    :cond_a
    const-string p1, "input_topic_id"

    .line 1639
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/4 p2, 0x0

    .line 1640
    :goto_2
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

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

    move-result v0

    if-ge p2, v0, :cond_c

    .line 1641
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, ""

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

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

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

    move-result-object v1

    check-cast v1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    iget-wide v1, v1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

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

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

    move-result-object v0

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

    move-result v0

    if-eqz v0, :cond_b

    .line 1642
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

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

    move-result-object v0

    check-cast v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    const-string v1, "input_content"

    invoke-virtual {p3, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mInput:Ljava/lang/String;

    .line 1643
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

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

    move-result-object v0

    check-cast v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    const-string v1, "input_at_info_list"

    invoke-virtual {p3, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v1

    check-cast v1, Ljava/util/ArrayList;

    iput-object v1, v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mAtInfoList:Ljava/util/ArrayList;

    .line 1644
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->G:Ljava/util/ArrayList;

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

    move-result-object p2

    check-cast p2, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    const-string v0, "input_image_list"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p2, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mImageList:Ljava/util/ArrayList;

    goto :goto_3

    :cond_b
    add-int/lit8 p2, p2, 0x1

    goto :goto_2

    .line 1648
    :cond_c
    :goto_3
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

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

    move-result p2

    if-ge v3, p2, :cond_14

    .line 1649
    new-instance p2, Ljava/lang/StringBuilder;

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

    const-string v0, ""

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

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

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

    move-result-object v0

    check-cast v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    iget-wide v0, v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

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

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

    move-result-object p2

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

    move-result p2

    if-eqz p2, :cond_d

    .line 1650
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    const-string p2, "input_content"

    invoke-virtual {p3, p2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mInput:Ljava/lang/String;

    .line 1651
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    const-string p2, "input_at_info_list"

    invoke-virtual {p3, p2}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object p2

    check-cast p2, Ljava/util/ArrayList;

    iput-object p2, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mAtInfoList:Ljava/util/ArrayList;

    .line 1652
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->F:Ljava/util/ArrayList;

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

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    const-string p2, "input_image_list"

    invoke-virtual {p3, p2}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object p2

    check-cast p2, Ljava/util/ArrayList;

    iput-object p2, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mImageList:Ljava/util/ArrayList;

    goto :goto_7

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

    goto :goto_3

    :cond_e
    if-ne p2, v1, :cond_14

    const-string p1, "result_extra_data"

    .line 1677
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_13

    .line 1678
    invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_f

    goto :goto_6

    .line 1681
    :cond_f
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_10
    :goto_4
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_12

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

    move-result-object p2

    check-cast p2, Lcom/moji/camera/model/Image;

    .line 1682
    new-instance p3, Lcom/moji/http/ugc/bean/ImageInfo;

    iget-object p2, p2, Lcom/moji/camera/model/Image;->originalUri:Landroid/net/Uri;

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

    move-result-object p2

    const-wide/16 v0, 0xb

    invoke-direct {p3, p2, v3, v0, v1}, Lcom/moji/http/ugc/bean/ImageInfo;-><init>(Ljava/lang/String;IJ)V

    .line 1683
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result v0

    sub-int/2addr v0, v2

    if-ltz v0, :cond_11

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result v0

    sub-int/2addr v0, v2

    goto :goto_5

    :cond_11
    const/4 v0, 0x0

    :goto_5
    invoke-virtual {p2, v0, p3}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    .line 1684
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result p2

    iget p3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->picNumLimit:I

    if-le p2, p3, :cond_10

    .line 1685
    iget-object p2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    iget-object p3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result p3

    sub-int/2addr p3, v2

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

    goto :goto_4

    .line 1687
    :cond_12
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->p()V

    .line 1688
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->W:Lcom/moji/forum/ui/ImageAdapter;

    invoke-virtual {p1}, Lcom/moji/forum/ui/ImageAdapter;->notifyDataSetChanged()V

    goto :goto_7

    :cond_13
    :goto_6
    return-void

    :cond_14
    :goto_7
    return-void
.end method

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

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

    move-result v0

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

    move-result v1

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

    if-ne v1, v2, :cond_1

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

    move-result-object p1

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

    iget-boolean v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    if-eqz v1, :cond_0

    const-string v1, "2"

    goto :goto_0

    :cond_0
    const-string v1, "1"

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

    .line 1423
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->saveSquareDraft()V

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

    goto/16 :goto_7

    .line 1425
    :cond_1
    sget v1, Lcom/moji/forum/R$id;->iv_topic_square_image:I

    if-ne v0, v1, :cond_2

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

    move-result-object p1

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

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

    .line 1427
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    if-eqz p1, :cond_1a

    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    iget-boolean p1, p1, Lcom/moji/http/mqn/entity/TopicSquareInfo;->is_recommend:Z

    if-nez p1, :cond_1a

    .line 1428
    new-instance p1, Landroid/content/Intent;

    const-class v0, Lcom/moji/forum/ui/TopicDetailActivity;

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

    const-string v0, "square_id"

    .line 1429
    iget-wide v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    .line 1430
    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_7

    .line 1433
    :cond_2
    sget v1, Lcom/moji/forum/R$id;->ll_topic_square_item:I

    const/16 v2, 0xb8

    const/4 v3, 0x3

    const/4 v4, 0x0

    if-ne v0, v1, :cond_5

    .line 1434
    iget-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    .line 1438
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1a

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    if-eqz v0, :cond_1a

    .line 1439
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

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

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

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

    .line 1441
    iget-boolean v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    if-eqz v1, :cond_3

    const-string v1, "from"

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

    :cond_3
    const-string v1, "topic_id"

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

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

    iget-wide v5, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

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

    const-string v5, ""

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

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

    move-result-object v3

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

    const-string v1, "square_id"

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

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

    iget-wide v5, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    const-string v5, ""

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

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

    move-result-object v3

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

    const-string v1, "is_recommend_coterie"

    .line 1446
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    if-nez v3, :cond_4

    goto :goto_1

    :cond_4
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    iget-boolean v4, v3, Lcom/moji/http/mqn/entity/TopicSquareInfo;->is_recommend:Z

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

    const-string v1, "input_content"

    .line 1447
    iget-object v3, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mInput:Ljava/lang/String;

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

    const-string v1, "input_at_info_list"

    .line 1448
    iget-object v3, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mAtInfoList:Ljava/util/ArrayList;

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

    const-string v1, "input_image_list"

    .line 1449
    iget-object p1, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mImageList:Ljava/util/ArrayList;

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

    .line 1450
    invoke-virtual {p0, v0, v2}, Lcom/moji/forum/ui/TopicSquareActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_7

    .line 1453
    :cond_5
    sget v1, Lcom/moji/forum/R$id;->topic_list_header_item:I

    if-ne v0, v1, :cond_7

    .line 1454
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1a

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    if-eqz v0, :cond_1a

    .line 1455
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

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

    move-result-object v0

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

    iget-wide v5, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

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

    move-result-object v3

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

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

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

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

    const-string v1, "topic_id"

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

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

    iget-wide v5, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

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

    const-string v5, ""

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

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

    move-result-object v3

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

    const-string v1, "square_id"

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

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

    iget-wide v5, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    const-string v5, ""

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

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

    move-result-object v3

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

    const-string v1, "is_recommend_coterie"

    .line 1461
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    if-nez v3, :cond_6

    goto :goto_2

    :cond_6
    iget-object v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->C:Lcom/moji/http/mqn/entity/TopicSquareInfo;

    iget-boolean v4, v3, Lcom/moji/http/mqn/entity/TopicSquareInfo;->is_recommend:Z

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

    const-string v1, "input_content"

    .line 1462
    iget-object v3, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mInput:Ljava/lang/String;

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

    const-string v1, "input_at_info_list"

    .line 1463
    iget-object v3, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mAtInfoList:Ljava/util/ArrayList;

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

    const-string v1, "input_image_list"

    .line 1464
    iget-object p1, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->mImageList:Ljava/util/ArrayList;

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

    .line 1465
    invoke-virtual {p0, v0, v2}, Lcom/moji/forum/ui/TopicSquareActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_7

    .line 1468
    :cond_7
    sget v1, Lcom/moji/forum/R$id;->riv_item_face:I

    if-ne v0, v1, :cond_9

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

    move-result-object v0

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

    iget-boolean v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    if-eqz v2, :cond_8

    const-string v2, "2"

    goto :goto_3

    :cond_8
    const-string v2, "1"

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

    .line 1470
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1a

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    if-eqz v0, :cond_1a

    .line 1471
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    .line 1472
    iget-object p1, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->sns_id:Ljava/lang/String;

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

    goto/16 :goto_7

    .line 1475
    :cond_9
    sget p1, Lcom/moji/forum/R$id;->atBtn:I

    if-ne v0, p1, :cond_a

    .line 1476
    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_SHOW: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;

    .line 1478
    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_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;

    .line 1479
    new-instance p1, Landroid/content/Intent;

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

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

    const-string v0, "from"

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

    const/16 v0, 0x2a5

    .line 1481
    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/ui/TopicSquareActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_7

    .line 1483
    :cond_a
    sget p1, Lcom/moji/forum/R$id;->emoticonBtn:I

    if-ne v0, p1, :cond_c

    .line 1484
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->getKeyBoardState()I

    move-result p1

    packed-switch p1, :pswitch_data_0

    :pswitch_0
    goto/16 :goto_7

    .line 1495
    :pswitch_1
    iget p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->mChildViewPosition:I

    sget v0, Lcom/moji/forum/ui/TopicSquareActivity;->FUNC_CHILD_VIEW_EMOTICON:I

    if-ne p1, v0, :cond_b

    .line 1496
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v0, Lcom/moji/forum/R$drawable;->add_emotion_forum:I

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

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->TXT_PAD_SHOW: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;

    .line 1498
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-static {p1}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/widget/EditText;)V

    goto/16 :goto_7

    .line 1500
    :cond_b
    sget p1, Lcom/moji/forum/ui/TopicSquareActivity;->FUNC_CHILD_VIEW_EMOTICON:I

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->show(I)V

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->EMOJI_PAD_SHOW: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;

    .line 1502
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v0, Lcom/moji/forum/R$drawable;->add_words_forum:I

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

    goto/16 :goto_7

    .line 1487
    :pswitch_2
    sget p1, Lcom/moji/forum/ui/TopicSquareActivity;->FUNC_CHILD_VIEW_EMOTICON:I

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->show(I)V

    .line 1488
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v0, Lcom/moji/forum/R$drawable;->add_words_forum:I

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

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->EMOJI_PAD_SHOW: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;

    .line 1490
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->c()V

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

    goto/16 :goto_7

    .line 1507
    :cond_c
    sget p1, Lcom/moji/forum/R$id;->iv_photo:I

    if-eq v0, p1, :cond_18

    sget p1, Lcom/moji/forum/R$id;->iv_photo_after_click:I

    if-ne v0, p1, :cond_d

    goto/16 :goto_5

    .line 1531
    :cond_d
    sget p1, Lcom/moji/forum/R$id;->iv_empty_add_image:I

    const/4 v1, 0x1

    if-ne v0, p1, :cond_f

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

    move-result-object p1

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

    const-string v2, "4"

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

    .line 1533
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object p1

    const-string v0, "mounted"

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

    move-result p1

    if-eqz p1, :cond_e

    .line 1534
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->v()V

    goto/16 :goto_7

    .line 1536
    :cond_e
    sget p1, Lcom/moji/forum/R$string;->rc_nosdcardOrProtocted:I

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->getString(I)Ljava/lang/String;

    move-result-object p1

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

    move-result-object p1

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

    goto/16 :goto_7

    .line 1538
    :cond_f
    sget p1, Lcom/moji/forum/R$id;->sendBtn:I

    if-ne v0, p1, :cond_15

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

    move-result p1

    if-nez p1, :cond_10

    .line 1540
    sget p1, Lcom/moji/forum/R$string;->network_exception:I

    invoke-static {p0, p1, v1}, Lcom/moji/forum/common/ToastUtil;->a(Landroid/content/Context;II)V

    return-void

    .line 1543
    :cond_10
    iget-boolean p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ax:Z

    if-nez p1, :cond_11

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

    move-result-object p1

    sget-object v0, Lcom/moji/statistics/EVENT_TAG;->THEME_FOLLOW_BTN_SEND: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 1545
    :cond_11
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p1

    if-eqz p1, :cond_14

    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p1

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

    move-result-object p1

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

    move-result p1

    if-eqz p1, :cond_12

    goto :goto_4

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

    move-result p1

    if-eqz p1, :cond_13

    .line 1550
    new-instance p1, Lcom/moji/forum/ui/TopicSquareActivity$AsyncUploadPic;

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

    invoke-direct {p1, p0, v0}, Lcom/moji/forum/ui/TopicSquareActivity$AsyncUploadPic;-><init>(Lcom/moji/forum/ui/TopicSquareActivity;Lcom/moji/tool/thread/ThreadPriority;)V

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

    new-array v1, v4, [Ljava/lang/Void;

    invoke-virtual {p1, v0, v1}, Lcom/moji/forum/ui/TopicSquareActivity$AsyncUploadPic;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

    .line 1551
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->b()V

    .line 1552
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v0, Lcom/moji/forum/R$drawable;->add_emotion_forum:I

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

    goto/16 :goto_7

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

    goto/16 :goto_7

    .line 1546
    :cond_14
    :goto_4
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Lcom/moji/forum/R$string;->content_is_empty:I

    invoke-static {p1, v0, v4}, Lcom/moji/forum/common/ToastUtil;->a(Landroid/content/Context;II)V

    return-void

    .line 1557
    :cond_15
    sget p1, Lcom/moji/forum/R$id;->edit_comment0:I

    if-ne v0, p1, :cond_16

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

    move-result-object p1

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

    const-string v2, "2"

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

    .line 1559
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {p1, v1}, Landroid/widget/EditText;->setFocusable(Z)V

    .line 1560
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {p1, v1}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V

    .line 1561
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-static {p1}, Lcom/moji/forum/common/ForumUtil;->a(Landroid/widget/EditText;)V

    .line 1562
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v0, Lcom/moji/forum/R$drawable;->add_emotion_forum:I

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

    .line 1563
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->c()V

    .line 1564
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->s()V

    .line 1565
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->t()V

    goto :goto_7

    .line 1566
    :cond_16
    sget p1, Lcom/moji/forum/R$id;->iv_share:I

    if-ne v0, p1, :cond_1a

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

    move-result p1

    if-nez p1, :cond_17

    .line 1568
    sget p1, Lcom/moji/forum/R$string;->network_exception:I

    invoke-static {p0, p1, v1}, Lcom/moji/forum/common/ToastUtil;->a(Landroid/content/Context;II)V

    return-void

    .line 1571
    :cond_17
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->u()V

    goto :goto_7

    .line 1508
    :cond_18
    :goto_5
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

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

    const-string v2, "3"

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

    .line 1509
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->getKeyBoardState()I

    move-result p1

    packed-switch p1, :pswitch_data_1

    :pswitch_3
    goto :goto_6

    .line 1518
    :pswitch_4
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v1, Lcom/moji/forum/R$drawable;->add_emotion_forum:I

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

    .line 1519
    iget p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->mChildViewPosition:I

    sget v1, Lcom/moji/forum/ui/TopicSquareActivity;->FUNC_CHILD_VIEW_IMAGE:I

    if-ne p1, v1, :cond_19

    .line 1520
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->b()V

    goto :goto_6

    .line 1522
    :cond_19
    sget p1, Lcom/moji/forum/ui/TopicSquareActivity;->FUNC_CHILD_VIEW_IMAGE:I

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->show(I)V

    goto :goto_6

    .line 1512
    :pswitch_5
    sget p1, Lcom/moji/forum/ui/TopicSquareActivity;->FUNC_CHILD_VIEW_IMAGE:I

    invoke-virtual {p0, p1}, Lcom/moji/forum/ui/TopicSquareActivity;->show(I)V

    .line 1513
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aa:Landroid/widget/ImageButton;

    sget v1, Lcom/moji/forum/R$drawable;->add_emotion_forum:I

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

    .line 1514
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    invoke-virtual {p1}, Lcom/moji/forum/view/AutoHeightLayout;->c()V

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

    .line 1527
    :goto_6
    sget p1, Lcom/moji/forum/R$id;->iv_photo:I

    if-ne v0, p1, :cond_1a

    .line 1528
    invoke-direct {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->s()V

    :cond_1a
    :goto_7
    return-void

    :pswitch_data_0
    .packed-switch 0x64
        :pswitch_2
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch

    :pswitch_data_1
    .packed-switch 0x64
        :pswitch_5
        :pswitch_3
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method

.method public onDestroy()V
    .locals 1

    .line 256
    invoke-super {p0}, Lcom/moji/forum/ui/ForumShareBaseActivity;->onDestroy()V

    const/4 v0, 0x1

    .line 257
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aq:Z

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-eq p1, v0, :cond_0

    .line 2022
    invoke-super {p0, p1, p2}, Lcom/moji/forum/ui/ForumShareBaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1

    .line 2019
    :cond_0
    invoke-virtual {p0}, Lcom/moji/forum/ui/TopicSquareActivity;->saveSquareDraft()V

    .line 2020
    invoke-super {p0, p1, p2}, Lcom/moji/forum/ui/ForumShareBaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public onLongClick(Landroid/view/View;)Z
    .locals 8

    .line 1984
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    if-eqz v0, :cond_0

    .line 1985
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;

    .line 1986
    iget-object v1, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->sns_id:Ljava/lang/String;

    iget-boolean v2, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->is_moderator:Z

    const/4 v3, 0x0

    new-instance v0, Ljava/lang/StringBuilder;

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

    iget-wide v4, p1, Lcom/moji/http/mqn/entity/TopicSquareList$SquareTopic;->id:J

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

    const-string p1, ""

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

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

    move-result-object v4

    new-instance p1, Ljava/lang/StringBuilder;

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

    iget-wide v5, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

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

    const-string v0, ""

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

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

    move-result-object v5

    const/4 v6, 0x0

    new-instance v7, Lcom/moji/forum/ui/TopicSquareActivity$15;

    invoke-direct {v7, p0}, Lcom/moji/forum/ui/TopicSquareActivity$15;-><init>(Lcom/moji/forum/ui/TopicSquareActivity;)V

    move-object v0, p0

    invoke-static/range {v0 .. v7}, Lcom/moji/forum/ui/CommonLongClickDialog;->a(Landroid/content/Context;Ljava/lang/String;ZZLjava/lang/String;Ljava/lang/String;ZLcom/moji/forum/ui/CommonLongClickDialog$OnLongClickResultListener;)V

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method protected onPause()V
    .locals 6

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

    move-result-wide v0

    iget-wide v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->A:J

    sub-long/2addr v0, v2

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

    move-result-object v2

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

    iget-wide v4, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B:J

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)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;

    .line 387
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/moji/forum/view/AutoHeightLayout;->setListener(Z)V

    .line 388
    invoke-super {p0}, Lcom/moji/forum/ui/ForumShareBaseActivity;->onPause()V

    return-void
.end method

.method protected onResume()V
    .locals 3

    .line 372
    invoke-super {p0}, Lcom/moji/forum/ui/ForumShareBaseActivity;->onResume()V

    .line 373
    iget-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->D:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 374
    iput-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->D:Z

    .line 375
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->q:Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;

    invoke-virtual {v0}, Lcom/moji/pulltorefresh/FullBannerPullToFreshContainer;->c()V

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

    move-result-object v0

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

    const-string v2, "0"

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

    .line 378
    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->X:Lcom/moji/forum/view/AutoHeightLayout;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/moji/forum/view/AutoHeightLayout;->setListener(Z)V

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

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->A:J

    return-void
.end method

.method public saveSquareDraft()V
    .locals 5

    .line 1390
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

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

    move-result-object v0

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

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result v0

    if-gt v0, v1, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

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

    move-result v0

    if-lez v0, :cond_5

    .line 1393
    :cond_1
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    new-instance v2, Ljava/lang/StringBuilder;

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

    iget-wide v3, p0, Lcom/moji/forum/ui/TopicSquareActivity;->B: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, v2}, Lcom/moji/forum/controller/SquareDrafController;->a(Ljava/lang/String;)V

    .line 1394
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Z:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

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

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/moji/forum/controller/SquareDrafController;->b(Ljava/lang/String;)V

    .line 1395
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->av:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Lcom/moji/forum/controller/SquareDrafController;->a(Ljava/util/ArrayList;)V

    .line 1396
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    if-eqz v0, :cond_3

    const/4 v0, 0x0

    .line 1397
    :goto_0
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result v2

    if-ge v0, v2, :cond_3

    .line 1398
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    move-result-object v2

    check-cast v2, Lcom/moji/http/ugc/bean/ImageInfo;

    .line 1399
    iget v2, v2, Lcom/moji/http/ugc/bean/ImageInfo;->type:I

    if-ne v2, v1, :cond_2

    .line 1400
    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

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

    add-int/lit8 v0, v0, -0x1

    :cond_2
    add-int/2addr v0, v1

    goto :goto_0

    .line 1405
    :cond_3
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    iget-object v2, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ae:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Lcom/moji/forum/controller/SquareDrafController;->b(Ljava/util/ArrayList;)V

    .line 1406
    iget v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aC:I

    if-ne v0, v1, :cond_5

    .line 1407
    iget-boolean v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aD:Z

    if-eqz v0, :cond_4

    .line 1408
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

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

    invoke-virtual {v0, v1}, Lcom/moji/forum/controller/SquareDrafController;->c(Ljava/lang/String;)V

    .line 1409
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    iget-boolean v1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aD:Z

    invoke-virtual {v0, v1}, Lcom/moji/forum/controller/SquareDrafController;->a(Z)V

    goto :goto_1

    .line 1411
    :cond_4
    iget-object v0, p0, Lcom/moji/forum/ui/TopicSquareActivity;->aA:Lcom/moji/forum/controller/SquareDrafController;

    invoke-virtual {v0}, Lcom/moji/forum/controller/SquareDrafController;->i()V

    :cond_5
    :goto_1
    return-void
.end method

.method public show(I)V
    .locals 2

    .line 1371
    iput p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->mChildViewPosition:I

    const/16 v0, 0x8

    const/4 v1, 0x0

    packed-switch p1, :pswitch_data_0

    goto :goto_0

    .line 1379
    :pswitch_0
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Q:Landroid/widget/RelativeLayout;

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

    .line 1380
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ac:Lcom/moji/emotion/EmotionFragment;

    invoke-virtual {p1, v0}, Lcom/moji/emotion/EmotionFragment;->a(I)V

    .line 1381
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->O:Landroid/widget/LinearLayout;

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

    goto :goto_0

    .line 1374
    :pswitch_1
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->Q:Landroid/widget/RelativeLayout;

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

    .line 1375
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->ac:Lcom/moji/emotion/EmotionFragment;

    invoke-virtual {p1, v1}, Lcom/moji/emotion/EmotionFragment;->a(I)V

    .line 1376
    iget-object p1, p0, Lcom/moji/forum/ui/TopicSquareActivity;->O:Landroid/widget/LinearLayout;

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

    :goto_0
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
