ThemeEditorView$EditorAlert$SearchField$2.smali

.class Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;
.super Ljava/lang/Object;
.source "ThemeEditorView.java"

# interfaces
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;-><init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

.field final synthetic val$this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)V
    .registers 3
    .param p1, "this$2"    # Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    .line 210
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iput-object p2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->val$this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    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 223
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->access$200(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$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 224
    .local v0, "show":Z
    :goto_11
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->access$300(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$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 225
    .local v1, "showed":Z
    :goto_22
    if-eq v0, v1, :cond_5a

    .line 226
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->access$300(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$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 227
    :cond_34
    invoke-virtual {v3, v4}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v3

    const-wide/16 v6, 0x96

    .line 228
    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 229
    :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 230
    :goto_53
    invoke-virtual {v3, v5}, Landroid/view/ViewPropertyAnimator;->scaleY(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v3

    .line 231
    invoke-virtual {v3}, Landroid/view/ViewPropertyAnimator;->start()V

    .line 233
    :cond_5a
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->access$200(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$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 234
    .local v3, "text":Ljava/lang/String;
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v4

    if-eqz v4, :cond_8d

    .line 235
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$400(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/EmptyTextProgressView;

    move-result-object v2

    if-eqz v2, :cond_f6

    .line 236
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$400(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)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 239
    :cond_8d
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v4, v4, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)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/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v5, v5, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$500(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ListAdapter;

    move-result-object v5

    if-eq v4, v5, :cond_f6

    .line 240
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v4, v4, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v4}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$600(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)I

    move-result v4

    .line 241
    .local v4, "top":I
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v5, v5, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$400(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)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 242
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v5, v5, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$400(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/EmptyTextProgressView;

    move-result-object v5

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/EmptyTextProgressView;->showTextView()V

    .line 243
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v5, v5, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$100(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v5

    iget-object v6, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v6, v6, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v6}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$500(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ListAdapter;

    move-result-object v6

    invoke-virtual {v5, v6}, Lim/tpelyyftgw/ui/components/RecyclerListView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 244
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v5, v5, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$500(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ListAdapter;

    move-result-object v5

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$ListAdapter;->notifyDataSetChanged()V

    .line 245
    if-lez v4, :cond_f6

    .line 246
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v5, v5, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v5}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$700(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Landroidx/recyclerview/widget/LinearLayoutManager;

    move-result-object v5

    neg-int v6, v4

    invoke-virtual {v5, v2, v6}, Landroidx/recyclerview/widget/LinearLayoutManager;->scrollToPositionWithOffset(II)V

    .line 250
    .end local v4    # "top":I
    :cond_f6
    :goto_f6
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$800(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchAdapter;

    move-result-object v2

    if-eqz v2, :cond_10b

    .line 251
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField$2;->this$2:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchField;->this$1:Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;->access$800(Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert;)Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchAdapter;

    move-result-object v2

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/ThemeEditorView$EditorAlert$SearchAdapter;->searchDialogs(Ljava/lang/String;)V

    .line 253
    :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 214
    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 219
    return-void
.end method