EditTextCaption.smali

.class public Lim/tpelyyftgw/ui/components/EditTextCaption;
.super Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
.source "EditTextCaption.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lim/tpelyyftgw/ui/components/EditTextCaption$InnerInputConnection;,
        Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;
    }
.end annotation


# instance fields
.field private allowTextEntitiesIntersection:Z

.field private caption:Ljava/lang/String;

.field private captionLayout:Landroid/text/StaticLayout;

.field private copyPasteShowed:Z

.field private delegate:Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;

.field private hintColor:I

.field private mKeyListener:Landroid/view/View$OnKeyListener;

.field private selectionEnd:I

.field private selectionStart:I

.field private triesCount:I

.field private userNameLength:I

.field private xOffset:I

.field private yOffset: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 58
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;-><init>(Landroid/content/Context;)V

    .line 45
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->triesCount:I

    .line 49
    const/4 v0, -0x1

    iput v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    .line 50
    iput v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    .line 59
    return-void
.end method

.method static synthetic access$002(Lim/tpelyyftgw/ui/components/EditTextCaption;Z)Z
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/EditTextCaption;
    .param p1, "x1"    # Z

    .line 38
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->copyPasteShowed:Z

    return p1
.end method

.method static synthetic access$100(Lim/tpelyyftgw/ui/components/EditTextCaption;)Landroid/view/View$OnKeyListener;
    .registers 2
    .param p0, "x0"    # Lim/tpelyyftgw/ui/components/EditTextCaption;

    .line 38
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->mKeyListener:Landroid/view/View$OnKeyListener;

    return-object v0
.end method

.method private applyTextStyleToSelection(Lim/tpelyyftgw/ui/components/TextStyleSpan;)V
    .registers 6
    .param p1, "span"    # Lim/tpelyyftgw/ui/components/TextStyleSpan;

    .line 203
    iget v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    if-ltz v0, :cond_12

    iget v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    if-ltz v0, :cond_12

    .line 204
    iget v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    .line 205
    .local v0, "start":I
    iget v1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    .line 206
    .local v1, "end":I
    const/4 v2, -0x1

    iput v2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    iput v2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    goto :goto_1a

    .line 208
    .end local v0    # "start":I
    .end local v1    # "end":I
    :cond_12
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getSelectionStart()I

    move-result v0

    .line 209
    .restart local v0    # "start":I
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getSelectionEnd()I

    move-result v1

    .line 211
    .restart local v1    # "end":I
    :goto_1a
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;

    move-result-object v2

    iget-boolean v3, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->allowTextEntitiesIntersection:Z

    invoke-static {p1, v0, v1, v2, v3}, Lim/tpelyyftgw/messenger/MediaDataController;->addStyleToText(Lim/tpelyyftgw/ui/components/TextStyleSpan;IILandroid/text/Spannable;Z)V

    .line 212
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->delegate:Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;

    if-eqz v2, :cond_2a

    .line 213
    invoke-interface {v2}, Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;->onSpansChanged()V

    .line 215
    :cond_2a
    return-void
.end method

.method static synthetic lambda$makeSelectedUrl$1(Lim/tpelyyftgw/ui/components/EditTextBoldCursor;Landroid/content/DialogInterface;)V
    .registers 2
    .param p0, "editText"    # Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    .param p1, "dialog"    # Landroid/content/DialogInterface;

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

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

    .line 176
    return-void
.end method

.method private overrideCallback(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode$Callback;
    .registers 3
    .param p1, "callback"    # Landroid/view/ActionMode$Callback;

    .line 226
    new-instance v0, Lim/tpelyyftgw/ui/components/EditTextCaption$2;

    invoke-direct {v0, p0, p1}, Lim/tpelyyftgw/ui/components/EditTextCaption$2;-><init>(Lim/tpelyyftgw/ui/components/EditTextCaption;Landroid/view/ActionMode$Callback;)V

    return-object v0
.end method


# virtual methods
.method public getCaption()Ljava/lang/String;
    .registers 2

    .line 334
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    return-object v0
.end method

.method public synthetic lambda$makeSelectedUrl$0$EditTextCaption(IILim/tpelyyftgw/ui/components/EditTextBoldCursor;Landroid/content/DialogInterface;I)V
    .registers 13
    .param p1, "start"    # I
    .param p2, "end"    # I
    .param p3, "editText"    # Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    .param p4, "dialogInterface"    # Landroid/content/DialogInterface;
    .param p5, "i"    # I

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

    move-result-object v0

    .line 148
    .local v0, "editable":Landroid/text/Editable;
    const-class v1, Landroid/text/style/CharacterStyle;

    invoke-interface {v0, p1, p2, v1}, Landroid/text/Editable;->getSpans(IILjava/lang/Class;)[Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Landroid/text/style/CharacterStyle;

    .line 149
    .local v1, "spans":[Landroid/text/style/CharacterStyle;
    const/16 v2, 0x21

    if-eqz v1, :cond_31

    array-length v3, v1

    if-lez v3, :cond_31

    .line 150
    const/4 v3, 0x0

    .local v3, "a":I
    :goto_14
    array-length v4, v1

    if-ge v3, v4, :cond_31

    .line 151
    aget-object v4, v1, v3

    .line 152
    .local v4, "oldSpan":Landroid/text/style/CharacterStyle;
    invoke-interface {v0, v4}, Landroid/text/Editable;->getSpanStart(Ljava/lang/Object;)I

    move-result v5

    .line 153
    .local v5, "spanStart":I
    invoke-interface {v0, v4}, Landroid/text/Editable;->getSpanEnd(Ljava/lang/Object;)I

    move-result v6

    .line 154
    .local v6, "spanEnd":I
    invoke-interface {v0, v4}, Landroid/text/Editable;->removeSpan(Ljava/lang/Object;)V

    .line 155
    if-ge v5, p1, :cond_29

    .line 156
    invoke-interface {v0, v4, v5, p1, v2}, Landroid/text/Editable;->setSpan(Ljava/lang/Object;III)V

    .line 158
    :cond_29
    if-le v6, p2, :cond_2e

    .line 159
    invoke-interface {v0, v4, p2, v6, v2}, Landroid/text/Editable;->setSpan(Ljava/lang/Object;III)V

    .line 150
    .end local v4    # "oldSpan":Landroid/text/style/CharacterStyle;
    .end local v5    # "spanStart":I
    .end local v6    # "spanEnd":I
    :cond_2e
    add-int/lit8 v3, v3, 0x1

    goto :goto_14

    .line 164
    .end local v3    # "a":I
    :cond_31
    :try_start_31
    new-instance v3, Lim/tpelyyftgw/ui/components/URLSpanReplacement;

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

    move-result-object v4

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

    move-result-object v4

    invoke-direct {v3, v4}, Lim/tpelyyftgw/ui/components/URLSpanReplacement;-><init>(Ljava/lang/String;)V

    invoke-interface {v0, v3, p1, p2, v2}, Landroid/text/Editable;->setSpan(Ljava/lang/Object;III)V
    :try_end_41
    .catch Ljava/lang/Exception; {:try_start_31 .. :try_end_41} :catch_42

    .line 167
    goto :goto_43

    .line 165
    :catch_42
    move-exception v2

    .line 168
    :goto_43
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->delegate:Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;

    if-eqz v2, :cond_4a

    .line 169
    invoke-interface {v2}, Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;->onSpansChanged()V

    .line 171
    :cond_4a
    return-void
.end method

.method public makeSelectedBold()V
    .registers 3

    .line 81
    new-instance v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;

    invoke-direct {v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;-><init>()V

    .line 82
    .local v0, "run":Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;
    iget v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    or-int/lit8 v1, v1, 0x1

    iput v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    .line 83
    new-instance v1, Lim/tpelyyftgw/ui/components/TextStyleSpan;

    invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan;-><init>(Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;)V

    invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->applyTextStyleToSelection(Lim/tpelyyftgw/ui/components/TextStyleSpan;)V

    .line 84
    return-void
.end method

.method public makeSelectedItalic()V
    .registers 3

    .line 87
    new-instance v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;

    invoke-direct {v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;-><init>()V

    .line 88
    .local v0, "run":Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;
    iget v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    or-int/lit8 v1, v1, 0x2

    iput v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    .line 89
    new-instance v1, Lim/tpelyyftgw/ui/components/TextStyleSpan;

    invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan;-><init>(Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;)V

    invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->applyTextStyleToSelection(Lim/tpelyyftgw/ui/components/TextStyleSpan;)V

    .line 90
    return-void
.end method

.method public makeSelectedMono()V
    .registers 3

    .line 93
    new-instance v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;

    invoke-direct {v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;-><init>()V

    .line 94
    .local v0, "run":Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;
    iget v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    or-int/lit8 v1, v1, 0x4

    iput v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    .line 95
    new-instance v1, Lim/tpelyyftgw/ui/components/TextStyleSpan;

    invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan;-><init>(Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;)V

    invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->applyTextStyleToSelection(Lim/tpelyyftgw/ui/components/TextStyleSpan;)V

    .line 96
    return-void
.end method

.method public makeSelectedRegular()V
    .registers 2

    .line 192
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->applyTextStyleToSelection(Lim/tpelyyftgw/ui/components/TextStyleSpan;)V

    .line 193
    return-void
.end method

.method public makeSelectedStrike()V
    .registers 3

    .line 99
    new-instance v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;

    invoke-direct {v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;-><init>()V

    .line 100
    .local v0, "run":Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;
    iget v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    or-int/lit8 v1, v1, 0x8

    iput v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    .line 101
    new-instance v1, Lim/tpelyyftgw/ui/components/TextStyleSpan;

    invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan;-><init>(Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;)V

    invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->applyTextStyleToSelection(Lim/tpelyyftgw/ui/components/TextStyleSpan;)V

    .line 102
    return-void
.end method

.method public makeSelectedUnderline()V
    .registers 3

    .line 105
    new-instance v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;

    invoke-direct {v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;-><init>()V

    .line 106
    .local v0, "run":Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;
    iget v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    or-int/lit8 v1, v1, 0x10

    iput v1, v0, Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;->flags:I

    .line 107
    new-instance v1, Lim/tpelyyftgw/ui/components/TextStyleSpan;

    invoke-direct {v1, v0}, Lim/tpelyyftgw/ui/components/TextStyleSpan;-><init>(Lim/tpelyyftgw/ui/components/TextStyleSpan$TextStyleRun;)V

    invoke-direct {p0, v1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->applyTextStyleToSelection(Lim/tpelyyftgw/ui/components/TextStyleSpan;)V

    .line 108
    return-void
.end method

.method public makeSelectedUrl()V
    .registers 10

    .line 111
    new-instance v0, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;

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

    move-result-object v1

    invoke-direct {v0, v1}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 112
    .local v0, "builder":Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;
    const-string v1, "CreateLink"

    const v2, 0x7f0f048a

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;

    .line 114
    new-instance v1, Lim/tpelyyftgw/ui/components/EditTextCaption$1;

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

    move-result-object v2

    invoke-direct {v1, p0, v2}, Lim/tpelyyftgw/ui/components/EditTextCaption$1;-><init>(Lim/tpelyyftgw/ui/components/EditTextCaption;Landroid/content/Context;)V

    .line 120
    .local v1, "editText":Lim/tpelyyftgw/ui/components/EditTextBoldCursor;
    const/4 v2, 0x1

    const/high16 v3, 0x41900000    # 18.0f

    invoke-virtual {v1, v2, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTextSize(IF)V

    .line 121
    const-string v3, "http://"

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

    .line 122
    const-string v3, "dialogTextBlack"

    invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v3

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

    .line 123
    const-string v3, "URL"

    const v4, 0x7f0f1169    # 1.9017E38f

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

    move-result-object v3

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

    .line 124
    const-string v3, "windowBackgroundWhiteBlueHeader"

    invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v3

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

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

    .line 126
    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setFocusable(Z)V

    .line 127
    invoke-virtual {v1, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setTransformHintToHeader(Z)V

    .line 128
    const-string v3, "windowBackgroundWhiteInputField"

    invoke-static {v3}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v3

    const-string v4, "windowBackgroundWhiteInputFieldActivated"

    invoke-static {v4}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v4

    const-string v5, "windowBackgroundWhiteRedText3"

    invoke-static {v5}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v1, v3, v4, v5}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setLineColors(III)V

    .line 129
    const/4 v3, 0x6

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

    .line 130
    const/4 v3, 0x0

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

    .line 131
    invoke-virtual {v1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->requestFocus()Z

    .line 132
    const/4 v4, 0x0

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

    .line 133
    invoke-virtual {v0, v1}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->setView(Landroid/view/View;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;

    .line 137
    iget v5, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    if-ltz v5, :cond_89

    iget v5, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    if-ltz v5, :cond_89

    .line 138
    iget v5, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    .line 139
    .local v5, "start":I
    iget v6, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    .line 140
    .local v6, "end":I
    const/4 v7, -0x1

    iput v7, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    iput v7, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    goto :goto_91

    .line 142
    .end local v5    # "start":I
    .end local v6    # "end":I
    :cond_89
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getSelectionStart()I

    move-result v5

    .line 143
    .restart local v5    # "start":I
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getSelectionEnd()I

    move-result v6

    .line 146
    .restart local v6    # "end":I
    :goto_91
    const v7, 0x7f0f0a5a

    const-string v8, "OK"

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

    move-result-object v7

    new-instance v8, Lim/tpelyyftgw/ui/components/-$$Lambda$EditTextCaption$z6cV24xWOYBvgNpYBKja7Nt34yU;

    invoke-direct {v8, p0, v5, v6, v1}, Lim/tpelyyftgw/ui/components/-$$Lambda$EditTextCaption$z6cV24xWOYBvgNpYBKja7Nt34yU;-><init>(Lim/tpelyyftgw/ui/components/EditTextCaption;IILim/tpelyyftgw/ui/components/EditTextBoldCursor;)V

    invoke-virtual {v0, v7, v8}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;

    .line 172
    const v7, 0x7f0f02f7

    const-string v8, "Cancel"

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

    move-result-object v7

    invoke-virtual {v0, v7, v3}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;

    .line 173
    invoke-virtual {v0}, Lim/tpelyyftgw/ui/actionbar/AlertDialog$Builder;->show()Lim/tpelyyftgw/ui/actionbar/AlertDialog;

    move-result-object v3

    new-instance v7, Lim/tpelyyftgw/ui/components/-$$Lambda$EditTextCaption$eVtodnZHWEBZDtv-S_O2La2NWHQ;

    invoke-direct {v7, v1}, Lim/tpelyyftgw/ui/components/-$$Lambda$EditTextCaption$eVtodnZHWEBZDtv-S_O2La2NWHQ;-><init>(Lim/tpelyyftgw/ui/components/EditTextBoldCursor;)V

    invoke-virtual {v3, v7}, Lim/tpelyyftgw/ui/actionbar/AlertDialog;->setOnShowListener(Landroid/content/DialogInterface$OnShowListener;)V

    .line 177
    nop

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

    move-result-object v3

    check-cast v3, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 179
    .local v3, "layoutParams":Landroid/view/ViewGroup$MarginLayoutParams;
    if-eqz v3, :cond_e1

    .line 180
    instance-of v7, v3, Landroid/widget/FrameLayout$LayoutParams;

    if-eqz v7, :cond_cc

    .line 181
    move-object v7, v3

    check-cast v7, Landroid/widget/FrameLayout$LayoutParams;

    iput v2, v7, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 183
    :cond_cc
    const/high16 v2, 0x41c00000    # 24.0f

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

    move-result v2

    iput v2, v3, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    iput v2, v3, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    .line 184
    const/high16 v2, 0x42100000    # 36.0f

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

    move-result v2

    iput v2, v3, Landroid/view/ViewGroup$MarginLayoutParams;->height:I

    .line 185
    invoke-virtual {v1, v3}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

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

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->length()I

    move-result v2

    invoke-virtual {v1, v4, v2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setSelection(II)V

    .line 189
    .end local v3    # "layoutParams":Landroid/view/ViewGroup$MarginLayoutParams;
    return-void
.end method

.method public onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
    .registers 5
    .param p1, "outAttrs"    # Landroid/view/inputmethod/EditorInfo;

    .line 347
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;

    move-result-object v0

    .line 348
    .local v0, "ic":Landroid/view/inputmethod/InputConnection;
    if-eqz v0, :cond_d

    .line 349
    new-instance v1, Lim/tpelyyftgw/ui/components/EditTextCaption$InnerInputConnection;

    const/4 v2, 0x1

    invoke-direct {v1, p0, v0, v2}, Lim/tpelyyftgw/ui/components/EditTextCaption$InnerInputConnection;-><init>(Lim/tpelyyftgw/ui/components/EditTextCaption;Landroid/view/inputmethod/InputConnection;Z)V

    return-object v1

    .line 351
    :cond_d
    return-object v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 6
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 380
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->onDraw(Landroid/graphics/Canvas;)V

    .line 382
    :try_start_3
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->captionLayout:Landroid/text/StaticLayout;

    if-eqz v0, :cond_37

    iget v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->userNameLength:I

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

    move-result v1

    if-ne v0, v1, :cond_37

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

    move-result-object v0

    .line 384
    .local v0, "paint":Landroid/graphics/Paint;
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getPaint()Landroid/text/TextPaint;

    move-result-object v1

    invoke-virtual {v1}, Landroid/text/TextPaint;->getColor()I

    move-result v1

    .line 385
    .local v1, "oldColor":I
    iget v2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->hintColor:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 386
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 387
    iget v2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->xOffset:I

    int-to-float v2, v2

    iget v3, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->yOffset:I

    int-to-float v3, v3

    invoke-virtual {p1, v2, v3}, Landroid/graphics/Canvas;->translate(FF)V

    .line 388
    iget-object v2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->captionLayout:Landroid/text/StaticLayout;

    invoke-virtual {v2, p1}, Landroid/text/StaticLayout;->draw(Landroid/graphics/Canvas;)V

    .line 389
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    .line 390
    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V
    :try_end_37
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_37} :catch_38

    .line 394
    .end local v0    # "paint":Landroid/graphics/Paint;
    .end local v1    # "oldColor":I
    :cond_37
    goto :goto_3c

    .line 392
    :catch_38
    move-exception v0

    .line 393
    .local v0, "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 395
    .end local v0    # "e":Ljava/lang/Exception;
    :goto_3c
    return-void
.end method

.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
    .registers 4
    .param p1, "info"    # Landroid/view/accessibility/AccessibilityNodeInfo;

    .line 399
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V

    .line 400
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

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

    move-result v0

    if-nez v0, :cond_34

    .line 401
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x1a

    if-lt v0, v1, :cond_17

    .line 402
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setHintText(Ljava/lang/CharSequence;)V

    goto :goto_34

    .line 404
    :cond_17
    new-instance v0, Ljava/lang/StringBuilder;

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

    invoke-virtual {p1}, Landroid/view/accessibility/AccessibilityNodeInfo;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setText(Ljava/lang/CharSequence;)V

    .line 406
    :cond_34
    :goto_34
    return-void
.end method

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

    move-object/from16 v1, p0

    .line 299
    :try_start_2
    invoke-super/range {p0 .. p2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->onMeasure(II)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_5} :catch_6

    .line 303
    goto :goto_19

    .line 300
    :catch_6
    move-exception v0

    move-object v2, v0

    move-object v0, v2

    .line 301
    .local v0, "e":Ljava/lang/Exception;
    invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v2

    const/high16 v3, 0x424c0000    # 51.0f

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

    move-result v3

    invoke-virtual {v1, v2, v3}, Lim/tpelyyftgw/ui/components/EditTextCaption;->setMeasuredDimension(II)V

    .line 302
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 305
    .end local v0    # "e":Ljava/lang/Exception;
    :goto_19
    const/4 v0, 0x0

    iput-object v0, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->captionLayout:Landroid/text/StaticLayout;

    .line 307
    iget-object v0, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    if-eqz v0, :cond_c0

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

    move-result v0

    if-lez v0, :cond_c0

    .line 308
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getText()Landroid/text/Editable;

    move-result-object v2

    .line 309
    .local v2, "text":Ljava/lang/CharSequence;
    invoke-interface {v2}, Ljava/lang/CharSequence;->length()I

    move-result v0

    const/4 v3, 0x1

    if-le v0, v3, :cond_c0

    const/4 v0, 0x0

    invoke-interface {v2, v0}, Ljava/lang/CharSequence;->charAt(I)C

    move-result v3

    const/16 v4, 0x40

    if-ne v3, v4, :cond_c0

    .line 310
    const/16 v3, 0x20

    invoke-static {v2, v3}, Landroid/text/TextUtils;->indexOf(Ljava/lang/CharSequence;C)I

    move-result v3

    .line 311
    .local v3, "index":I
    const/4 v4, -0x1

    if-eq v3, v4, :cond_c0

    .line 312
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getPaint()Landroid/text/TextPaint;

    move-result-object v4

    .line 313
    .local v4, "paint":Landroid/text/TextPaint;
    add-int/lit8 v5, v3, 0x1

    invoke-interface {v2, v0, v5}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;

    move-result-object v5

    .line 314
    .local v5, "str":Ljava/lang/CharSequence;
    add-int/lit8 v6, v3, 0x1

    invoke-virtual {v4, v2, v0, v6}, Landroid/text/TextPaint;->measureText(Ljava/lang/CharSequence;II)F

    move-result v6

    float-to-double v6, v6

    invoke-static {v6, v7}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v6

    double-to-int v6, v6

    .line 315
    .local v6, "size":I
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getMeasuredWidth()I

    move-result v7

    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getPaddingLeft()I

    move-result v8

    sub-int/2addr v7, v8

    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getPaddingRight()I

    move-result v8

    sub-int/2addr v7, v8

    .line 316
    .local v7, "width":I
    invoke-interface {v5}, Ljava/lang/CharSequence;->length()I

    move-result v8

    iput v8, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->userNameLength:I

    .line 317
    iget-object v8, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    sub-int v9, v7, v6

    int-to-float v9, v9

    sget-object v10, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-static {v8, v4, v9, v10}, Landroid/text/TextUtils;->ellipsize(Ljava/lang/CharSequence;Landroid/text/TextPaint;FLandroid/text/TextUtils$TruncateAt;)Ljava/lang/CharSequence;

    move-result-object v8

    .line 318
    .local v8, "captionFinal":Ljava/lang/CharSequence;
    iput v6, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->xOffset:I

    .line 320
    :try_start_7a
    new-instance v9, Landroid/text/StaticLayout;

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

    move-result-object v13

    sub-int v14, v7, v6

    sget-object v15, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;

    const/high16 v16, 0x3f800000    # 1.0f

    const/16 v17, 0x0

    const/16 v18, 0x0

    move-object v11, v9

    move-object v12, v8

    invoke-direct/range {v11 .. v18}, Landroid/text/StaticLayout;-><init>(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V

    iput-object v9, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->captionLayout:Landroid/text/StaticLayout;

    .line 321
    invoke-virtual {v9}, Landroid/text/StaticLayout;->getLineCount()I

    move-result v9

    if-lez v9, :cond_a5

    .line 322
    iget v9, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->xOffset:I

    int-to-float v9, v9

    iget-object v10, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->captionLayout:Landroid/text/StaticLayout;

    invoke-virtual {v10, v0}, Landroid/text/StaticLayout;->getLineLeft(I)F

    move-result v10

    neg-float v10, v10

    add-float/2addr v9, v10

    float-to-int v9, v9

    iput v9, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->xOffset:I

    .line 324
    :cond_a5
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->getMeasuredHeight()I

    move-result v9

    iget-object v10, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->captionLayout:Landroid/text/StaticLayout;

    invoke-virtual {v10, v0}, Landroid/text/StaticLayout;->getLineBottom(I)I

    move-result v0

    sub-int/2addr v9, v0

    div-int/lit8 v9, v9, 0x2

    const/high16 v0, 0x3f000000    # 0.5f

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

    move-result v0

    add-int/2addr v9, v0

    iput v9, v1, Lim/tpelyyftgw/ui/components/EditTextCaption;->yOffset:I
    :try_end_bb
    .catch Ljava/lang/Exception; {:try_start_7a .. :try_end_bb} :catch_bc

    .line 327
    goto :goto_c0

    .line 325
    :catch_bc
    move-exception v0

    .line 326
    .restart local v0    # "e":Ljava/lang/Exception;
    invoke-static {v0}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/Throwable;)V

    .line 331
    .end local v0    # "e":Ljava/lang/Exception;
    .end local v2    # "text":Ljava/lang/CharSequence;
    .end local v3    # "index":I
    .end local v4    # "paint":Landroid/text/TextPaint;
    .end local v5    # "str":Ljava/lang/CharSequence;
    .end local v6    # "size":I
    .end local v7    # "width":I
    .end local v8    # "captionFinal":Ljava/lang/CharSequence;
    :cond_c0
    :goto_c0
    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .registers 4
    .param p1, "hasWindowFocus"    # Z

    .line 219
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x17

    if-ge v0, v1, :cond_d

    if-nez p1, :cond_d

    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->copyPasteShowed:Z

    if-eqz v0, :cond_d

    .line 220
    return-void

    .line 222
    :cond_d
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->onWindowFocusChanged(Z)V

    .line 223
    return-void
.end method

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

    .line 77
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->allowTextEntitiesIntersection:Z

    .line 78
    return-void
.end method

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

    .line 62
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    if-eqz v0, :cond_a

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

    move-result v0

    if-nez v0, :cond_12

    :cond_a
    if-eqz p1, :cond_2f

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

    move-result v0

    if-eqz v0, :cond_2f

    :cond_12
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    if-eqz v0, :cond_1d

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

    move-result v0

    if-eqz v0, :cond_1d

    goto :goto_2f

    .line 65
    :cond_1d
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    .line 66
    if-eqz p1, :cond_2b

    .line 67
    const/16 v0, 0xa

    const/16 v1, 0x20

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->caption:Ljava/lang/String;

    .line 69
    :cond_2b
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->requestLayout()V

    .line 70
    return-void

    .line 63
    :cond_2f
    :goto_2f
    return-void
.end method

.method public setDelegate(Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;)V
    .registers 2
    .param p1, "editTextCaptionDelegate"    # Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;

    .line 73
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->delegate:Lim/tpelyyftgw/ui/components/EditTextCaption$EditTextCaptionDelegate;

    .line 74
    return-void
.end method

.method public setHintColor(I)V
    .registers 2
    .param p1, "value"    # I

    .line 373
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setHintColor(I)V

    .line 374
    iput p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->hintColor:I

    .line 375
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/components/EditTextCaption;->invalidate()V

    .line 376
    return-void
.end method

.method public setOnKeyListener(Landroid/view/View$OnKeyListener;)V
    .registers 2
    .param p1, "l"    # Landroid/view/View$OnKeyListener;

    .line 341
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->mKeyListener:Landroid/view/View$OnKeyListener;

    .line 342
    invoke-super {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    .line 343
    return-void
.end method

.method public setSelectionOverride(II)V
    .registers 3
    .param p1, "start"    # I
    .param p2, "end"    # I

    .line 196
    iput p1, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionStart:I

    .line 197
    iput p2, p0, Lim/tpelyyftgw/ui/components/EditTextCaption;->selectionEnd:I

    .line 198
    return-void
.end method

.method public startActionMode(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;
    .registers 3
    .param p1, "callback"    # Landroid/view/ActionMode$Callback;

    .line 292
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->overrideCallback(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode$Callback;

    move-result-object v0

    invoke-super {p0, v0}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->startActionMode(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;

    move-result-object v0

    return-object v0
.end method

.method public startActionMode(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
    .registers 4
    .param p1, "callback"    # Landroid/view/ActionMode$Callback;
    .param p2, "type"    # I

    .line 287
    invoke-direct {p0, p1}, Lim/tpelyyftgw/ui/components/EditTextCaption;->overrideCallback(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode$Callback;

    move-result-object v0

    invoke-super {p0, v0, p2}, Lim/tpelyyftgw/ui/components/EditTextBoldCursor;->startActionMode(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;

    move-result-object v0

    return-object v0
.end method