SearchView.smali

.class public Lim/tpelyyftgw/ui/components/SearchView;
.super Landroid/widget/RelativeLayout;
.source "SearchView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;,
        Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;,
        Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;
    }
.end annotation


# instance fields
.field private clearImgX:Landroid/graphics/drawable/Drawable;

.field private enableAnimation:Z

.field private iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

.field private isSearching:Z

.field private mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

.field private mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

.field private mEditTextOffsetWidth:I

.field private mHint:Ljava/lang/String;

.field private mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

.field private mPadding:I


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

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .line 102
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lim/tpelyyftgw/ui/components/SearchView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 103
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .line 106
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lim/tpelyyftgw/ui/components/SearchView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 107
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyleAttr"    # I

    .line 111
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 97
    const/4 v0, 0x0

    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->isSearching:Z

    .line 112
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->init()V

    .line 113
    return-void
.end method

.method static synthetic access$000(Lim/tpelyyftgw/ui/components/SearchView;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/SearchView;

    .line 41
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHint:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$100(Lim/tpelyyftgw/ui/components/SearchView;)Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/SearchView;

    .line 41
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    return-object v0
.end method

.method static synthetic access$200(Lim/tpelyyftgw/ui/components/SearchView;)V
    .registers 1
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/SearchView;

    .line 41
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->manageClearXButton()V

    return-void
.end method

.method static synthetic access$300(Lim/tpelyyftgw/ui/components/SearchView;)Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/SearchView;

    .line 41
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    return-object v0
.end method

.method static synthetic access$400(Lim/tpelyyftgw/ui/components/SearchView;)I
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/SearchView;

    .line 41
    iget v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditTextOffsetWidth:I

    return v0
.end method

.method static synthetic access$500(Lim/tpelyyftgw/ui/components/SearchView;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/SearchView;

    .line 41
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    return-object v0
.end method

.method private addClearX()V
    .registers 7

    .line 379
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;

    move-result-object v1

    const/4 v2, 0x0

    aget-object v1, v1, v2

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;

    move-result-object v2

    const/4 v3, 0x1

    aget-object v2, v2, v3

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->clearImgX:Landroid/graphics/drawable/Drawable;

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    .line 380
    invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;

    move-result-object v4

    const/4 v5, 0x3

    aget-object v4, v4, v5

    .line 379
    invoke-virtual {v0, v1, v2, v3, v4}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 381
    return-void
.end method

.method private dip2px(F)I
    .registers 5
    .param p1, "dp"    # F

    .line 471
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    .line 472
    .local v0, "scala":F
    mul-float v1, p1, v0

    const/high16 v2, 0x3f000000    # 0.5f

    add-float/2addr v1, v2

    float-to-int v1, v1

    return v1
.end method

.method private focused(Ljava/lang/String;)V
    .registers 11
    .param p1, "value"    # Ljava/lang/String;

    .line 400
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->getTranslationX()F

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    cmpl-float v0, v0, v2

    if-eqz v0, :cond_63

    .line 401
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    const/4 v3, 0x2

    new-array v3, v3, [F

    const/4 v4, 0x0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->getTranslationX()F

    move-result v5

    aput v5, v3, v4

    aput v2, v3, v1

    const-string v4, "translationX"

    invoke-static {v0, v4, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 402
    .local v0, "animator":Landroid/animation/ObjectAnimator;
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getWidth()I

    move-result v3

    .line 403
    .local v3, "width":I
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v4}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->getWidth()I

    move-result v4

    sub-int v4, v3, v4

    .line 404
    .local v4, "mEditTextRealWidth":I
    sub-int v5, v3, v4

    iput v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditTextOffsetWidth:I

    .line 405
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v5

    check-cast v5, Landroid/widget/RelativeLayout$LayoutParams;

    .line 406
    .local v5, "params":Landroid/widget/RelativeLayout$LayoutParams;
    new-instance v6, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v6}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v6}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 407
    new-instance v6, Lim/tpelyyftgw/ui/components/SearchView$2;

    invoke-direct {v6, p0, v5, v3}, Lim/tpelyyftgw/ui/components/SearchView$2;-><init>(Lim/tpelyyftgw/ui/components/SearchView;Landroid/widget/RelativeLayout$LayoutParams;I)V

    invoke-virtual {v0, v6}, Landroid/animation/ObjectAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 414
    iget-boolean v6, p0, Lim/tpelyyftgw/ui/components/SearchView;->enableAnimation:Z

    if-eqz v6, :cond_52

    .line 415
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    goto :goto_63

    .line 417
    :cond_52
    int-to-float v6, v3

    const/high16 v7, 0x3f800000    # 1.0f

    iget v8, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditTextOffsetWidth:I

    int-to-float v8, v8

    mul-float v8, v8, v7

    sub-float/2addr v6, v8

    float-to-int v6, v6

    iput v6, v5, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    .line 418
    iget-object v6, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v6, v2}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setTranslationX(F)V

    .line 422
    .end local v0    # "animator":Landroid/animation/ObjectAnimator;
    .end local v3    # "width":I
    .end local v4    # "mEditTextRealWidth":I
    .end local v5    # "params":Landroid/widget/RelativeLayout$LayoutParams;
    :cond_63
    :goto_63
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_6e

    .line 423
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setText(Ljava/lang/CharSequence;)V

    .line 426
    :cond_6e
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/SearchView;->isSearching:Z

    .line 427
    return-void
.end method

.method private hiddenKeybord()V
    .registers 5

    .line 476
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "input_method"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    .line 477
    .local v0, "manager":Landroid/view/inputmethod/InputMethodManager;
    invoke-virtual {v0}, Landroid/view/inputmethod/InputMethodManager;->isActive()Z

    move-result v1

    .line 479
    .local v1, "isOpen":Z
    if-eqz v1, :cond_1f

    if-eqz v0, :cond_1f

    .line 480
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    const/4 v3, 0x2

    invoke-virtual {v0, v2, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    goto :goto_29

    .line 482
    :cond_1f
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/inputmethod/InputMethodManager;->showSoftInputFromInputMethod(Landroid/os/IBinder;I)V

    .line 484
    :goto_29
    return-void
.end method

.method private init()V
    .registers 14

    .line 118
    const v0, 0x7f060187

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/SearchView;->setBackgroundResource(I)V

    .line 119
    const/high16 v0, 0x41600000    # 14.0f

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    const/4 v3, 0x0

    invoke-virtual {p0, v1, v3, v2, v3}, Lim/tpelyyftgw/ui/components/SearchView;->setPadding(IIII)V

    .line 120
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/SearchView;->setEnableAnimation(Z)V

    .line 122
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v4, 0x7f0d1598

    invoke-static {v4}, Lnp/NPFog;->d(I)I

    move-result v4

    invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 123
    .local v2, "search":Landroid/graphics/drawable/Drawable;
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f061430

    invoke-static {v5}, Lnp/NPFog;->d(I)I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-static {v2, v4}, Lim/tpelyyftgw/messenger/utils/DrawableUtils;->tintDrawable(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 124
    invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v4

    invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v6

    invoke-virtual {v2, v3, v3, v4, v6}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 125
    const/high16 v4, 0x41200000    # 10.0f

    invoke-direct {p0, v4}, Lim/tpelyyftgw/ui/components/SearchView;->dip2px(F)I

    move-result v4

    iput v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mPadding:I

    .line 127
    new-instance v4, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getContext()Landroid/content/Context;

    move-result-object v6

    invoke-direct {v4, v6}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    .line 128
    const v6, 0x800b0

    invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setInputType(I)V

    .line 129
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v4, v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTextSize(F)V

    .line 130
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTextColor(I)V

    .line 131
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const/high16 v6, 0x41900000    # 18.0f

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    invoke-virtual {v4, v7}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorSize(I)V

    .line 132
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const v7, 0x3f333333    # 0.7f

    invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v7

    int-to-float v7, v7

    invoke-virtual {v4, v7}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorWidth(F)V

    .line 133
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const v7, -0x23100

    invoke-virtual {v4, v7}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCursorColor(I)V

    .line 134
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v4, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setSingleLine(Z)V

    .line 135
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const/16 v7, 0x10

    invoke-virtual {v4, v7}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setGravity(I)V

    .line 136
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const/4 v8, 0x3

    invoke-virtual {v4, v8}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setImeOptions(I)V

    .line 137
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    .line 138
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    const v9, 0x7f0615ac

    invoke-static {v9}, Lnp/NPFog;->d(I)I

    move-result v9

    invoke-virtual {v8, v9}, Landroid/content/res/Resources;->getColor(I)I

    move-result v8

    .line 139
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v10

    invoke-virtual {v10, v9}, Landroid/content/res/Resources;->getColor(I)I

    move-result v9

    .line 140
    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    int-to-float v6, v6

    .line 137
    invoke-static {v8, v9, v6}, Lim/tpelyyftgw/messenger/utils/DrawableUtils;->createLayerDrawable(IIF)Landroid/graphics/drawable/Drawable;

    move-result-object v6

    invoke-virtual {v4, v6}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 143
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const/high16 v6, 0x42200000    # 40.0f

    invoke-direct {p0, v6}, Lim/tpelyyftgw/ui/components/SearchView;->dip2px(F)I

    move-result v8

    invoke-virtual {v4, v8}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setMinHeight(I)V

    .line 144
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v2}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v8

    const/high16 v9, 0x41700000    # 15.0f

    invoke-static {v9}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v9

    add-int/2addr v8, v9

    const/high16 v9, 0x41e00000    # 28.0f

    invoke-static {v9}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v9

    invoke-virtual {v4, v8, v3, v9, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setPadding(IIII)V

    .line 146
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const/high16 v8, 0x40c00000    # 6.0f

    invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v9

    invoke-virtual {v4, v9}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCompoundDrawablePadding(I)V

    .line 147
    new-instance v4, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v6

    const/4 v9, -0x1

    invoke-direct {v4, v9, v6}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 148
    .local v4, "layoutParams":Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v6, 0xf

    invoke-virtual {v4, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 149
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {p0, v10, v4}, Lim/tpelyyftgw/ui/components/SearchView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 152
    new-instance v10, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getContext()Landroid/content/Context;

    move-result-object v11

    invoke-direct {v10, p0, v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;-><init>(Lim/tpelyyftgw/ui/components/SearchView;Landroid/content/Context;)V

    iput-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    .line 153
    const-string v11, ""

    invoke-virtual {v10, v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setText(Ljava/lang/CharSequence;)V

    .line 154
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    const-string v11, "Search"

    const v12, 0x7f0f0ec9

    invoke-static {v11, v12}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setHint(Ljava/lang/CharSequence;)V

    .line 155
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v11

    invoke-virtual {v11, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v11

    invoke-virtual {v10, v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setHintTextColor(I)V

    .line 156
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {v10, v0}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setTextSize(F)V

    .line 157
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    const/16 v11, 0x11

    invoke-virtual {v10, v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setGravity(I)V

    .line 158
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {v10, v3}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setBackgroundColor(I)V

    .line 159
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    const/high16 v11, 0x41400000    # 12.0f

    invoke-static {v11}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v12

    invoke-static {v11}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v11

    invoke-virtual {v10, v12, v3, v11, v3}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setPadding(IIII)V

    .line 160
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    const/4 v11, 0x0

    invoke-virtual {v10, v2, v11, v11, v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 161
    iget-object v10, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v8

    invoke-virtual {v10, v8}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setCompoundDrawablePadding(I)V

    .line 162
    iget-object v8, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {v8, v3}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setEnabled(Z)V

    .line 164
    new-instance v8, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v10, -0x2

    invoke-direct {v8, v10, v10}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 165
    .local v8, "params":Landroid/widget/RelativeLayout$LayoutParams;
    invoke-virtual {v8, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 166
    iget-object v11, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {p0, v11, v8}, Lim/tpelyyftgw/ui/components/SearchView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 168
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->isInEditMode()Z

    move-result v11

    if-nez v11, :cond_192

    iget-object v11, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->getHint()Ljava/lang/CharSequence;

    move-result-object v11

    invoke-static {v11}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_192

    .line 169
    iget-object v11, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {v11}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->getHint()Ljava/lang/CharSequence;

    move-result-object v11

    invoke-interface {v11}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v11

    iput-object v11, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHint:Ljava/lang/String;

    .line 173
    :cond_192
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v11

    const v12, 0x7f081591

    invoke-static/range {v12 .. v12}, Lnp/NPFog;->d(I)I

    move-result v12

    invoke-virtual {v11, v12}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v11

    iput-object v11, p0, Lim/tpelyyftgw/ui/components/SearchView;->clearImgX:Landroid/graphics/drawable/Drawable;

    .line 174
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v12

    invoke-virtual {v12, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v5

    invoke-static {v11, v5}, Lim/tpelyyftgw/messenger/utils/DrawableUtils;->tintDrawable(Landroid/graphics/drawable/Drawable;I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    iput-object v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->clearImgX:Landroid/graphics/drawable/Drawable;

    .line 175
    invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v11

    iget-object v12, p0, Lim/tpelyyftgw/ui/components/SearchView;->clearImgX:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v12}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v12

    invoke-virtual {v5, v3, v3, v11, v12}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 177
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->manageClearXButton()V

    .line 178
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    new-instance v11, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$c-EIMrfg05zXFHTUFoW3W5wIUTY;

    invoke-direct {v11, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$c-EIMrfg05zXFHTUFoW3W5wIUTY;-><init>(Lim/tpelyyftgw/ui/components/SearchView;)V

    invoke-virtual {v5, v11}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 196
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    new-instance v11, Lim/tpelyyftgw/ui/components/SearchView$1;

    invoke-direct {v11, p0}, Lim/tpelyyftgw/ui/components/SearchView$1;-><init>(Lim/tpelyyftgw/ui/components/SearchView;)V

    invoke-virtual {v5, v11}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 218
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    new-instance v11, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$m0xcXweKBGKh78kqn-RIwMF01tI;

    invoke-direct {v11, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$m0xcXweKBGKh78kqn-RIwMF01tI;-><init>(Lim/tpelyyftgw/ui/components/SearchView;)V

    invoke-virtual {v5, v11}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 231
    new-instance v5, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getContext()Landroid/content/Context;

    move-result-object v11

    invoke-direct {v5, p0, v11}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;-><init>(Lim/tpelyyftgw/ui/components/SearchView;Landroid/content/Context;)V

    iput-object v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    .line 232
    iget v11, p0, Lim/tpelyyftgw/ui/components/SearchView;->mPadding:I

    invoke-virtual {v5, v11, v3, v11, v3}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setPadding(IIII)V

    .line 233
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    const v5, 0x7f0f02f7

    const-string v11, "Cancel"

    invoke-static {v11, v5}, Lim/tpelyyftgw/messenger/LocaleController;->getString(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setText(Ljava/lang/CharSequence;)V

    .line 234
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v3, v7}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setGravity(I)V

    .line 235
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    const/4 v5, 0x2

    invoke-virtual {v3, v5, v0}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setTextSize(IF)V

    .line 236
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v5, 0x7f06140d

    invoke-static {v5}, Lnp/NPFog;->d(I)I

    move-result v5

    invoke-virtual {v3, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v3

    invoke-virtual {v0, v3}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setTextColor(I)V

    .line 237
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->isInEditMode()Z

    move-result v0

    if-nez v0, :cond_230

    .line 238
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/SearchView;->addClickEffect(Landroid/view/View;)Landroid/view/View;

    move-result-object v0

    new-instance v3, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$EX12COJ221tA2oa8Pfp6Q-iukQM;

    invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$EX12COJ221tA2oa8Pfp6Q-iukQM;-><init>(Lim/tpelyyftgw/ui/components/SearchView;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 241
    :cond_230
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v10, v9}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 242
    .local v0, "params2":Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v3, 0xb

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 243
    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 244
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {p0, v3, v0}, Lim/tpelyyftgw/ui/components/SearchView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 246
    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/SearchView;->setFocusable(Z)V

    .line 247
    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/SearchView;->setFocusableInTouchMode(Z)V

    .line 248
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->requestFocusFromTouch()Z

    .line 250
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    new-instance v3, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$JNExg-KJ8eYnFbgcg5EXdA_5VJ8;

    invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$JNExg-KJ8eYnFbgcg5EXdA_5VJ8;-><init>(Lim/tpelyyftgw/ui/components/SearchView;)V

    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 273
    return-void
.end method

.method static synthetic lambda$addClickEffect$4(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 6
    .param p0, "v"    # Landroid/view/View;
    .param p1, "event"    # Landroid/view/MotionEvent;

    .line 346
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const/4 v1, 0x2

    const-string v2, "alpha"

    if-eqz v0, :cond_1d

    const/4 v3, 0x1

    if-eq v0, v3, :cond_10

    const/4 v3, 0x3

    if-eq v0, v3, :cond_10

    goto :goto_29

    .line 349
    :cond_10
    new-array v0, v1, [F

    fill-array-data v0, :array_2c

    invoke-static {p0, v2, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 350
    goto :goto_29

    .line 352
    :cond_1d
    new-array v0, v1, [F

    fill-array-data v0, :array_34

    invoke-static {p0, v2, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 355
    :goto_29
    const/4 v0, 0x0

    return v0

    nop

    :array_2c
    .array-data 4
        0x3e99999a    # 0.3f
        0x3f800000    # 1.0f
    .end array-data

    :array_34
    .array-data 4
        0x3f800000    # 1.0f
        0x3e99999a    # 0.3f
    .end array-data
.end method

.method private manageClearXButton()V
    .registers 2

    .line 368
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_14

    .line 369
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->rmClearX()V

    goto :goto_17

    .line 371
    :cond_14
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->addClearX()V

    .line 373
    :goto_17
    return-void
.end method

.method private rmClearX()V
    .registers 6

    .line 387
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;

    move-result-object v1

    const/4 v2, 0x0

    aget-object v1, v1, v2

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;

    move-result-object v2

    const/4 v3, 0x1

    aget-object v2, v2, v3

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;

    move-result-object v3

    const/4 v4, 0x3

    aget-object v3, v3, v4

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v2, v4, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    .line 389
    return-void
.end method


# virtual methods
.method public addClickEffect(Landroid/view/View;)Landroid/view/View;
    .registers 3
    .param p1, "view"    # Landroid/view/View;

    .line 345
    sget-object v0, Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$pMxn7wkGgwp396HmbNX9tUw6NO8;->INSTANCE:Lim/tpelyyftgw/ui/components/-$$Lambda$SearchView$pMxn7wkGgwp396HmbNX9tUw6NO8;

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 357
    return-object p1
.end method

.method public cancelFocus()V
    .registers 9

    .line 431
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->isSearching:Z

    if-eqz v0, :cond_b

    .line 432
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setText(Ljava/lang/CharSequence;)V

    .line 434
    :cond_b
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->getTranslationX()F

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    cmpl-float v0, v0, v2

    if-nez v0, :cond_74

    .line 436
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    const/4 v3, 0x2

    new-array v3, v3, [F

    aput v2, v3, v1

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->getWidth()I

    move-result v2

    int-to-float v2, v2

    const/4 v4, 0x1

    aput v2, v3, v4

    const-string v2, "translationX"

    invoke-static {v0, v2, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 437
    .local v0, "objectAnimator":Landroid/animation/ObjectAnimator;
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getWidth()I

    move-result v2

    .line 438
    .local v2, "mWidth":I
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    check-cast v3, Landroid/widget/RelativeLayout$LayoutParams;

    .line 439
    .local v3, "params":Landroid/widget/RelativeLayout$LayoutParams;
    new-instance v5, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v5}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v5}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 440
    new-instance v5, Lim/tpelyyftgw/ui/components/SearchView$3;

    invoke-direct {v5, p0, v3, v2}, Lim/tpelyyftgw/ui/components/SearchView$3;-><init>(Lim/tpelyyftgw/ui/components/SearchView;Landroid/widget/RelativeLayout$LayoutParams;I)V

    invoke-virtual {v0, v5}, Landroid/animation/ObjectAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 448
    iget-boolean v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->enableAnimation:Z

    if-eqz v5, :cond_52

    .line 449
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    goto :goto_68

    .line 451
    :cond_52
    iget-object v5, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v5}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->getWidth()I

    move-result v6

    int-to-float v6, v6

    invoke-virtual {v5, v6}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setTranslationX(F)V

    .line 452
    int-to-float v5, v2

    const/high16 v6, 0x3f800000    # 1.0f

    iget v7, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditTextOffsetWidth:I

    int-to-float v7, v7

    mul-float v7, v7, v6

    add-float/2addr v5, v7

    float-to-int v5, v5

    iput v5, v3, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    .line 455
    :goto_68
    invoke-virtual {p0, v4}, Lim/tpelyyftgw/ui/components/SearchView;->setFocusable(Z)V

    .line 456
    invoke-virtual {p0, v4}, Lim/tpelyyftgw/ui/components/SearchView;->setFocusableInTouchMode(Z)V

    .line 457
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->requestFocus()Z

    .line 458
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->hiddenKeybord()V

    .line 460
    .end local v0    # "objectAnimator":Landroid/animation/ObjectAnimator;
    .end local v2    # "mWidth":I
    .end local v3    # "params":Landroid/widget/RelativeLayout$LayoutParams;
    :cond_74
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/SearchView;->isSearching:Z

    .line 461
    return-void
.end method

.method public closeSearchField()V
    .registers 2

    .line 317
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/components/SearchView;->closeSearchField(Z)V

    .line 318
    return-void
.end method

.method public closeSearchField(Z)V
    .registers 2
    .param p1, "animation"    # Z

    .line 321
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/SearchView;->enableAnimation:Z

    .line 322
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->cancelFocus()V

    .line 323
    return-void
.end method

.method public getEditor()Landroid/widget/EditText;
    .registers 2

    .line 303
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    return-object v0
.end method

.method public isSearchFieldVisible()Z
    .registers 2

    .line 313
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->isFocused()Z

    move-result v0

    if-nez v0, :cond_f

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->isSearching:Z

    if-eqz v0, :cond_d

    goto :goto_f

    :cond_d
    const/4 v0, 0x0

    goto :goto_10

    :cond_f
    :goto_f
    const/4 v0, 0x1

    :goto_10
    return v0
.end method

.method public synthetic lambda$init$0$SearchView(Landroid/view/View;Z)V
    .registers 5
    .param p1, "view"    # Landroid/view/View;
    .param p2, "hasFocus"    # Z

    .line 179
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    if-eqz v0, :cond_7

    .line 180
    invoke-interface {v0, p2}, Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;->onStart(Z)V

    .line 182
    :cond_7
    if-eqz p2, :cond_1b

    .line 183
    const-string v0, ""

    invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/SearchView;->focused(Ljava/lang/String;)V

    .line 184
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    if-eqz v1, :cond_2d

    .line 185
    invoke-interface {v1, v0}, Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;->onTextChange(Ljava/lang/String;)V

    .line 186
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;->onSearchExpand()V

    goto :goto_2d

    .line 189
    :cond_1b
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->cancelFocus()V

    .line 190
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    if-eqz v0, :cond_2d

    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;->canCollapseSearch()Z

    move-result v0

    if-eqz v0, :cond_2d

    .line 191
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;->onSearchCollapse()V

    .line 194
    :cond_2d
    :goto_2d
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->manageClearXButton()V

    .line 195
    return-void
.end method

.method public synthetic lambda$init$1$SearchView(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z
    .registers 6
    .param p1, "view"    # Landroid/widget/TextView;
    .param p2, "actionId"    # I
    .param p3, "event"    # Landroid/view/KeyEvent;

    .line 219
    const/4 v0, 0x3

    if-ne p2, v0, :cond_1a

    .line 221
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    if-eqz v0, :cond_18

    .line 222
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;->onActionSearch(Ljava/lang/String;)V

    .line 224
    :cond_18
    const/4 v0, 0x1

    return v0

    .line 226
    :cond_1a
    const/4 v0, 0x0

    return v0
.end method

.method public synthetic lambda$init$2$SearchView(Landroid/view/View;)V
    .registers 2
    .param p1, "view"    # Landroid/view/View;

    .line 238
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->cancelFocus()V

    return-void
.end method

.method public synthetic lambda$init$3$SearchView(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 7
    .param p1, "view"    # Landroid/view/View;
    .param p2, "event"    # Landroid/view/MotionEvent;

    .line 251
    const/4 v0, 0x0

    .line 252
    .local v0, "result":Z
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    if-eqz v1, :cond_8

    goto :goto_4f

    .line 254
    :cond_8
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getWidth()I

    move-result v2

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->getPaddingRight()I

    move-result v3

    sub-int/2addr v2, v3

    iget-object v3, p0, Lim/tpelyyftgw/ui/components/SearchView;->clearImgX:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v3

    sub-int/2addr v2, v3

    const/high16 v3, 0x40a00000    # 5.0f

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    sub-int/2addr v2, v3

    int-to-float v2, v2

    cmpl-float v1, v1, v2

    if-lez v1, :cond_4e

    .line 255
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const-string v2, ""

    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setText(Ljava/lang/CharSequence;)V

    .line 256
    invoke-direct {p0}, Lim/tpelyyftgw/ui/components/SearchView;->rmClearX()V

    .line 258
    iget-object v1, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->getTranslationX()F

    move-result v1

    const/4 v2, 0x0

    cmpl-float v1, v1, v2

    if-eqz v1, :cond_4c

    .line 259
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/SearchView;->setFocusable(Z)V

    .line 260
    invoke-virtual {p0, v1}, Lim/tpelyyftgw/ui/components/SearchView;->setFocusableInTouchMode(Z)V

    .line 261
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/SearchView;->requestFocusFromTouch()Z

    .line 262
    return v1

    .line 264
    :cond_4c
    const/4 v0, 0x1

    goto :goto_4f

    .line 266
    :cond_4e
    const/4 v0, 0x0

    .line 270
    :goto_4f
    return v0
.end method

.method protected onMeasure(II)V
    .registers 6
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 465
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v0

    const/high16 v1, 0x40000000    # 2.0f

    invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    .line 466
    const/high16 v2, 0x42600000    # 56.0f

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v2

    invoke-static {v2, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    .line 465
    invoke-super {p0, v0, v1}, Landroid/widget/RelativeLayout;->onMeasure(II)V

    .line 468
    return-void
.end method

.method public openSearchField(Ljava/lang/String;)V
    .registers 2
    .param p1, "value"    # Ljava/lang/String;

    .line 326
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/SearchView;->focused(Ljava/lang/String;)V

    .line 327
    return-void
.end method

.method public setCancelBackground(I)V
    .registers 3
    .param p1, "resId"    # I

    .line 295
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setBackgroundResource(I)V

    .line 296
    return-void
.end method

.method public setCancelTextColor(I)V
    .registers 3
    .param p1, "iColor"    # I

    .line 299
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mCancelTextView:Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/SearchView$MryCancelView;->setTextColor(I)V

    .line 300
    return-void
.end method

.method public setEditFieldBackground(I)V
    .registers 3
    .param p1, "color"    # I

    .line 287
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setBackgroundColor(I)V

    .line 288
    return-void
.end method

.method public setEditTextBackground(Landroid/graphics/drawable/Drawable;)V
    .registers 3
    .param p1, "drawable"    # Landroid/graphics/drawable/Drawable;

    .line 291
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 292
    return-void
.end method

.method public setEnableAnimation(Z)V
    .registers 2
    .param p1, "value"    # Z

    .line 337
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/SearchView;->enableAnimation:Z

    .line 338
    return-void
.end method

.method public setFieldBackground(I)V
    .registers 3
    .param p1, "resId"    # I

    .line 283
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setBackgroundResource(I)V

    .line 284
    return-void
.end method

.method public setHintText(Ljava/lang/String;)V
    .registers 3
    .param p1, "text"    # Ljava/lang/String;

    .line 44
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHintTextView:Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/components/SearchView$MrySearchTextView;->setHint(Ljava/lang/CharSequence;)V

    .line 45
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/SearchView;->mHint:Ljava/lang/String;

    .line 46
    return-void
.end method

.method public setSearchType(I)V
    .registers 4
    .param p1, "type"    # I

    .line 276
    const/4 v0, 0x1

    if-ne p1, v0, :cond_e

    .line 277
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SearchView;->mEditText:Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    const-string v1, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

    invoke-static {v1}, Landroid/text/method/DigitsKeyListener;->getInstance(Ljava/lang/String;)Landroid/text/method/DigitsKeyListener;

    move-result-object v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setKeyListener(Landroid/text/method/KeyListener;)V

    .line 279
    :cond_e
    return-void
.end method

.method public setiSearchViewDelegate(Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;)V
    .registers 2
    .param p1, "delegate"    # Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    .line 341
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/SearchView;->iSearchViewDelegate:Lim/tpelyyftgw/ui/components/SearchView$ISearchViewDelegate;

    .line 342
    return-void
.end method