PhotoViewerCaptionEnterView$5.smali

.class Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;
.super Ljava/lang/Object;
.source "PhotoViewerCaptionEnterView.java"

# interfaces
.implements Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->createEmojiView()V
.end annotation

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


# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;


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

    return-void
.end method

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

    .line 445
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public synthetic canSchedule()Z
    .registers 2

    invoke-static {p0}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$canSchedule(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;)Z

    move-result v0

    return v0
.end method

.method public synthetic isExpanded()Z
    .registers 2

    invoke-static {p0}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$isExpanded(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;)Z

    move-result v0

    return v0
.end method

.method public synthetic isInScheduleMode()Z
    .registers 2

    invoke-static {p0}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$isInScheduleMode(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;)Z

    move-result v0

    return v0
.end method

.method public synthetic isSearchOpened()Z
    .registers 2

    invoke-static {p0}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$isSearchOpened(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;)Z

    move-result v0

    return v0
.end method

.method public onBackspace()Z
    .registers 5

    .line 448
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v0

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

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_e

    .line 449
    return v1

    .line 451
    :cond_e
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v0

    new-instance v2, Landroid/view/KeyEvent;

    const/16 v3, 0x43

    invoke-direct {v2, v1, v3}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v0, v2}, Lim/tpelyyftgw/ui/components/EditTextCaption;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    .line 452
    const/4 v0, 0x1

    return v0
.end method

.method public synthetic onClearEmojiRecent()V
    .registers 1

    invoke-static {p0}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onClearEmojiRecent(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;)V

    return-void
.end method

.method public onEmojiSelected(Ljava/lang/String;)V
    .registers 7
    .param p1, "symbol"    # Ljava/lang/String;

    .line 457
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v0

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

    move-result v0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->captionMaxLength:I
    invoke-static {v1}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$300(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)I

    move-result v1

    if-le v0, v1, :cond_18

    .line 458
    return-void

    .line 460
    :cond_18
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v0}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v0

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

    move-result v0

    .line 461
    .local v0, "i":I
    if-gez v0, :cond_25

    .line 462
    const/4 v0, 0x0

    .line 465
    :cond_25
    const/4 v1, 0x0

    :try_start_26
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    const/4 v3, 0x1

    # setter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->innerTextChange:Z
    invoke-static {v2, v3}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$102(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;Z)Z

    .line 466
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v2}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v2

    invoke-virtual {v2}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getPaint()Landroid/text/TextPaint;

    move-result-object v2

    invoke-virtual {v2}, Landroid/text/TextPaint;->getFontMetricsInt()Landroid/graphics/Paint$FontMetricsInt;

    move-result-object v2

    const/high16 v3, 0x41a00000    # 20.0f

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

    move-result v3

    invoke-static {p1, v2, v3, v1}, Lim/tpelyyftgw/messenger/Emoji;->replaceEmoji(Ljava/lang/CharSequence;Landroid/graphics/Paint$FontMetricsInt;IZ)Ljava/lang/CharSequence;

    move-result-object v2

    .line 467
    .local v2, "localCharSequence":Ljava/lang/CharSequence;
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v3}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v3

    iget-object v4, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v4}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v4

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

    move-result-object v4

    invoke-interface {v4, v0, v2}, Landroid/text/Editable;->insert(ILjava/lang/CharSequence;)Landroid/text/Editable;

    move-result-object v4

    invoke-virtual {v3, v4}, Lim/tpelyyftgw/ui/components/EditTextCaption;->setText(Ljava/lang/CharSequence;)V

    .line 468
    invoke-interface {v2}, Ljava/lang/CharSequence;->length()I

    move-result v3

    add-int/2addr v3, v0

    .line 469
    .local v3, "j":I
    iget-object v4, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # getter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->messageEditText:Lim/tpelyyftgw/ui/components/EditTextCaption;
    invoke-static {v4}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$400(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;)Lim/tpelyyftgw/ui/components/EditTextCaption;

    move-result-object v4

    invoke-virtual {v4, v3, v3}, Lim/tpelyyftgw/ui/components/EditTextCaption;->setSelection(II)V
    :try_end_69
    .catch Ljava/lang/Exception; {:try_start_26 .. :try_end_69} :catch_6c
    .catchall {:try_start_26 .. :try_end_69} :catchall_6a

    .end local v2    # "localCharSequence":Ljava/lang/CharSequence;
    .end local v3    # "j":I
    goto :goto_70

    .line 473
    :catchall_6a
    move-exception v2

    goto :goto_77

    .line 470
    :catch_6c
    move-exception v2

    .line 471
    .local v2, "e":Ljava/lang/Exception;
    :try_start_6d
    invoke-static {v2}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V
    :try_end_70
    .catchall {:try_start_6d .. :try_end_70} :catchall_6a

    .line 473
    .end local v2    # "e":Ljava/lang/Exception;
    :goto_70
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # setter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->innerTextChange:Z
    invoke-static {v2, v1}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$102(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;Z)Z

    .line 474
    nop

    .line 475
    return-void

    .line 473
    :goto_77
    iget-object v3, p0, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView$5;->this$0:Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;

    # setter for: Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->innerTextChange:Z
    invoke-static {v3, v1}, Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;->access$102(Lim/tpelyyftgw/ui/components/PhotoViewerCaptionEnterView;Z)Z

    .line 474
    throw v2
.end method

.method public synthetic onGifSelected(Landroid/view/View;Ljava/lang/Object;Ljava/lang/Object;ZI)V
    .registers 6

    invoke-static/range {p0 .. p5}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onGifSelected(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;Landroid/view/View;Ljava/lang/Object;Ljava/lang/Object;ZI)V

    return-void
.end method

.method public synthetic onSearchOpenClose(I)V
    .registers 2

    invoke-static {p0, p1}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onSearchOpenClose(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;I)V

    return-void
.end method

.method public synthetic onShowStickerSet(Lim/tpelyyftgw/tgnet/TLRPC$StickerSet;Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;)V
    .registers 3

    invoke-static {p0, p1, p2}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onShowStickerSet(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;Lim/tpelyyftgw/tgnet/TLRPC$StickerSet;Lim/tpelyyftgw/tgnet/TLRPC$InputStickerSet;)V

    return-void
.end method

.method public synthetic onStickerSelected(Landroid/view/View;Lim/tpelyyftgw/tgnet/TLRPC$Document;Ljava/lang/Object;ZI)V
    .registers 6

    invoke-static/range {p0 .. p5}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onStickerSelected(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;Landroid/view/View;Lim/tpelyyftgw/tgnet/TLRPC$Document;Ljava/lang/Object;ZI)V

    return-void
.end method

.method public synthetic onStickerSetAdd(Lim/tpelyyftgw/tgnet/TLRPC$StickerSetCovered;)V
    .registers 2

    invoke-static {p0, p1}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onStickerSetAdd(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;Lim/tpelyyftgw/tgnet/TLRPC$StickerSetCovered;)V

    return-void
.end method

.method public synthetic onStickerSetRemove(Lim/tpelyyftgw/tgnet/TLRPC$StickerSetCovered;)V
    .registers 2

    invoke-static {p0, p1}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onStickerSetRemove(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;Lim/tpelyyftgw/tgnet/TLRPC$StickerSetCovered;)V

    return-void
.end method

.method public synthetic onStickersGroupClick(I)V
    .registers 2

    invoke-static {p0, p1}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onStickersGroupClick(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;I)V

    return-void
.end method

.method public synthetic onStickersSettingsClick()V
    .registers 1

    invoke-static {p0}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onStickersSettingsClick(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;)V

    return-void
.end method

.method public synthetic onTabOpened(I)V
    .registers 2

    invoke-static {p0, p1}, Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate$-CC;->$default$onTabOpened(Lim/tpelyyftgw/ui/components/EmojiView$EmojiViewDelegate;I)V

    return-void
.end method