EmojiViewV2$SearchField$1.smali

.class Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;
.super Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.source "EmojiViewV2.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;-><init>(Lim/tpelyyftgw/ui/components/EmojiViewV2;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/EmojiViewV2$SearchField;

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

.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/EmojiViewV2$SearchField;Landroid/content/Context;Lim/tpelyyftgw/ui/components/EmojiViewV2;I)V
    .registers 5
    .param p1, "this$1"    # Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;
    .param p2, "context"    # Landroid/content/Context;

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

    iput-object p3, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->val$this$0:Lim/tpelyyftgw/ui/components/EmojiViewV2;

    iput p4, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->val$type:I

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

    return-void
.end method


# virtual methods
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 5
    .param p1, "event"    # Landroid/view/MotionEvent;

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

    move-result v0

    if-nez v0, :cond_60

    .line 403
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$000(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/EmojiViewV2$EmojiViewDelegate;

    move-result-object v0

    invoke-interface {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2$EmojiViewDelegate;->isSearchOpened()Z

    move-result v0

    if-nez v0, :cond_1d

    .line 404
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

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

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$800(Lim/tpelyyftgw/ui/components/EmojiViewV2;Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;)V

    .line 406
    :cond_1d
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$000(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/EmojiViewV2$EmojiViewDelegate;

    move-result-object v0

    iget v1, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->val$type:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_2b

    const/4 v2, 0x2

    :cond_2b
    invoke-interface {v0, v2}, Lim/tpelyyftgw/ui/components/EmojiViewV2$EmojiViewDelegate;->onSearchOpenClose(I)V

    .line 407
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;->access$900(Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    move-result-object v0

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

    .line 408
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;->access$900(Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;)Lim/tpelyyftgw/ui/components/EditTextBoldCursor;

    move-result-object v0

    invoke-static {v0}, Lim/tpelyyftgw/messenger/AndroidUtilities;->showKeyboard(Landroid/view/View;)Z

    .line 409
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$1000(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v0

    if-eqz v0, :cond_60

    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

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

    invoke-static {v0}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$1000(Lim/tpelyyftgw/ui/components/EmojiViewV2;)Lim/tpelyyftgw/ui/components/RecyclerListView;

    move-result-object v0

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/components/RecyclerListView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_60

    .line 410
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField$1;->this$1:Lim/tpelyyftgw/ui/components/EmojiViewV2$SearchField;

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

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lim/tpelyyftgw/ui/components/EmojiViewV2;->access$1100(Lim/tpelyyftgw/ui/components/EmojiViewV2;Z)V

    .line 413
    :cond_60
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    return v0
.end method