.class Lcom/viatech/community/UserFanActivity$4; .super Ljava/lang/Object; .source "UserFanActivity.java" # interfaces .implements Landroid/text/TextWatcher; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/viatech/community/UserFanActivity;->c()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic a:Lcom/viatech/community/UserFanActivity; # direct methods .method constructor (Lcom/viatech/community/UserFanActivity;)V .locals 0 .prologue .line 158 iput-object p1, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public afterTextChanged(Landroid/text/Editable;)V .locals 0 .prologue .line 193 return-void .end method .method public beforeTextChanged(Ljava/lang/CharSequence;III)V .locals 0 .prologue .line 162 return-void .end method .method public onTextChanged(Ljava/lang/CharSequence;III)V .locals 4 .prologue .line 166 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->e(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/views/DrawableCenterEditText; move-result-object v0 invoke-virtual {v0}, Lcom/viatech/community/views/DrawableCenterEditText;->getSelectionStart()I move-result v0 add-int/lit8 v0, v0, -0x1 .line 167 if-lez v0, :cond_0 .line 168 invoke-interface {p1, v0}, Ljava/lang/CharSequence;->charAt(I)C move-result v1 invoke-static {v1}, Lcom/viatech/util/isEmojiUtil;->isEmojiCharacter(C)Z move-result v1 if-nez v1, :cond_0 .line 169 iget-object v1, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v1}, Lcom/viatech/community/UserFanActivity;->e(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/views/DrawableCenterEditText; move-result-object v1 invoke-virtual {v1}, Lcom/viatech/community/views/DrawableCenterEditText;->getText()Landroid/text/Editable; move-result-object v1 .line 170 add-int/lit8 v2, v0, 0x1 invoke-interface {v1, v0, v2}, Landroid/text/Editable;->delete(II)Landroid/text/Editable; .line 173 :cond_0 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->f(Lcom/viatech/community/UserFanActivity;)Ljava/util/List; move-result-object v0 invoke-interface {v0}, Ljava/util/List;->clear()V .line 174 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->e(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/views/DrawableCenterEditText; move-result-object v0 invoke-virtual {v0}, Lcom/viatech/community/views/DrawableCenterEditText;->getText()Landroid/text/Editable; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v1 .line 175 invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result v0 if-eqz v0, :cond_1 .line 176 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->g(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/adapter/UserFanAdapter; move-result-object v0 iget-object v1, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v1}, Lcom/viatech/community/UserFanActivity;->b(Lcom/viatech/community/UserFanActivity;)Ljava/util/List; move-result-object v1 invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/UserFanAdapter;->a(Ljava/util/List;)V .line 177 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->g(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/adapter/UserFanAdapter; move-result-object v0 invoke-virtual {v0}, Lcom/viatech/community/adapter/UserFanAdapter;->notifyDataSetChanged()V .line 187 :goto_0 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->c(Lcom/viatech/community/UserFanActivity;)Landroid/widget/RelativeLayout; move-result-object v0 const/16 v1, 0x8 invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V .line 188 return-void .line 179 :cond_1 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->b(Lcom/viatech/community/UserFanActivity;)Ljava/util/List; move-result-object v0 invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v2 :cond_2 :goto_1 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_3 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo; .line 180 iget-object v3, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserName:Ljava/lang/String; invoke-virtual {v3, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z move-result v3 if-eqz v3, :cond_2 .line 181 iget-object v3, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v3}, Lcom/viatech/community/UserFanActivity;->f(Lcom/viatech/community/UserFanActivity;)Ljava/util/List; move-result-object v3 invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z goto :goto_1 .line 184 :cond_3 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->g(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/adapter/UserFanAdapter; move-result-object v0 iget-object v1, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v1}, Lcom/viatech/community/UserFanActivity;->f(Lcom/viatech/community/UserFanActivity;)Ljava/util/List; move-result-object v1 invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/UserFanAdapter;->a(Ljava/util/List;)V .line 185 iget-object v0, p0, Lcom/viatech/community/UserFanActivity$4;->a:Lcom/viatech/community/UserFanActivity; invoke-static {v0}, Lcom/viatech/community/UserFanActivity;->g(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/adapter/UserFanAdapter; move-result-object v0 invoke-virtual {v0}, Lcom/viatech/community/adapter/UserFanAdapter;->notifyDataSetChanged()V goto :goto_0 .end method