EmojiView$SearchField$2.smali

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

# interfaces
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/EmojiView$SearchField;-><init>(Lim/tpelyyftgw/ui/components/EmojiView;Landroid/content/Context;I)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/EmojiView$SearchField;

.field final synthetic val$this$0:Lim/tpelyyftgw/ui/components/EmojiView;

.field final synthetic val$type:I


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

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/ui/components/EmojiView$SearchField;Lim/tpelyyftgw/ui/components/EmojiView;I)V
    .registers 4
    .param p1, "this$1"    # Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    .line 442
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    iput-object p2, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->val$this$0:Lim/tpelyyftgw/ui/components/EmojiView;

    iput p3, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->val$type:I

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

    # getter for: Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->access$900(Lim/tpelyyftgw/ui/components/EmojiView$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, 0x0

    const/4 v2, 0x1

    if-lez v0, :cond_10

    const/4 v0, 0x1

    goto :goto_11

    :cond_10
    const/4 v0, 0x0

    .line 456
    .local v0, "show":Z
    :goto_11
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->access$1200(Lim/tpelyyftgw/ui/components/EmojiView$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

    const/4 v1, 0x1

    .line 457
    .local v1, "showed":Z
    :cond_21
    if-eq v0, v1, :cond_59

    .line 458
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->clearSearchImageView:Landroid/widget/ImageView;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->access$1200(Lim/tpelyyftgw/ui/components/EmojiView$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_33

    const/high16 v4, 0x3f800000    # 1.0f

    .line 459
    :cond_33
    invoke-virtual {v3, v4}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v3

    const-wide/16 v6, 0x96

    .line 460
    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_45

    const/high16 v6, 0x3f800000    # 1.0f

    goto :goto_48

    :cond_45
    const v6, 0x3dcccccd    # 0.1f

    .line 461
    :goto_48
    invoke-virtual {v3, v6}, Landroid/view/ViewPropertyAnimator;->scaleX(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v3

    if-eqz v0, :cond_4f

    goto :goto_52

    :cond_4f
    const v5, 0x3dcccccd    # 0.1f

    .line 462
    :goto_52
    invoke-virtual {v3, v5}, Landroid/view/ViewPropertyAnimator;->scaleY(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v3

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

    .line 465
    :cond_59
    iget v3, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->val$type:I

    if-nez v3, :cond_77

    .line 466
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->this$0:Lim/tpelyyftgw/ui/components/EmojiView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/EmojiView;->access$1300(Lim/tpelyyftgw/ui/components/EmojiView;)Lim/tpelyyftgw/ui/components/EmojiView$StickersSearchGridAdapter;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->access$900(Lim/tpelyyftgw/ui/components/EmojiView$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

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EmojiView$StickersSearchGridAdapter;->search(Ljava/lang/String;)V

    goto :goto_af

    .line 467
    :cond_77
    if-ne v3, v2, :cond_93

    .line 468
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->this$0:Lim/tpelyyftgw/ui/components/EmojiView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/EmojiView;->access$1400(Lim/tpelyyftgw/ui/components/EmojiView;)Lim/tpelyyftgw/ui/components/EmojiView$EmojiSearchAdapter;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->access$900(Lim/tpelyyftgw/ui/components/EmojiView$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

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiSearchAdapter;->search(Ljava/lang/String;)V

    goto :goto_af

    .line 469
    :cond_93
    const/4 v2, 0x2

    if-ne v3, v2, :cond_af

    .line 470
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    iget-object v2, v2, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->this$0:Lim/tpelyyftgw/ui/components/EmojiView;

    invoke-static {v2}, Lim/tpelyyftgw/ui/components/EmojiView;->access$300(Lim/tpelyyftgw/ui/components/EmojiView;)Lim/tpelyyftgw/ui/components/EmojiView$GifSearchAdapter;

    move-result-object v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/EmojiView$SearchField$2;->this$1:Lim/tpelyyftgw/ui/components/EmojiView$SearchField;

    # getter for: Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->searchEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/EmojiView$SearchField;->access$900(Lim/tpelyyftgw/ui/components/EmojiView$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

    invoke-virtual {v2, v3}, Lim/tpelyyftgw/ui/components/EmojiView$GifSearchAdapter;->search(Ljava/lang/String;)V

    .line 472
    :cond_af
    :goto_af
    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 446
    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 451
    return-void
.end method