.class public Lu0/f$a;
.super Lu0/f$b;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lu0/f;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "a"
.end annotation


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

.field public final b:Lu0/d;

.field public c:Z


# direct methods
.method public constructor <init>(Landroid/widget/TextView;)V
    .registers 3

    invoke-direct {p0}, Lu0/f$b;-><init>()V

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

    const/4 v0, 0x1

    iput-boolean v0, p0, Lu0/f$a;->c:Z

    new-instance v0, Lu0/d;

    invoke-direct {v0, p1}, Lu0/d;-><init>(Landroid/widget/TextView;)V

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

    return-void
.end method


# virtual methods
.method public a([Landroid/text/InputFilter;)[Landroid/text/InputFilter;
    .registers 8

    iget-boolean v0, p0, Lu0/f$a;->c:Z

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez v0, :cond_41

    .line 1
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0, v2}, Landroid/util/SparseArray;-><init>(I)V

    move v2, v1

    :goto_c
    array-length v3, p1

    if-ge v2, v3, :cond_1d

    aget-object v3, p1, v2

    instance-of v3, v3, Lu0/d;

    if-eqz v3, :cond_1a

    aget-object v3, p1, v2

    invoke-virtual {v0, v2, v3}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    :cond_1a
    add-int/lit8 v2, v2, 0x1

    goto :goto_c

    .line 2
    :cond_1d
    invoke-virtual {v0}, Landroid/util/SparseArray;->size()I

    move-result v2

    if-nez v2, :cond_24

    goto :goto_40

    :cond_24
    array-length v2, p1

    array-length v3, p1

    invoke-virtual {v0}, Landroid/util/SparseArray;->size()I

    move-result v4

    sub-int/2addr v3, v4

    new-array v3, v3, [Landroid/text/InputFilter;

    move v4, v1

    :goto_2e
    if-ge v1, v2, :cond_3f

    invoke-virtual {v0, v1}, Landroid/util/SparseArray;->indexOfKey(I)I

    move-result v5

    if-gez v5, :cond_3c

    aget-object v5, p1, v1

    aput-object v5, v3, v4

    add-int/lit8 v4, v4, 0x1

    :cond_3c
    add-int/lit8 v1, v1, 0x1

    goto :goto_2e

    :cond_3f
    move-object p1, v3

    :goto_40
    return-object p1

    .line 3
    :cond_41
    array-length v0, p1

    move v3, v1

    :goto_43
    if-ge v3, v0, :cond_4f

    aget-object v4, p1, v3

    iget-object v5, p0, Lu0/f$a;->b:Lu0/d;

    if-ne v4, v5, :cond_4c

    goto :goto_5b

    :cond_4c
    add-int/lit8 v3, v3, 0x1

    goto :goto_43

    :cond_4f
    array-length v3, p1

    add-int/2addr v3, v2

    new-array v2, v3, [Landroid/text/InputFilter;

    invoke-static {p1, v1, v2, v1, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    iget-object p1, p0, Lu0/f$a;->b:Lu0/d;

    aput-object p1, v2, v0

    move-object p1, v2

    :goto_5b
    return-object p1
.end method

.method public b(Z)V
    .registers 2

    if-eqz p1, :cond_5

    invoke-virtual {p0}, Lu0/f$a;->d()V

    :cond_5
    return-void
.end method

.method public c(Z)V
    .registers 3

    iput-boolean p1, p0, Lu0/f$a;->c:Z

    invoke-virtual {p0}, Lu0/f$a;->d()V

    .line 1
    iget-object p1, p0, Lu0/f$a;->a:Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getFilters()[Landroid/text/InputFilter;

    move-result-object p1

    iget-object v0, p0, Lu0/f$a;->a:Landroid/widget/TextView;

    invoke-virtual {p0, p1}, Lu0/f$a;->a([Landroid/text/InputFilter;)[Landroid/text/InputFilter;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setFilters([Landroid/text/InputFilter;)V

    return-void
.end method

.method public d()V
    .registers 3

    iget-object v0, p0, Lu0/f$a;->a:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;

    move-result-object v0

    .line 1
    iget-boolean v1, p0, Lu0/f$a;->c:Z

    if-eqz v1, :cond_1b

    .line 2
    instance-of v1, v0, Lu0/h;

    if-eqz v1, :cond_f

    goto :goto_23

    :cond_f
    instance-of v1, v0, Landroid/text/method/PasswordTransformationMethod;

    if-eqz v1, :cond_14

    goto :goto_23

    :cond_14
    new-instance v1, Lu0/h;

    invoke-direct {v1, v0}, Lu0/h;-><init>(Landroid/text/method/TransformationMethod;)V

    move-object v0, v1

    goto :goto_23

    .line 3
    :cond_1b
    instance-of v1, v0, Lu0/h;

    if-eqz v1, :cond_23

    check-cast v0, Lu0/h;

    .line 4
    iget-object v0, v0, Lu0/h;->r:Landroid/text/method/TransformationMethod;

    .line 5
    :cond_23
    :goto_23
    iget-object v1, p0, Lu0/f$a;->a:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTransformationMethod(Landroid/text/method/TransformationMethod;)V

    return-void
.end method
