.class public final Lu0/c;
.super Landroid/view/inputmethod/InputConnectionWrapper;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lu0/c$a;
    }
.end annotation


# instance fields
.field public final a:Landroid/widget/TextView;

.field public final b:Lu0/c$a;


# direct methods
.method public constructor <init>(Landroid/widget/TextView;Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)V
    .registers 6

    new-instance v0, Lu0/c$a;

    invoke-direct {v0}, Lu0/c$a;-><init>()V

    const/4 v1, 0x0

    .line 1
    invoke-direct {p0, p2, v1}, Landroid/view/inputmethod/InputConnectionWrapper;-><init>(Landroid/view/inputmethod/InputConnection;Z)V

    iput-object p1, p0, Lu0/c;->a:Landroid/widget/TextView;

    iput-object v0, p0, Lu0/c;->b:Lu0/c$a;

    .line 2
    invoke-static {}, Landroidx/emoji2/text/d;->c()Z

    move-result p1

    if-eqz p1, :cond_30

    invoke-static {}, Landroidx/emoji2/text/d;->a()Landroidx/emoji2/text/d;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Landroidx/emoji2/text/d;->d()Z

    move-result p2

    if-eqz p2, :cond_30

    if-nez p3, :cond_20

    goto :goto_30

    :cond_20
    iget-object p2, p3, Landroid/view/inputmethod/EditorInfo;->extras:Landroid/os/Bundle;

    if-nez p2, :cond_2b

    new-instance p2, Landroid/os/Bundle;

    invoke-direct {p2}, Landroid/os/Bundle;-><init>()V

    iput-object p2, p3, Landroid/view/inputmethod/EditorInfo;->extras:Landroid/os/Bundle;

    :cond_2b
    iget-object p1, p1, Landroidx/emoji2/text/d;->e:Landroidx/emoji2/text/d$b;

    invoke-virtual {p1, p3}, Landroidx/emoji2/text/d$b;->c(Landroid/view/inputmethod/EditorInfo;)V

    :cond_30
    :goto_30
    return-void
.end method


# virtual methods
.method public deleteSurroundingText(II)Z
    .registers 9

    iget-object v0, p0, Lu0/c;->b:Lu0/c$a;

    .line 1
    iget-object v1, p0, Lu0/c;->a:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getEditableText()Landroid/text/Editable;

    move-result-object v2

    const/4 v5, 0x0

    move-object v1, p0

    move v3, p1

    move v4, p2

    .line 2
    invoke-virtual/range {v0 .. v5}, Lu0/c$a;->a(Landroid/view/inputmethod/InputConnection;Landroid/text/Editable;IIZ)Z

    move-result v0

    if-nez v0, :cond_1b

    invoke-super {p0, p1, p2}, Landroid/view/inputmethod/InputConnectionWrapper;->deleteSurroundingText(II)Z

    move-result p1

    if-eqz p1, :cond_19

    goto :goto_1b

    :cond_19
    const/4 p1, 0x0

    goto :goto_1c

    :cond_1b
    :goto_1b
    const/4 p1, 0x1

    :goto_1c
    return p1
.end method

.method public deleteSurroundingTextInCodePoints(II)Z
    .registers 9

    iget-object v0, p0, Lu0/c;->b:Lu0/c$a;

    .line 1
    iget-object v1, p0, Lu0/c;->a:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getEditableText()Landroid/text/Editable;

    move-result-object v2

    const/4 v5, 0x1

    move-object v1, p0

    move v3, p1

    move v4, p2

    .line 2
    invoke-virtual/range {v0 .. v5}, Lu0/c$a;->a(Landroid/view/inputmethod/InputConnection;Landroid/text/Editable;IIZ)Z

    move-result v0

    if-nez v0, :cond_1b

    invoke-super {p0, p1, p2}, Landroid/view/inputmethod/InputConnectionWrapper;->deleteSurroundingTextInCodePoints(II)Z

    move-result p1

    if-eqz p1, :cond_19

    goto :goto_1b

    :cond_19
    const/4 p1, 0x0

    goto :goto_1c

    :cond_1b
    :goto_1b
    const/4 p1, 0x1

    :goto_1c
    return p1
.end method
