569 lines
12 KiB
Smali
569 lines
12 KiB
Smali
.class public abstract Landroidx/preference/TwoStatePreference;
|
|
.super Landroidx/preference/Preference;
|
|
.source "TwoStatePreference.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/preference/TwoStatePreference$SavedState;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public A1:Ljava/lang/CharSequence;
|
|
|
|
.field public B1:Z
|
|
|
|
.field public C1:Z
|
|
|
|
.field public y1:Z
|
|
|
|
.field public z1:Ljava/lang/CharSequence;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
invoke-direct {p0, p1, v0}, Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/preference/TwoStatePreference;-><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 2
|
|
invoke-direct {p0, p1, p2, p3, v0}, Landroidx/preference/TwoStatePreference;-><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 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/preference/Preference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a0()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroidx/preference/Preference;->a0()V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/TwoStatePreference;->l1()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 3
|
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/preference/Preference;->b(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0}, Landroidx/preference/TwoStatePreference;->m1(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public c1()Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/preference/TwoStatePreference;->C1:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Landroidx/preference/TwoStatePreference;->y1:Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-boolean v0, p0, Landroidx/preference/TwoStatePreference;->y1:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_3
|
|
|
|
.line 2
|
|
invoke-super {p0}, Landroidx/preference/Preference;->c1()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v1, v2
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public d0(Landroid/content/res/TypedArray;I)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
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/TwoStatePreference$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/TwoStatePreference$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-boolean p1, p1, Landroidx/preference/TwoStatePreference$SavedState;->a:Z
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/TwoStatePreference;->m1(Z)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/TwoStatePreference$SavedState;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/preference/TwoStatePreference$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/preference/TwoStatePreference;->l1()Z
|
|
|
|
move-result v0
|
|
|
|
iput-boolean v0, v1, Landroidx/preference/TwoStatePreference$SavedState;->a:Z
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public i1()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/preference/TwoStatePreference;->C1:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public j0(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1
|
|
sget-object p1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
|
|
.line 2
|
|
:cond_0
|
|
check-cast p1, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->w(Z)Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/TwoStatePreference;->m1(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public j1()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/TwoStatePreference;->A1:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public k1()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/TwoStatePreference;->z1:Ljava/lang/CharSequence;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public l1()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/preference/TwoStatePreference;->y1:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public m1(Z)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/preference/TwoStatePreference;->y1:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
.line 2
|
|
iget-boolean v2, p0, Landroidx/preference/TwoStatePreference;->B1:Z
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
.line 3
|
|
:cond_1
|
|
iput-boolean p1, p0, Landroidx/preference/TwoStatePreference;->y1:Z
|
|
|
|
.line 4
|
|
iput-boolean v1, p0, Landroidx/preference/TwoStatePreference;->B1:Z
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->o0(Z)Z
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Landroidx/preference/TwoStatePreference;->c1()Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/Preference;->U(Z)V
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public n1(Z)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-boolean p1, p0, Landroidx/preference/TwoStatePreference;->C1:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public o1(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->i()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/TwoStatePreference;->p1(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public p1(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/preference/TwoStatePreference;->A1:Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/TwoStatePreference;->l1()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public q1(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->i()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/TwoStatePreference;->r1(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public r1(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/preference/TwoStatePreference;->z1:Ljava/lang/CharSequence;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/TwoStatePreference;->l1()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->T()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public s1(Landroid/view/View;)V
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
instance-of v0, p1, Landroid/widget/TextView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 3
|
|
iget-boolean v1, p0, Landroidx/preference/TwoStatePreference;->y1:Z
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v1, p0, Landroidx/preference/TwoStatePreference;->z1:Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 4
|
|
iget-object v0, p0, Landroidx/preference/TwoStatePreference;->z1:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:goto_0
|
|
move v0, v2
|
|
|
|
goto :goto_1
|
|
|
|
.line 5
|
|
:cond_1
|
|
iget-boolean v1, p0, Landroidx/preference/TwoStatePreference;->y1:Z
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
iget-object v1, p0, Landroidx/preference/TwoStatePreference;->A1:Ljava/lang/CharSequence;
|
|
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
.line 6
|
|
iget-object v0, p0, Landroidx/preference/TwoStatePreference;->A1:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/preference/Preference;->G()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v1
|
|
|
|
.line 8
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
.line 9
|
|
invoke-virtual {p1, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
move v0, v2
|
|
|
|
:cond_3
|
|
const/16 v1, 0x8
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move v2, v1
|
|
|
|
.line 10
|
|
:goto_2
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-eq v2, v0, :cond_5
|
|
|
|
.line 11
|
|
invoke-virtual {p1, v2}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public t1(Landroidx/preference/s;)V
|
|
.locals 1
|
|
|
|
const v0, 0x1020010
|
|
|
|
.line 1
|
|
invoke-virtual {p1, v0}, Landroidx/preference/s;->d(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Landroidx/preference/TwoStatePreference;->s1(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|