306 lines
7.3 KiB
Smali
306 lines
7.3 KiB
Smali
.class public Landroidx/preference/EditTextPreference;
|
|
.super Landroidx/preference/DialogPreference;
|
|
.source "EditTextPreference.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/preference/EditTextPreference$b;,
|
|
Landroidx/preference/EditTextPreference$SavedState;,
|
|
Landroidx/preference/EditTextPreference$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public E1:Ljava/lang/String;
|
|
|
|
.field public F1:Landroidx/preference/EditTextPreference$a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 8
|
|
invoke-direct {p0, p1, v0}, Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 2
|
|
|
|
.line 7
|
|
sget v0, Landroidx/preference/R$attr;->editTextPreferenceStyle:I
|
|
|
|
const v1, 0x1010092
|
|
|
|
invoke-static {p1, v0, v1}, Lz0/i;->a(Landroid/content/Context;II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
invoke-direct {p0, p1, p2, p3, v0}, Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/preference/DialogPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 2
|
|
sget-object v0, Landroidx/preference/R$styleable;->EditTextPreference:[I
|
|
|
|
invoke-virtual {p1, p2, v0, p3, p4}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
sget p2, Landroidx/preference/R$styleable;->EditTextPreference_useSimpleSummaryProvider:I
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-static {p1, p2, p2, p3}, Lz0/i;->b(Landroid/content/res/TypedArray;IIZ)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 4
|
|
invoke-static {}, Landroidx/preference/EditTextPreference$b;->b()Landroidx/preference/EditTextPreference$b;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/preference/Preference;->W0(Landroidx/preference/Preference$f;)V
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public A1()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/EditTextPreference;->E1:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public B1(Landroidx/preference/EditTextPreference$a;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/preference/EditTextPreference$a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/preference/EditTextPreference;->F1:Landroidx/preference/EditTextPreference$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public C1(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/EditTextPreference;->c1()Z
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
iput-object p1, p0, Landroidx/preference/EditTextPreference;->E1:Ljava/lang/String;
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->s0(Ljava/lang/String;)Z
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/preference/EditTextPreference;->c1()Z
|
|
|
|
move-result p1
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->U(Z)V
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c1()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/EditTextPreference;->E1:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-super {p0}, Landroidx/preference/Preference;->c1()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public d0(Landroid/content/res/TypedArray;I)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public h0(Landroid/os/Parcelable;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v1, Landroidx/preference/EditTextPreference$SavedState;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
check-cast p1, Landroidx/preference/EditTextPreference$SavedState;
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Landroid/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-super {p0, v0}, Landroidx/preference/Preference;->h0(Landroid/os/Parcelable;)V
|
|
|
|
.line 4
|
|
iget-object p1, p1, Landroidx/preference/EditTextPreference$SavedState;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/EditTextPreference;->C1(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_1
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroidx/preference/Preference;->h0(Landroid/os/Parcelable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public i0()Landroid/os/Parcelable;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroidx/preference/Preference;->i0()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->O()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance v1, Landroidx/preference/EditTextPreference$SavedState;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/preference/EditTextPreference$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/preference/EditTextPreference;->A1()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, v1, Landroidx/preference/EditTextPreference$SavedState;->a:Ljava/lang/String;
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public j0(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->A(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/EditTextPreference;->C1(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public z1()Landroidx/preference/EditTextPreference$a;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/EditTextPreference;->F1:Landroidx/preference/EditTextPreference$a;
|
|
|
|
return-object v0
|
|
.end method
|