ShareAlert$SearchField$2.smali
.class Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;
.super Ljava/lang/Object;
.source "ShareAlert.java"
# interfaces
.implements Landroid/text/TextWatcher;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;-><init>(Lim/tpelyyftgw/ui/components/ShareAlert;Landroid/content/Context;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
.field final synthetic val$this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;Lim/tpelyyftgw/ui/components/ShareAlert;)V
.registers 3
.param p1, "this$1" # Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
.line 167
iput-object p1, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iput-object p2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->val$this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
.registers 10
.param p1, "s" # Landroid/text/Editable;
.line 180
iget-object v0, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v0}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->access$200(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
move-result-object v0
invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->length()I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-lez v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
.line 181
.local v0, "show":Z
:goto_11
iget-object v3, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->access$300(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)Landroid/widget/ImageView;
move-result-object v3
invoke-virtual {v3}, Landroid/widget/ImageView;->getAlpha()F
move-result v3
const/4 v4, 0x0
cmpl-float v3, v3, v4
if-eqz v3, :cond_21
goto :goto_22
:cond_21
const/4 v1, 0x0
.line 182
.local v1, "showed":Z
:goto_22
if-eq v0, v1, :cond_5a
.line 183
iget-object v3, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->access$300(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)Landroid/widget/ImageView;
move-result-object v3
invoke-virtual {v3}, Landroid/widget/ImageView;->animate()Landroid/view/ViewPropertyAnimator;
move-result-object v3
const/high16 v5, 0x3f800000 # 1.0f
if-eqz v0, :cond_34
const/high16 v4, 0x3f800000 # 1.0f
.line 184
:cond_34
invoke-virtual {v3, v4}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;
move-result-object v3
const-wide/16 v6, 0x96
.line 185
invoke-virtual {v3, v6, v7}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;
move-result-object v3
const v4, 0x3dcccccd # 0.1f
if-eqz v0, :cond_46
const/high16 v6, 0x3f800000 # 1.0f
goto :goto_49
:cond_46
const v6, 0x3dcccccd # 0.1f
.line 186
:goto_49
invoke-virtual {v3, v6}, Landroid/view/ViewPropertyAnimator;->scaleX(F)Landroid/view/ViewPropertyAnimator;
move-result-object v3
if-eqz v0, :cond_50
goto :goto_53
:cond_50
const v5, 0x3dcccccd # 0.1f
.line 187
:goto_53
invoke-virtual {v3, v5}, Landroid/view/ViewPropertyAnimator;->scaleY(F)Landroid/view/ViewPropertyAnimator;
move-result-object v3
.line 188
invoke-virtual {v3}, Landroid/view/ViewPropertyAnimator;->start()V
.line 190
:cond_5a
iget-object v3, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
# getter for: Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
invoke-static {v3}, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->access$200(Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
move-result-object v3
invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getText()Landroid/text/Editable;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v3
.line 191
.local v3, "text":Ljava/lang/String;
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v4
if-eqz v4, :cond_8d
.line 192
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v2, v2, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$400(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EmptyTextProgressView;
move-result-object v2
if-eqz v2, :cond_f6
.line 193
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v2, v2, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$400(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EmptyTextProgressView;
move-result-object v2
const v4, 0x7f0f098d
const-string v5, "NoResult"
invoke-static {v5, v4}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v4
invoke-virtual {v2, v4}, Lim/tpelyyftgw/ui/components/EmptyTextProgressView;->setText(Ljava/lang/String;)V
goto :goto_f6
.line 196
:cond_8d
iget-object v4, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v4, v4, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$100(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v4
invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getAdapter()Landroidx/recyclerview/widget/RecyclerView$Adapter;
move-result-object v4
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v5, v5, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$500(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/ShareAlert$ShareDialogsAdapter;
move-result-object v5
if-eq v4, v5, :cond_f6
.line 197
iget-object v4, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v4, v4, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v4}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$600(Lim/tpelyyftgw/ui/components/ShareAlert;)I
move-result v4
.line 198
.local v4, "top":I
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v5, v5, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$400(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EmptyTextProgressView;
move-result-object v5
const v6, 0x7f0f095f
const-string v7, "NoChats"
invoke-static {v7, v6}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v6
invoke-virtual {v5, v6}, Lim/tpelyyftgw/ui/components/EmptyTextProgressView;->setText(Ljava/lang/String;)V
.line 199
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v5, v5, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$400(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/EmptyTextProgressView;
move-result-object v5
invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/EmptyTextProgressView;->showTextView()V
.line 200
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v5, v5, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$100(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;
move-result-object v5
iget-object v6, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v6, v6, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v6}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$500(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/ShareAlert$ShareDialogsAdapter;
move-result-object v6
invoke-virtual {v5, v6}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
.line 201
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v5, v5, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$500(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/ShareAlert$ShareDialogsAdapter;
move-result-object v5
invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/ShareAlert$ShareDialogsAdapter;->notifyDataSetChanged()V
.line 202
if-lez v4, :cond_f6
.line 203
iget-object v5, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v5, v5, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v5}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$700(Lim/tpelyyftgw/ui/components/ShareAlert;)Landroidx/recyclerview/widget/GridLayoutManager;
move-result-object v5
neg-int v6, v4
invoke-virtual {v5, v2, v6}, Landroidx/recyclerview/widget/GridLayoutManager;->scrollToPositionWithOffset(II)V
.line 207
.end local v4 # "top":I
:cond_f6
:goto_f6
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v2, v2, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$800(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/ShareAlert$ShareSearchAdapter;
move-result-object v2
if-eqz v2, :cond_10b
.line 208
iget-object v2, p0, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;
iget-object v2, v2, Lim/tpelyyftgw/ui/components/ShareAlert$SearchField;->this$0:Lim/tpelyyftgw/ui/components/ShareAlert;
invoke-static {v2}, Lim/tpelyyftgw/ui/components/ShareAlert;->access$800(Lim/tpelyyftgw/ui/components/ShareAlert;)Lim/tpelyyftgw/ui/components/ShareAlert$ShareSearchAdapter;
move-result-object v2
invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/ShareAlert$ShareSearchAdapter;->searchDialogs(Ljava/lang/String;)V
.line 210
:cond_10b
return-void
.end method
.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
.registers 5
.param p1, "s" # Ljava/lang/CharSequence;
.param p2, "start" # I
.param p3, "count" # I
.param p4, "after" # I
.line 171
return-void
.end method
.method public onTextChanged(Ljava/lang/CharSequence;III)V
.registers 5
.param p1, "s" # Ljava/lang/CharSequence;
.param p2, "start" # I
.param p3, "before" # I
.param p4, "count" # I
.line 176
return-void
.end method