.class public Lcom/moji/user/message/CommentInputActivity; .super Lcom/moji/base/MJActivity; .source "CommentInputActivity.java" # interfaces .implements Landroid/view/View$OnClickListener; # annotations .annotation build Lcom/moji/router/annotation/Router; .end annotation # static fields .field public static final KEY_INPUT_COMMENT:Ljava/lang/String; = "key_input_comment" # instance fields .field private a:Landroid/view/View; .field private b:Landroid/widget/EditText; .field private c:Landroid/widget/TextView; .field private i:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; # direct methods .method public constructor ()V .locals 0 .line 24 invoke-direct {p0}, Lcom/moji/base/MJActivity;->()V return-void .end method .method static synthetic a(Lcom/moji/user/message/CommentInputActivity;)Landroid/widget/EditText; .locals 0 .line 24 iget-object p0, p0, Lcom/moji/user/message/CommentInputActivity;->b:Landroid/widget/EditText; return-object p0 .end method .method private a()V .locals 3 .line 85 iget-object v0, p0, Lcom/moji/user/message/CommentInputActivity;->i:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; iget-object v1, p0, Lcom/moji/user/message/CommentInputActivity;->b:Landroid/widget/EditText; invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable; move-result-object v1 invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;->inputComment:Ljava/lang/String; .line 86 new-instance v0, Landroid/content/Intent; invoke-direct {v0}, Landroid/content/Intent;->()V const-string v1, "key_input_comment" .line 87 iget-object v2, p0, Lcom/moji/user/message/CommentInputActivity;->i:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent; const/4 v1, -0x1 .line 88 invoke-virtual {p0, v1, v0}, Lcom/moji/user/message/CommentInputActivity;->setResult(ILandroid/content/Intent;)V return-void .end method .method static synthetic b(Lcom/moji/user/message/CommentInputActivity;)Landroid/widget/TextView; .locals 0 .line 24 iget-object p0, p0, Lcom/moji/user/message/CommentInputActivity;->c:Landroid/widget/TextView; return-object p0 .end method # virtual methods .method public finish()V .locals 2 .line 106 invoke-super {p0}, Lcom/moji/base/MJActivity;->finish()V .line 107 sget v0, Lcom/moji/base/R$anim;->empty_instead:I sget v1, Lcom/moji/base/R$anim;->empty_instead:I invoke-virtual {p0, v0, v1}, Lcom/moji/user/message/CommentInputActivity;->overridePendingTransition(II)V return-void .end method .method protected g()Z .locals 1 const/4 v0, 0x0 return v0 .end method .method public onBackPressed()V .locals 1 .line 94 invoke-super {p0}, Lcom/moji/base/MJActivity;->onBackPressed()V const/4 v0, 0x0 .line 95 invoke-virtual {p0, v0}, Lcom/moji/user/message/CommentInputActivity;->setResult(I)V return-void .end method .method public onClick(Landroid/view/View;)V .locals 1 .line 74 invoke-virtual {p1}, Landroid/view/View;->getId()I move-result p1 .line 75 sget v0, Lcom/moji/user/R$id;->tv_send:I if-ne p1, v0, :cond_0 .line 76 invoke-direct {p0}, Lcom/moji/user/message/CommentInputActivity;->a()V .line 77 invoke-virtual {p0}, Lcom/moji/user/message/CommentInputActivity;->finish()V goto :goto_0 .line 78 :cond_0 sget v0, Lcom/moji/user/R$id;->v_bg:I if-ne p1, v0, :cond_1 const/4 p1, 0x0 .line 79 invoke-virtual {p0, p1}, Lcom/moji/user/message/CommentInputActivity;->setResult(I)V .line 80 invoke-virtual {p0}, Lcom/moji/user/message/CommentInputActivity;->finish()V :cond_1 :goto_0 return-void .end method .method protected onCreate(Landroid/os/Bundle;)V .locals 2 .line 39 invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V .line 40 sget p1, Lcom/moji/user/R$layout;->activity_user_message_comment_input:I invoke-virtual {p0, p1}, Lcom/moji/user/message/CommentInputActivity;->setContentView(I)V .line 41 sget p1, Lcom/moji/user/R$id;->v_bg:I invoke-virtual {p0, p1}, Lcom/moji/user/message/CommentInputActivity;->findViewById(I)Landroid/view/View; move-result-object p1 iput-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->a:Landroid/view/View; .line 42 sget p1, Lcom/moji/user/R$id;->edit_comment:I invoke-virtual {p0, p1}, Lcom/moji/user/message/CommentInputActivity;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroid/widget/EditText; iput-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->b:Landroid/widget/EditText; .line 43 sget p1, Lcom/moji/user/R$id;->tv_send:I invoke-virtual {p0, p1}, Lcom/moji/user/message/CommentInputActivity;->findViewById(I)Landroid/view/View; move-result-object p1 check-cast p1, Landroid/widget/TextView; iput-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->c:Landroid/widget/TextView; .line 44 iget-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->c:Landroid/widget/TextView; invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 45 iget-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->a:Landroid/view/View; invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 46 iget-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->b:Landroid/widget/EditText; new-instance v0, Lcom/moji/user/message/CommentInputActivity$1; invoke-direct {v0, p0}, Lcom/moji/user/message/CommentInputActivity$1;->(Lcom/moji/user/message/CommentInputActivity;)V invoke-virtual {p1, v0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V .line 63 invoke-virtual {p0}, Lcom/moji/user/message/CommentInputActivity;->getIntent()Landroid/content/Intent; move-result-object p1 const-string v0, "key_input_comment" invoke-virtual {p1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable; move-result-object p1 check-cast p1, Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; iput-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->i:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; .line 64 iget-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->i:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; if-eqz p1, :cond_0 iget-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->i:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; iget-object p1, p1, Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;->from_nick:Ljava/lang/String; invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result p1 if-nez p1, :cond_0 .line 65 iget-object p1, p0, Lcom/moji/user/message/CommentInputActivity;->b:Landroid/widget/EditText; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V sget v1, Lcom/moji/user/R$string;->reply:I invoke-static {v1}, Lcom/moji/tool/DeviceTool;->f(I)Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lcom/moji/user/message/CommentInputActivity;->i:Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg; iget-object v1, v1, Lcom/moji/http/message/bean/CommentMsgResp$CommentMsg;->from_nick:Ljava/lang/String; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, "\uff1a" 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-virtual {p1, v0}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V :cond_0 return-void .end method