今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

245 lines
7.5 KiB

.class Lcom/viatech/community/UserFollowActivity$4;
.super Ljava/lang/Object;
.source "UserFollowActivity.java"
# interfaces
.implements Landroid/text/TextWatcher;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/community/UserFollowActivity;->c()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/viatech/community/UserFollowActivity;
# direct methods
.method constructor <init>(Lcom/viatech/community/UserFollowActivity;)V
.locals 0
.prologue
.line 158
iput-object p1, p0, Lcom/viatech/community/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-direct {p0}, Ljava/lang/Object;-><init>()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/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->e(Lcom/viatech/community/UserFollowActivity;)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/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v1}, Lcom/viatech/community/UserFollowActivity;->e(Lcom/viatech/community/UserFollowActivity;)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/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->f(Lcom/viatech/community/UserFollowActivity;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->clear()V
.line 174
iget-object v0, p0, Lcom/viatech/community/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->e(Lcom/viatech/community/UserFollowActivity;)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/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->g(Lcom/viatech/community/UserFollowActivity;)Lcom/viatech/community/adapter/UserFollowAdapter;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v1}, Lcom/viatech/community/UserFollowActivity;->b(Lcom/viatech/community/UserFollowActivity;)Ljava/util/List;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/UserFollowAdapter;->a(Ljava/util/List;)V
.line 177
iget-object v0, p0, Lcom/viatech/community/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->g(Lcom/viatech/community/UserFollowActivity;)Lcom/viatech/community/adapter/UserFollowAdapter;
move-result-object v0
invoke-virtual {v0}, Lcom/viatech/community/adapter/UserFollowAdapter;->notifyDataSetChanged()V
.line 187
:goto_0
iget-object v0, p0, Lcom/viatech/community/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->c(Lcom/viatech/community/UserFollowActivity;)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/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->b(Lcom/viatech/community/UserFollowActivity;)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/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v3}, Lcom/viatech/community/UserFollowActivity;->f(Lcom/viatech/community/UserFollowActivity;)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/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->g(Lcom/viatech/community/UserFollowActivity;)Lcom/viatech/community/adapter/UserFollowAdapter;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v1}, Lcom/viatech/community/UserFollowActivity;->f(Lcom/viatech/community/UserFollowActivity;)Ljava/util/List;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/UserFollowAdapter;->a(Ljava/util/List;)V
.line 185
iget-object v0, p0, Lcom/viatech/community/UserFollowActivity$4;->a:Lcom/viatech/community/UserFollowActivity;
invoke-static {v0}, Lcom/viatech/community/UserFollowActivity;->g(Lcom/viatech/community/UserFollowActivity;)Lcom/viatech/community/adapter/UserFollowAdapter;
move-result-object v0
invoke-virtual {v0}, Lcom/viatech/community/adapter/UserFollowAdapter;->notifyDataSetChanged()V
goto :goto_0
.end method