.class public Lcom/moji/user/message/cell/AttentionMsgCell; .super Lcom/moji/user/message/BaseMsgCell; .source "AttentionMsgCell.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "Lcom/moji/user/message/BaseMsgCell<", "Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;", ">;" } .end annotation # direct methods .method public constructor (Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;Lcom/moji/user/message/IMsgDetailCallBack;)V .locals 0 .line 28 invoke-direct {p0, p1, p2}, Lcom/moji/user/message/BaseMsgCell;->(Ljava/lang/Object;Lcom/moji/user/message/IMsgDetailCallBack;)V return-void .end method # virtual methods .method public a()I .locals 1 const/4 v0, 0x1 return v0 .end method .method public a(Landroid/view/ViewGroup;I)Lcom/moji/newliveview/dynamic/base/CustomViewHolder; .locals 3 .line 38 new-instance p2, Lcom/moji/newliveview/dynamic/base/CustomViewHolder; invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v0 invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater; move-result-object v0 sget v1, Lcom/moji/user/R$layout;->item_msg_attention:I const/4 v2, 0x0 invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; move-result-object p1 invoke-direct {p2, p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->(Landroid/view/View;)V return-object p2 .end method .method public a(Lcom/moji/newliveview/dynamic/base/CustomViewHolder;I)V .locals 6 .line 44 sget p2, Lcom/moji/user/R$id;->iv_face:I invoke-virtual {p1, p2}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View; move-result-object p2 check-cast p2, Lcom/moji/imageview/CertificateRoundImageView; .line 45 invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->y()Landroid/content/Context; move-result-object v0 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; check-cast v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg; iget-object v1, v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;->face:Ljava/lang/String; sget v2, Lcom/moji/user/R$drawable;->default_user_face_male:I invoke-static {v0, v1, p2, v2}, Lcom/moji/tool/ImageUtils;->b(Landroid/content/Context;Ljava/lang/String;Landroid/widget/ImageView;I)V .line 46 iget-object v0, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; check-cast v0, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg; iget v0, v0, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;->offical_type:I invoke-virtual {p2, v0}, Lcom/moji/imageview/CertificateRoundImageView;->setCertificateType(I)V .line 48 sget v0, Lcom/moji/user/R$id;->tv_nick:I invoke-virtual {p1, v0}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; .line 49 invoke-static {}, Lcom/moji/tool/DeviceTool;->b()I move-result v1 const/high16 v2, 0x43700000 # 240.0f invoke-static {v2}, Lcom/moji/tool/DeviceTool;->a(F)I move-result v2 sub-int/2addr v1, v2 .line 50 invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMaxWidth(I)V .line 51 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; check-cast v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg; iget-object v1, v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;->nick:Ljava/lang/String; invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v1 if-eqz v1, :cond_0 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; check-cast v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg; iget-wide v1, v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;->sns_id:J invoke-static {v1, v2}, Lcom/moji/newliveview/base/utils/GlobalUtils;->a(J)Ljava/lang/String; move-result-object v1 goto :goto_0 :cond_0 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; check-cast v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg; iget-object v1, v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;->nick:Ljava/lang/String; :goto_0 invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V .line 53 sget v0, Lcom/moji/user/R$id;->tv_time:I invoke-virtual {p1, v0}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->c(I)Landroid/view/View; move-result-object v0 check-cast v0, Landroid/widget/TextView; .line 54 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; check-cast v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg; iget-wide v1, v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;->create_time:J const-wide/16 v3, 0x0 cmp-long v5, v1, v3 if-nez v5, :cond_1 const-string v1, "" goto :goto_1 :cond_1 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; check-cast v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg; iget-wide v1, v1, Lcom/moji/http/message/bean/AttentionMsgResp$AttentionMsg;->create_time:J invoke-static {v1, v2}, Lcom/moji/mjweather/ipc/utils/DateUtils;->a(J)Ljava/lang/String; move-result-object v1 :goto_1 invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V .line 56 invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->z()Landroid/view/View; move-result-object v0 invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V .line 57 invoke-virtual {p1}, Lcom/moji/newliveview/dynamic/base/CustomViewHolder;->z()Landroid/view/View; move-result-object p1 invoke-virtual {p1, p0}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V .line 58 invoke-virtual {p2, p0}, Lcom/moji/imageview/CertificateRoundImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V return-void .end method .method public onClick(Landroid/view/View;)V .locals 2 .line 69 invoke-virtual {p1}, Landroid/view/View;->getId()I move-result p1 sget v0, Lcom/moji/user/R$id;->iv_face:I if-ne p1, v0, :cond_0 .line 70 iget-object p1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->a:Lcom/moji/user/message/IMsgDetailCallBack; const/4 v0, 0x1 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; invoke-interface {p1, v0, v1}, Lcom/moji/user/message/IMsgDetailCallBack;->a(ILjava/lang/Object;)V goto :goto_0 .line 72 :cond_0 iget-object p1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->a:Lcom/moji/user/message/IMsgDetailCallBack; const/4 v0, 0x0 iget-object v1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->c:Ljava/lang/Object; invoke-interface {p1, v0, v1}, Lcom/moji/user/message/IMsgDetailCallBack;->a(ILjava/lang/Object;)V :goto_0 return-void .end method .method public onLongClick(Landroid/view/View;)Z .locals 0 .line 63 iget-object p1, p0, Lcom/moji/user/message/cell/AttentionMsgCell;->a:Lcom/moji/user/message/IMsgDetailCallBack; invoke-interface {p1, p0}, Lcom/moji/user/message/IMsgDetailCallBack;->a(Lcom/moji/newliveview/dynamic/base/BaseCell;)V const/4 p1, 0x1 return p1 .end method