1305 lines
32 KiB
Smali
1305 lines
32 KiB
Smali
.class public abstract Landroidx/preference/l;
|
|
.super Landroid/app/Fragment;
|
|
.source "PreferenceFragment.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/preference/p$c;
|
|
.implements Landroidx/preference/p$a;
|
|
.implements Landroidx/preference/p$b;
|
|
.implements Landroidx/preference/DialogPreference$a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/preference/l$d;,
|
|
Landroidx/preference/l$h;,
|
|
Landroidx/preference/l$e;,
|
|
Landroidx/preference/l$g;,
|
|
Landroidx/preference/l$f;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final k:Ljava/lang/String; = "androidx.preference.PreferenceFragmentCompat.PREFERENCE_ROOT"
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final l:Ljava/lang/String; = "android:preferences"
|
|
|
|
.field public static final p:Ljava/lang/String; = "androidx.preference.PreferenceFragment.DIALOG"
|
|
|
|
.field public static final u:I = 0x1
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroidx/preference/l$d;
|
|
|
|
.field public b:Landroidx/preference/p;
|
|
|
|
.field public c:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.field public d:Z
|
|
|
|
.field public e:Z
|
|
|
|
.field public f:Landroid/content/Context;
|
|
|
|
.field public g:I
|
|
|
|
.field public h:Ljava/lang/Runnable;
|
|
|
|
.field public final i:Landroid/os/Handler;
|
|
|
|
.field public final j:Ljava/lang/Runnable;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroid/app/Fragment;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/preference/l$d;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/preference/l$d;-><init>(Landroidx/preference/l;)V
|
|
|
|
iput-object v0, p0, Landroidx/preference/l;->a:Landroidx/preference/l$d;
|
|
|
|
.line 3
|
|
sget v0, Landroidx/preference/R$layout;->preference_list_fragment:I
|
|
|
|
iput v0, p0, Landroidx/preference/l;->g:I
|
|
|
|
.line 4
|
|
new-instance v0, Landroidx/preference/l$a;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/preference/l$a;-><init>(Landroidx/preference/l;)V
|
|
|
|
iput-object v0, p0, Landroidx/preference/l;->i:Landroid/os/Handler;
|
|
|
|
.line 5
|
|
new-instance v0, Landroidx/preference/l$b;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/preference/l$b;-><init>(Landroidx/preference/l;)V
|
|
|
|
iput-object v0, p0, Landroidx/preference/l;->j:Ljava/lang/Runnable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(I)V
|
|
.locals 3
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/XmlRes;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/l;->r()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
iget-object v1, p0, Landroidx/preference/l;->f:Landroid/content/Context;
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/preference/l;->j()Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object v2
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1, p1, v2}, Landroidx/preference/p;->r(Landroid/content/Context;ILandroidx/preference/PreferenceScreen;)Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/l;->x(Landroidx/preference/PreferenceScreen;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Landroidx/preference/PreferenceScreen;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/l;->e()Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroidx/preference/l$g;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/l;->e()Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/preference/l$g;
|
|
|
|
.line 3
|
|
invoke-interface {v0, p0, p1}, Landroidx/preference/l$g;->a(Landroidx/preference/l;Landroidx/preference/PreferenceScreen;)Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroidx/preference/l$g;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/preference/l$g;
|
|
|
|
.line 6
|
|
invoke-interface {v0, p0, p1}, Landroidx/preference/l$g;->a(Landroidx/preference/l;Landroidx/preference/PreferenceScreen;)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/l;->j()Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/l;->h()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/preference/l;->l(Landroidx/preference/PreferenceScreen;)Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroidx/preference/PreferenceGroup;->W()V
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/preference/l;->k()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(Ljava/lang/CharSequence;)Landroidx/preference/Preference;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Landroidx/preference/Preference;",
|
|
">(",
|
|
"Ljava/lang/CharSequence;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Landroidx/preference/p;->b(Ljava/lang/CharSequence;)Landroidx/preference/Preference;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public e()Landroid/app/Fragment;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public f(Landroidx/preference/Preference;)V
|
|
.locals 3
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/l;->e()Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroidx/preference/l$e;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/l;->e()Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/preference/l$e;
|
|
|
|
.line 3
|
|
invoke-interface {v0, p0, p1}, Landroidx/preference/l$e;->a(Landroidx/preference/l;Landroidx/preference/Preference;)Z
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v2
|
|
|
|
instance-of v2, v2, Landroidx/preference/l$e;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/preference/l$e;
|
|
|
|
.line 6
|
|
invoke-interface {v0, p0, p1}, Landroidx/preference/l$e;->a(Landroidx/preference/l;Landroidx/preference/Preference;)Z
|
|
|
|
move-result v0
|
|
|
|
:cond_1
|
|
if-eqz v0, :cond_2
|
|
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getFragmentManager()Landroid/app/FragmentManager;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "androidx.preference.PreferenceFragment.DIALOG"
|
|
|
|
invoke-virtual {v0, v2}, Landroid/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
return-void
|
|
|
|
.line 8
|
|
:cond_3
|
|
instance-of v0, p1, Landroidx/preference/EditTextPreference;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 9
|
|
invoke-virtual {p1}, Landroidx/preference/Preference;->q()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroidx/preference/b;->i(Ljava/lang/String;)Landroidx/preference/b;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
.line 10
|
|
:cond_4
|
|
instance-of v0, p1, Landroidx/preference/ListPreference;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Landroidx/preference/Preference;->q()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroidx/preference/e;->i(Ljava/lang/String;)Landroidx/preference/e;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_1
|
|
|
|
.line 12
|
|
:cond_5
|
|
instance-of v0, p1, Landroidx/preference/MultiSelectListPreference;
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 13
|
|
invoke-virtual {p1}, Landroidx/preference/Preference;->q()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroidx/preference/g;->i(Ljava/lang/String;)Landroidx/preference/g;
|
|
|
|
move-result-object p1
|
|
|
|
.line 14
|
|
:goto_1
|
|
invoke-virtual {p1, p0, v1}, Landroid/app/DialogFragment;->setTargetFragment(Landroid/app/Fragment;I)V
|
|
|
|
.line 15
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getFragmentManager()Landroid/app/FragmentManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0, v2}, Landroid/app/DialogFragment;->show(Landroid/app/FragmentManager;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
.line 16
|
|
:cond_6
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Tried to display dialog for unknown preference type. Did you forget to override onDisplayPreferenceDialog()?"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public g(Landroidx/preference/Preference;)Z
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Landroidx/preference/Preference;->m()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/l;->e()Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroidx/preference/l$f;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/preference/l;->e()Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/preference/l$f;
|
|
|
|
.line 4
|
|
invoke-interface {v0, p0, p1}, Landroidx/preference/l$f;->a(Landroidx/preference/l;Landroidx/preference/Preference;)Z
|
|
|
|
move-result v1
|
|
|
|
:cond_0
|
|
if-nez v1, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroidx/preference/l$f;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/preference/l$f;
|
|
|
|
.line 7
|
|
invoke-interface {v0, p0, p1}, Landroidx/preference/l$f;->a(Landroidx/preference/l;Landroidx/preference/Preference;)Z
|
|
|
|
move-result v1
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public final h()Landroidx/recyclerview/widget/RecyclerView;
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->c:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public i()Landroidx/preference/p;
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public j()Landroidx/preference/PreferenceScreen;
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
invoke-virtual {v0}, Landroidx/preference/p;->n()Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public k()V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public l(Landroidx/preference/PreferenceScreen;)Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/preference/n;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/preference/n;-><init>(Landroidx/preference/PreferenceGroup;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public m()Landroidx/recyclerview/widget/RecyclerView$m;
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;
|
|
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public abstract n(Landroid/os/Bundle;Ljava/lang/String;)V
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end method
|
|
|
|
.method public o(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroidx/recyclerview/widget/RecyclerView;
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object p3, p0, Landroidx/preference/l;->f:Landroid/content/Context;
|
|
|
|
invoke-virtual {p3}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v0, "android.hardware.type.automotive"
|
|
|
|
invoke-virtual {p3, v0}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 2
|
|
sget p3, Landroidx/preference/R$id;->recycler_view:I
|
|
|
|
invoke-virtual {p2, p3}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
return-object p3
|
|
|
|
.line 3
|
|
:cond_0
|
|
sget p3, Landroidx/preference/R$layout;->preference_recyclerview:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/preference/l;->m()Landroidx/recyclerview/widget/RecyclerView$m;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$m;)V
|
|
|
|
.line 5
|
|
new-instance p2, Landroidx/preference/q;
|
|
|
|
invoke-direct {p2, p1}, Landroidx/preference/q;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->setAccessibilityDelegateCompat(Landroidx/recyclerview/widget/c0;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/app/Fragment;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 2
|
|
new-instance v0, Landroid/util/TypedValue;
|
|
|
|
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/app/Activity;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Landroidx/preference/R$attr;->preferenceTheme:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-virtual {v1, v2, v0, v3}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
|
|
|
|
.line 4
|
|
iget v0, v0, Landroid/util/TypedValue;->resourceId:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 5
|
|
sget v0, Landroidx/preference/R$style;->PreferenceThemeOverlay:I
|
|
|
|
.line 6
|
|
:cond_0
|
|
new-instance v1, Landroid/view/ContextThemeWrapper;
|
|
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2, v0}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
|
|
|
|
iput-object v1, p0, Landroidx/preference/l;->f:Landroid/content/Context;
|
|
|
|
.line 7
|
|
new-instance v0, Landroidx/preference/p;
|
|
|
|
invoke-direct {v0, v1}, Landroidx/preference/p;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
.line 8
|
|
invoke-virtual {v0, p0}, Landroidx/preference/p;->y(Landroidx/preference/p$b;)V
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getArguments()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Landroid/app/Fragment;->getArguments()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "androidx.preference.PreferenceFragmentCompat.PREFERENCE_ROOT"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 11
|
|
:goto_0
|
|
invoke-virtual {p0, p1, v0}, Landroidx/preference/l;->n(Landroid/os/Bundle;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
|
|
.locals 7
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->f:Landroid/content/Context;
|
|
|
|
sget-object v1, Landroidx/preference/R$styleable;->PreferenceFragment:[I
|
|
|
|
sget v2, Landroidx/preference/R$attr;->preferenceFragmentStyle:I
|
|
|
|
const v3, 0x1010506
|
|
|
|
.line 2
|
|
invoke-static {v0, v2, v3}, Lz0/i;->a(Landroid/content/Context;II)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v3, v1, v2, v4}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v0
|
|
|
|
.line 4
|
|
sget v1, Landroidx/preference/R$styleable;->PreferenceFragment_android_layout:I
|
|
|
|
iget v2, p0, Landroidx/preference/l;->g:I
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Landroidx/preference/l;->g:I
|
|
|
|
.line 5
|
|
sget v1, Landroidx/preference/R$styleable;->PreferenceFragment_android_divider:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v1
|
|
|
|
.line 6
|
|
sget v2, Landroidx/preference/R$styleable;->PreferenceFragment_android_dividerHeight:I
|
|
|
|
const/4 v3, -0x1
|
|
|
|
invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v2
|
|
|
|
.line 7
|
|
sget v5, Landroidx/preference/R$styleable;->PreferenceFragment_allowDividerAfterLastItem:I
|
|
|
|
const/4 v6, 0x1
|
|
|
|
invoke-virtual {v0, v5, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v5
|
|
|
|
.line 8
|
|
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 9
|
|
iget-object v0, p0, Landroidx/preference/l;->f:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/LayoutInflater;->cloneInContext(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
iget v0, p0, Landroidx/preference/l;->g:I
|
|
|
|
invoke-virtual {p1, v0, p2, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
const v0, 0x102003f
|
|
|
|
.line 11
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 12
|
|
instance-of v4, v0, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
.line 13
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
.line 14
|
|
invoke-virtual {p0, p1, v0, p3}, Landroidx/preference/l;->o(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 15
|
|
iput-object p1, p0, Landroidx/preference/l;->c:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.line 16
|
|
iget-object p3, p0, Landroidx/preference/l;->a:Landroidx/preference/l$d;
|
|
|
|
invoke-virtual {p1, p3}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$l;)V
|
|
|
|
.line 17
|
|
invoke-virtual {p0, v1}, Landroidx/preference/l;->v(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
.line 18
|
|
invoke-virtual {p0, v2}, Landroidx/preference/l;->w(I)V
|
|
|
|
.line 19
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/preference/l;->a:Landroidx/preference/l$d;
|
|
|
|
invoke-virtual {p1, v5}, Landroidx/preference/l$d;->f(Z)V
|
|
|
|
.line 20
|
|
iget-object p1, p0, Landroidx/preference/l;->c:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
.line 21
|
|
iget-object p1, p0, Landroidx/preference/l;->c:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
.line 22
|
|
:cond_1
|
|
iget-object p1, p0, Landroidx/preference/l;->i:Landroid/os/Handler;
|
|
|
|
iget-object p3, p0, Landroidx/preference/l;->j:Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {p1, p3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-object p2
|
|
|
|
.line 23
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
const-string p2, "Could not create RecyclerView"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 24
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
const-string p2, "Content has view with id attribute \'android.R.id.list_container\' that is not a ViewGroup class"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public onDestroyView()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->i:Landroid/os/Handler;
|
|
|
|
iget-object v1, p0, Landroidx/preference/l;->j:Ljava/lang/Runnable;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Landroidx/preference/l;->i:Landroid/os/Handler;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V
|
|
|
|
.line 3
|
|
iget-boolean v0, p0, Landroidx/preference/l;->d:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroidx/preference/l;->z()V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
iput-object v0, p0, Landroidx/preference/l;->c:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.line 6
|
|
invoke-super {p0}, Landroid/app/Fragment;->onDestroyView()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSaveInstanceState(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/app/Fragment;->onSaveInstanceState(Landroid/os/Bundle;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/l;->j()Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Landroidx/preference/Preference;->y0(Landroid/os/Bundle;)V
|
|
|
|
const-string v0, "android:preferences"
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStart()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/app/Fragment;->onStart()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/preference/p;->z(Landroidx/preference/p$c;)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/preference/p;->x(Landroidx/preference/p$a;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStop()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/app/Fragment;->onStop()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/preference/p;->z(Landroidx/preference/p$c;)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/preference/p;->x(Landroidx/preference/p$a;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroid/app/Fragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const-string p1, "android:preferences"
|
|
|
|
.line 2
|
|
invoke-virtual {p2, p1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/preference/l;->j()Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p2, p1}, Landroidx/preference/Preference;->x0(Landroid/os/Bundle;)V
|
|
|
|
.line 5
|
|
:cond_0
|
|
iget-boolean p1, p0, Landroidx/preference/l;->d:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Landroidx/preference/l;->c()V
|
|
|
|
.line 7
|
|
iget-object p1, p0, Landroidx/preference/l;->h:Ljava/lang/Runnable;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 8
|
|
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 9
|
|
iput-object p1, p0, Landroidx/preference/l;->h:Ljava/lang/Runnable;
|
|
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
.line 10
|
|
iput-boolean p1, p0, Landroidx/preference/l;->e:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public p()V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final q()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->i:Landroid/os/Handler;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->hasMessages(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/preference/l;->i:Landroid/os/Handler;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final r()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
const-string v1, "This should be called after super.onCreate."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public s(Landroidx/preference/Preference;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, v0}, Landroidx/preference/l;->u(Landroidx/preference/Preference;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public t(Ljava/lang/String;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, p1}, Landroidx/preference/l;->u(Landroidx/preference/Preference;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final u(Landroidx/preference/Preference;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/preference/l$c;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Landroidx/preference/l$c;-><init>(Landroidx/preference/l;Landroidx/preference/Preference;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
iget-object p1, p0, Landroidx/preference/l;->c:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 3
|
|
iput-object v0, p0, Landroidx/preference/l;->h:Ljava/lang/Runnable;
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public v(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->a:Landroidx/preference/l$d;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/preference/l$d;->g(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public w(I)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->a:Landroidx/preference/l$d;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/preference/l$d;->h(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public x(Landroidx/preference/PreferenceScreen;)V
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/preference/p;->C(Landroidx/preference/PreferenceScreen;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/preference/l;->p()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 3
|
|
iput-boolean p1, p0, Landroidx/preference/l;->d:Z
|
|
|
|
.line 4
|
|
iget-boolean p1, p0, Landroidx/preference/l;->e:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/preference/l;->q()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public y(ILjava/lang/String;)V
|
|
.locals 3
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/XmlRes;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/l;->r()V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Landroidx/preference/l;->b:Landroidx/preference/p;
|
|
|
|
iget-object v1, p0, Landroidx/preference/l;->f:Landroid/content/Context;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v1, p1, v2}, Landroidx/preference/p;->r(Landroid/content/Context;ILandroidx/preference/PreferenceScreen;)Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p1, p2}, Landroidx/preference/PreferenceGroup;->k1(Ljava/lang/CharSequence;)Landroidx/preference/Preference;
|
|
|
|
move-result-object p1
|
|
|
|
.line 4
|
|
instance-of v0, p1, Landroidx/preference/PreferenceScreen;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Preference object with key "
|
|
|
|
const-string v1, " is not a PreferenceScreen"
|
|
|
|
invoke-static {v0, p2, v1}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 6
|
|
:cond_1
|
|
:goto_0
|
|
check-cast p1, Landroidx/preference/PreferenceScreen;
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/preference/l;->x(Landroidx/preference/PreferenceScreen;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final z()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/preference/l;->j()Landroidx/preference/PreferenceScreen;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Landroidx/preference/PreferenceGroup;->c0()V
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/preference/l;->p()V
|
|
|
|
return-void
|
|
.end method
|