2020-11-12 02:11:44 +00:00
.class public abstract L androidx/preference/PreferenceFragmentCompat ;
.super L androidx/fragment/app/Fragment ;
.source "PreferenceFragmentCompat.java"
# interfaces
.implements L androidx/preference/PreferenceManager$OnPreferenceTreeClickListener ;
.implements L androidx/preference/PreferenceManager$OnDisplayPreferenceDialogListener ;
.implements L androidx/preference/PreferenceManager$OnNavigateToScreenListener ;
.implements L androidx/preference/DialogPreference$TargetFragment ;
# annotations
.annotation system L dalvik/annotation/MemberClasses ;
value = {
L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;,
L androidx/preference/PreferenceFragmentCompat$ScrollToPreferenceObserver ;,
L androidx/preference/PreferenceFragmentCompat$OnPreferenceDisplayDialogCallback ;,
L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartScreenCallback ;,
L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartFragmentCallback ;
}
.end annotation
# static fields
.field public static final ARG_PREFERENCE_ROOT : L java/lang/String ; = "androidx.preference.PreferenceFragmentCompat.PREFERENCE_ROOT"
2020-11-21 21:10:53 +00:00
.field public static final DIALOG_FRAGMENT_TAG : L java/lang/String ; = "androidx.preference.PreferenceFragment.DIALOG"
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public static final MSG_BIND_PREFERENCES : I = 0x1
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public static final PREFERENCES_TAG : L java/lang/String ; = "android:preferences"
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public static final TAG : L java/lang/String ; = "PreferenceFragment"
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-21 21:10:53 +00:00
.field public final mDividerDecoration : L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public mHandler : L android/os/Handler ;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public mHavePrefs : Z
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public mInitDone : Z
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public mLayoutResId : I
2020-11-12 02:11:44 +00:00
.field public mList : L androidx/recyclerview/widget/RecyclerView ;
2020-11-21 21:10:53 +00:00
.field public mPreferenceManager : L androidx/preference/PreferenceManager ;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public final mRequestFocus : L java/lang/Runnable ;
2020-11-12 02:11:44 +00:00
2020-11-21 21:10:53 +00:00
.field public mSelectPreferenceRunnable : L java/lang/Runnable ;
2020-11-12 02:11:44 +00:00
# direct methods
.method public constructor <init> ( ) V
.locals 1
invoke-direct { p0 } , L androidx/fragment/app/Fragment ;-> <init> ( ) V
new-instance v0 , L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;
invoke-direct { v0 , p0 } , L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;-> <init> ( L androidx/preference/PreferenceFragmentCompat ;) V
iput-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mDividerDecoration : L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;
sget v0 , L androidx/preference/R$layout ;-> preference_list_fragment : I
iput v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mLayoutResId : I
new-instance v0 , L androidx/preference/PreferenceFragmentCompat$1 ;
invoke-direct { v0 , p0 } , L androidx/preference/PreferenceFragmentCompat$1 ;-> <init> ( L androidx/preference/PreferenceFragmentCompat ;) V
iput-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHandler : L android/os/Handler ;
new-instance v0 , L androidx/preference/PreferenceFragmentCompat$2 ;
invoke-direct { v0 , p0 } , L androidx/preference/PreferenceFragmentCompat$2 ;-> <init> ( L androidx/preference/PreferenceFragmentCompat ;) V
iput-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mRequestFocus : L java/lang/Runnable ;
return-void
.end method
.method private postBindPreferences ( ) V
.locals 2
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHandler : L android/os/Handler ;
const/4 v1 , 0x1
invoke-virtual { v0 , v1 } , L android/os/Handler ;-> hasMessages ( I ) Z
move-result v0
if-eqz v0 , :cond_0
return-void
:cond_0
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHandler : L android/os/Handler ;
invoke-virtual { v0 , v1 } , L android/os/Handler ;-> obtainMessage ( I ) L android/os/Message ;
move-result-object v0
invoke-virtual { v0 } , L android/os/Message ;-> sendToTarget ( ) V
return-void
.end method
.method private requirePreferenceManager ( ) V
.locals 2
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
if-eqz v0 , :cond_0
return-void
:cond_0
new-instance v0 , L java/lang/RuntimeException ;
const-string v1 , "This should be called after super.onCreate."
invoke-direct { v0 , v1 } , L java/lang/RuntimeException ;-> <init> ( L java/lang/String ;) V
throw v0
.end method
.method private scrollToPreferenceInternal ( L androidx/preference/Preference ;L java/lang/String ;) V
.locals 1
new-instance v0 , L androidx/preference/PreferenceFragmentCompat$3 ;
invoke-direct { v0 , p0 , p1 , p2 } , L androidx/preference/PreferenceFragmentCompat$3 ;-> <init> ( L androidx/preference/PreferenceFragmentCompat ;L androidx/preference/Preference ;L java/lang/String ;) V
iget-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mList : L androidx/recyclerview/widget/RecyclerView ;
if-nez p1 , :cond_0
iput-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mSelectPreferenceRunnable : L java/lang/Runnable ;
goto :goto_0
:cond_0
2020-11-21 21:10:53 +00:00
invoke-virtual { v0 } , L androidx/preference/PreferenceFragmentCompat$3 ;-> run ( ) V
2020-11-12 02:11:44 +00:00
:goto_0
return-void
.end method
.method private unbindPreferences ( ) V
.locals 2
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getListView ( ) L androidx/recyclerview/widget/RecyclerView ;
move-result-object v0
const/4 v1 , 0x0
invoke-virtual { v0 , v1 } , L androidx/recyclerview/widget/RecyclerView ;-> setAdapter ( L androidx/recyclerview/widget/RecyclerView$Adapter ;) V
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getPreferenceScreen ( ) L androidx/preference/PreferenceScreen ;
move-result-object v0
if-eqz v0 , :cond_0
invoke-virtual { v0 } , L androidx/preference/PreferenceGroup ;-> onDetached ( ) V
:cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> onUnbindPreferences ( ) V
return-void
.end method
# virtual methods
.method public addPreferencesFromResource ( I ) V
.locals 3
. param p1 # I
.annotation build L androidx/annotation/XmlRes ;
.end annotation
. end param
invoke-direct { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> requirePreferenceManager ( ) V
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getContext ( ) L android/content/Context ;
move-result-object v1
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getPreferenceScreen ( ) L androidx/preference/PreferenceScreen ;
move-result-object v2
invoke-virtual { v0 , v1 , p1 , v2 } , L androidx/preference/PreferenceManager ;-> inflateFromResource ( L android/content/Context ;I L androidx/preference/PreferenceScreen ;) L androidx/preference/PreferenceScreen ;
move-result-object p1
invoke-virtual { p0 , p1 } , L androidx/preference/PreferenceFragmentCompat ;-> setPreferenceScreen ( L androidx/preference/PreferenceScreen ;) V
return-void
.end method
.method public bindPreferences ( ) V
.locals 3
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getPreferenceScreen ( ) L androidx/preference/PreferenceScreen ;
move-result-object v0
if-eqz v0 , :cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getListView ( ) L androidx/recyclerview/widget/RecyclerView ;
move-result-object v1
invoke-virtual { p0 , v0 } , L androidx/preference/PreferenceFragmentCompat ;-> onCreateAdapter ( L androidx/preference/PreferenceScreen ;) L androidx/recyclerview/widget/RecyclerView$Adapter ;
move-result-object v2
invoke-virtual { v1 , v2 } , L androidx/recyclerview/widget/RecyclerView ;-> setAdapter ( L androidx/recyclerview/widget/RecyclerView$Adapter ;) V
invoke-virtual { v0 } , L androidx/preference/PreferenceGroup ;-> onAttached ( ) V
:cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> onBindPreferences ( ) V
return-void
.end method
.method public findPreference ( L java/lang/CharSequence ;) L androidx/preference/Preference ;
.locals 1
. param p1 # Ljava/lang/CharSequence;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
.annotation build L androidx/annotation/Nullable ;
.end annotation
.annotation system L dalvik/annotation/Signature ;
value = {
"<T:" ,
"Landroidx/preference/Preference;" ,
">(" ,
"Ljava/lang/CharSequence;" ,
")TT;"
}
.end annotation
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
if-nez v0 , :cond_0
const/4 p1 , 0x0
return-object p1
:cond_0
invoke-virtual { v0 , p1 } , L androidx/preference/PreferenceManager ;-> findPreference ( L java/lang/CharSequence ;) L androidx/preference/Preference ;
move-result-object p1
return-object p1
.end method
.method public getCallbackFragment ( ) L androidx/fragment/app/Fragment ;
.locals 1
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP_PREFIX : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
const/4 v0 , 0x0
return-object v0
.end method
.method public final getListView ( ) L androidx/recyclerview/widget/RecyclerView ;
.locals 1
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mList : L androidx/recyclerview/widget/RecyclerView ;
return-object v0
.end method
.method public getPreferenceManager ( ) L androidx/preference/PreferenceManager ;
.locals 1
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
return-object v0
.end method
.method public getPreferenceScreen ( ) L androidx/preference/PreferenceScreen ;
.locals 1
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { v0 } , L androidx/preference/PreferenceManager ;-> getPreferenceScreen ( ) L androidx/preference/PreferenceScreen ;
move-result-object v0
return-object v0
.end method
.method public onBindPreferences ( ) V
.locals 0
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP_PREFIX : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
return-void
.end method
.method public onCreate ( L android/os/Bundle ;) V
.locals 4
. param p1 # Landroid/os/Bundle;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
invoke-super { p0 , p1 } , L androidx/fragment/app/Fragment ;-> onCreate ( L android/os/Bundle ;) V
new-instance v0 , L android/util/TypedValue ;
invoke-direct { v0 } , L android/util/TypedValue ;-> <init> ( ) V
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v1
invoke-virtual { v1 } , L android/app/Activity ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v1
sget v2 , L androidx/preference/R$attr ;-> preferenceTheme : I
const/4 v3 , 0x1
invoke-virtual { v1 , v2 , v0 , v3 } , L android/content/res/Resources$Theme ;-> resolveAttribute ( I L android/util/TypedValue ;Z ) Z
iget v0 , v0 , L android/util/TypedValue ;-> resourceId : I
if-nez v0 , :cond_0
sget v0 , L androidx/preference/R$style ;-> PreferenceThemeOverlay : I
:cond_0
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v1
invoke-virtual { v1 } , L android/app/Activity ;-> getTheme ( ) L android/content/res/Resources$Theme ;
move-result-object v1
const/4 v2 , 0x0
invoke-virtual { v1 , v0 , v2 } , L android/content/res/Resources$Theme ;-> applyStyle ( IZ ) V
new-instance v0 , L androidx/preference/PreferenceManager ;
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getContext ( ) L android/content/Context ;
move-result-object v1
invoke-direct { v0 , v1 } , L androidx/preference/PreferenceManager ;-> <init> ( L android/content/Context ;) V
iput-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { v0 , p0 } , L androidx/preference/PreferenceManager ;-> setOnNavigateToScreenListener ( L androidx/preference/PreferenceManager$OnNavigateToScreenListener ;) V
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getArguments ( ) L android/os/Bundle ;
move-result-object v0
if-eqz v0 , :cond_1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getArguments ( ) L android/os/Bundle ;
move-result-object v0
const-string v1 , "androidx.preference.PreferenceFragmentCompat.PREFERENCE_ROOT"
invoke-virtual { v0 , v1 } , L android/os/Bundle ;-> getString ( L java/lang/String ;) L java/lang/String ;
move-result-object v0
goto :goto_0
:cond_1
const/4 v0 , 0x0
:goto_0
invoke-virtual { p0 , p1 , v0 } , L androidx/preference/PreferenceFragmentCompat ;-> onCreatePreferences ( L android/os/Bundle ;L java/lang/String ;) V
return-void
.end method
.method public onCreateAdapter ( L androidx/preference/PreferenceScreen ;) L androidx/recyclerview/widget/RecyclerView$Adapter ;
.locals 1
new-instance v0 , L androidx/preference/PreferenceGroupAdapter ;
invoke-direct { v0 , p1 } , L androidx/preference/PreferenceGroupAdapter ;-> <init> ( L androidx/preference/PreferenceGroup ;) V
return-object v0
.end method
.method public onCreateLayoutManager ( ) L androidx/recyclerview/widget/RecyclerView$LayoutManager ;
.locals 2
new-instance v0 , L androidx/recyclerview/widget/LinearLayoutManager ;
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getContext ( ) L android/content/Context ;
move-result-object v1
invoke-direct { v0 , v1 } , L androidx/recyclerview/widget/LinearLayoutManager ;-> <init> ( L android/content/Context ;) V
return-object v0
.end method
.method public abstract onCreatePreferences ( L android/os/Bundle ;L java/lang/String ;) V
.end method
.method public onCreateRecyclerView ( L android/view/LayoutInflater ;L android/view/ViewGroup ;L android/os/Bundle ;) L androidx/recyclerview/widget/RecyclerView ;
.locals 1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getContext ( ) L android/content/Context ;
move-result-object p3
invoke-virtual { p3 } , L android/content/Context ;-> getPackageManager ( ) L android/content/pm/PackageManager ;
move-result-object p3
const-string v0 , "android.hardware.type.automotive"
invoke-virtual { p3 , v0 } , L android/content/pm/PackageManager ;-> hasSystemFeature ( L java/lang/String ;) Z
move-result p3
if-eqz p3 , :cond_0
sget p3 , L androidx/preference/R$id ;-> recycler_view : I
invoke-virtual { p2 , p3 } , L android/view/ViewGroup ;-> findViewById ( I ) L android/view/View ;
move-result-object p3
check-cast p3 , L androidx/recyclerview/widget/RecyclerView ;
if-eqz p3 , :cond_0
return-object p3
:cond_0
sget p3 , L androidx/preference/R$layout ;-> preference_recyclerview : I
const/4 v0 , 0x0
invoke-virtual { p1 , p3 , p2 , v0 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;Z ) L android/view/View ;
move-result-object p1
check-cast p1 , L androidx/recyclerview/widget/RecyclerView ;
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> onCreateLayoutManager ( ) L androidx/recyclerview/widget/RecyclerView$LayoutManager ;
move-result-object p2
invoke-virtual { p1 , p2 } , L androidx/recyclerview/widget/RecyclerView ;-> setLayoutManager ( L androidx/recyclerview/widget/RecyclerView$LayoutManager ;) V
new-instance p2 , L androidx/preference/PreferenceRecyclerViewAccessibilityDelegate ;
invoke-direct { p2 , p1 } , L androidx/preference/PreferenceRecyclerViewAccessibilityDelegate ;-> <init> ( L androidx/recyclerview/widget/RecyclerView ;) V
invoke-virtual { p1 , p2 } , L androidx/recyclerview/widget/RecyclerView ;-> setAccessibilityDelegateCompat ( L androidx/recyclerview/widget/RecyclerViewAccessibilityDelegate ;) V
return-object p1
.end method
.method public onCreateView ( L android/view/LayoutInflater ;L android/view/ViewGroup ;L android/os/Bundle ;) L android/view/View ;
.locals 7
. param p1 # Landroid/view/LayoutInflater;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroid/view/ViewGroup;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
. param p3 # Landroid/os/Bundle;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getContext ( ) L android/content/Context ;
move-result-object v0
sget-object v1 , L androidx/preference/R$styleable ;-> PreferenceFragmentCompat : [I
sget v2 , L androidx/preference/R$attr ;-> preferenceFragmentCompatStyle : I
const/4 v3 , 0x0
const/4 v4 , 0x0
invoke-virtual { v0 , v3 , v1 , v2 , v4 } , L android/content/Context ;-> obtainStyledAttributes ( L android/util/AttributeSet ;[III ) L android/content/res/TypedArray ;
move-result-object v0
sget v1 , L androidx/preference/R$styleable ;-> PreferenceFragmentCompat_android_layout : I
iget v2 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mLayoutResId : I
invoke-virtual { v0 , v1 , v2 } , L android/content/res/TypedArray ;-> getResourceId ( II ) I
move-result v1
iput v1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mLayoutResId : I
sget v1 , L androidx/preference/R$styleable ;-> PreferenceFragmentCompat_android_divider : I
invoke-virtual { v0 , v1 } , L android/content/res/TypedArray ;-> getDrawable ( I ) L android/graphics/drawable/Drawable ;
move-result-object v1
sget v2 , L androidx/preference/R$styleable ;-> PreferenceFragmentCompat_android_dividerHeight : I
const/4 v3 , - 0x1
invoke-virtual { v0 , v2 , v3 } , L android/content/res/TypedArray ;-> getDimensionPixelSize ( II ) I
move-result v2
sget v5 , L androidx/preference/R$styleable ;-> PreferenceFragmentCompat_allowDividerAfterLastItem : I
const/4 v6 , 0x1
invoke-virtual { v0 , v5 , v6 } , L android/content/res/TypedArray ;-> getBoolean ( IZ ) Z
move-result v5
invoke-virtual { v0 } , L android/content/res/TypedArray ;-> recycle ( ) V
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getContext ( ) L android/content/Context ;
move-result-object v0
invoke-virtual { p1 , v0 } , L android/view/LayoutInflater ;-> cloneInContext ( L android/content/Context ;) L android/view/LayoutInflater ;
move-result-object p1
iget v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mLayoutResId : I
invoke-virtual { p1 , v0 , p2 , v4 } , L android/view/LayoutInflater ;-> inflate ( I L android/view/ViewGroup ;Z ) L android/view/View ;
move-result-object p2
const v0 , 0x102003f
invoke-virtual { p2 , v0 } , L android/view/View ;-> findViewById ( I ) L android/view/View ;
move-result-object v0
instance-of v4 , v0 , L android/view/ViewGroup ;
if-eqz v4 , :cond_3
check-cast v0 , L android/view/ViewGroup ;
invoke-virtual { p0 , p1 , v0 , p3 } , L androidx/preference/PreferenceFragmentCompat ;-> onCreateRecyclerView ( L android/view/LayoutInflater ;L android/view/ViewGroup ;L android/os/Bundle ;) L androidx/recyclerview/widget/RecyclerView ;
move-result-object p1
if-eqz p1 , :cond_2
iput-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mList : L androidx/recyclerview/widget/RecyclerView ;
iget-object p3 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mDividerDecoration : L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;
invoke-virtual { p1 , p3 } , L androidx/recyclerview/widget/RecyclerView ;-> addItemDecoration ( L androidx/recyclerview/widget/RecyclerView$ItemDecoration ;) V
invoke-virtual { p0 , v1 } , L androidx/preference/PreferenceFragmentCompat ;-> setDivider ( L android/graphics/drawable/Drawable ;) V
if-eq v2 , v3 , :cond_0
invoke-virtual { p0 , v2 } , L androidx/preference/PreferenceFragmentCompat ;-> setDividerHeight ( I ) V
:cond_0
iget-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mDividerDecoration : L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;
invoke-virtual { p1 , v5 } , L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;-> setAllowDividerAfterLastItem ( Z ) V
iget-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mList : L androidx/recyclerview/widget/RecyclerView ;
invoke-virtual { p1 } , L android/view/ViewGroup ;-> getParent ( ) L android/view/ViewParent ;
move-result-object p1
if-nez p1 , :cond_1
iget-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mList : L androidx/recyclerview/widget/RecyclerView ;
invoke-virtual { v0 , p1 } , L android/view/ViewGroup ;-> addView ( L android/view/View ;) V
:cond_1
iget-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHandler : L android/os/Handler ;
iget-object p3 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mRequestFocus : L java/lang/Runnable ;
invoke-virtual { p1 , p3 } , L android/os/Handler ;-> post ( L java/lang/Runnable ;) Z
return-object p2
:cond_2
new-instance p1 , L java/lang/RuntimeException ;
const-string p2 , "Could not create RecyclerView"
invoke-direct { p1 , p2 } , L java/lang/RuntimeException ;-> <init> ( L java/lang/String ;) V
throw p1
:cond_3
new-instance p1 , L java/lang/IllegalStateException ;
const-string p2 , "Content has view with id attribute \'android.R.id.list_container\' that is not a ViewGroup class"
invoke-direct { p1 , p2 } , L java/lang/IllegalStateException ;-> <init> ( L java/lang/String ;) V
throw p1
.end method
.method public onDestroyView ( ) V
.locals 2
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHandler : L android/os/Handler ;
iget-object v1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mRequestFocus : L java/lang/Runnable ;
invoke-virtual { v0 , v1 } , L android/os/Handler ;-> removeCallbacks ( L java/lang/Runnable ;) V
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHandler : L android/os/Handler ;
const/4 v1 , 0x1
invoke-virtual { v0 , v1 } , L android/os/Handler ;-> removeMessages ( I ) V
iget-boolean v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHavePrefs : Z
if-eqz v0 , :cond_0
invoke-direct { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> unbindPreferences ( ) V
:cond_0
const/4 v0 , 0x0
iput-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mList : L androidx/recyclerview/widget/RecyclerView ;
invoke-super { p0 } , L androidx/fragment/app/Fragment ;-> onDestroyView ( ) V
return-void
.end method
.method public onDisplayPreferenceDialog ( L androidx/preference/Preference ;) V
.locals 3
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getCallbackFragment ( ) L androidx/fragment/app/Fragment ;
move-result-object v0
instance-of v0 , v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceDisplayDialogCallback ;
const/4 v1 , 0x0
if-eqz v0 , :cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getCallbackFragment ( ) L androidx/fragment/app/Fragment ;
move-result-object v0
check-cast v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceDisplayDialogCallback ;
invoke-interface { v0 , p0 , p1 } , L androidx/preference/PreferenceFragmentCompat$OnPreferenceDisplayDialogCallback ;-> onPreferenceDisplayDialog ( L androidx/preference/PreferenceFragmentCompat ;L androidx/preference/Preference ;) Z
move-result v0
goto :goto_0
:cond_0
const/4 v0 , 0x0
:goto_0
if-nez v0 , :cond_1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v2
instance-of v2 , v2 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceDisplayDialogCallback ;
if-eqz v2 , :cond_1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v0
check-cast v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceDisplayDialogCallback ;
invoke-interface { v0 , p0 , p1 } , L androidx/preference/PreferenceFragmentCompat$OnPreferenceDisplayDialogCallback ;-> onPreferenceDisplayDialog ( L androidx/preference/PreferenceFragmentCompat ;L androidx/preference/Preference ;) Z
move-result v0
:cond_1
if-eqz v0 , :cond_2
return-void
:cond_2
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getParentFragmentManager ( ) L androidx/fragment/app/FragmentManager ;
move-result-object v0
const-string v2 , "androidx.preference.PreferenceFragment.DIALOG"
invoke-virtual { v0 , v2 } , L androidx/fragment/app/FragmentManager ;-> findFragmentByTag ( L java/lang/String ;) L androidx/fragment/app/Fragment ;
move-result-object v0
if-eqz v0 , :cond_3
return-void
:cond_3
instance-of v0 , p1 , L androidx/preference/EditTextPreference ;
if-eqz v0 , :cond_4
invoke-virtual { p1 } , L androidx/preference/Preference ;-> getKey ( ) L java/lang/String ;
move-result-object p1
invoke-static { p1 } , L androidx/preference/EditTextPreferenceDialogFragmentCompat ;-> newInstance ( L java/lang/String ;) L androidx/preference/EditTextPreferenceDialogFragmentCompat ;
move-result-object p1
goto :goto_1
:cond_4
instance-of v0 , p1 , L androidx/preference/ListPreference ;
if-eqz v0 , :cond_5
invoke-virtual { p1 } , L androidx/preference/Preference ;-> getKey ( ) L java/lang/String ;
move-result-object p1
invoke-static { p1 } , L androidx/preference/ListPreferenceDialogFragmentCompat ;-> newInstance ( L java/lang/String ;) L androidx/preference/ListPreferenceDialogFragmentCompat ;
move-result-object p1
goto :goto_1
:cond_5
instance-of v0 , p1 , L androidx/preference/MultiSelectListPreference ;
if-eqz v0 , :cond_6
invoke-virtual { p1 } , L androidx/preference/Preference ;-> getKey ( ) L java/lang/String ;
move-result-object p1
invoke-static { p1 } , L androidx/preference/MultiSelectListPreferenceDialogFragmentCompat ;-> newInstance ( L java/lang/String ;) L androidx/preference/MultiSelectListPreferenceDialogFragmentCompat ;
move-result-object p1
:goto_1
invoke-virtual { p1 , p0 , v1 } , L androidx/fragment/app/Fragment ;-> setTargetFragment ( L androidx/fragment/app/Fragment ;I ) V
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getParentFragmentManager ( ) L androidx/fragment/app/FragmentManager ;
move-result-object v0
invoke-virtual { p1 , v0 , v2 } , L androidx/fragment/app/DialogFragment ;-> show ( L androidx/fragment/app/FragmentManager ;L java/lang/String ;) V
return-void
:cond_6
new-instance v0 , L java/lang/IllegalArgumentException ;
const-string v1 , "Cannot display dialog for an unknown Preference type: "
2020-11-21 21:10:53 +00:00
invoke-static { v1 } , L f/e/c/a/a ;-> E ( L java/lang/String ;) L java/lang/StringBuilder ;
2020-11-12 02:11:44 +00:00
move-result-object v1
invoke-virtual { p1 } , L java/lang/Object ;-> getClass ( ) L java/lang/Class ;
move-result-object p1
invoke-virtual { p1 } , L java/lang/Class ;-> getSimpleName ( ) L java/lang/String ;
move-result-object p1
invoke-virtual { v1 , p1 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
const-string p1 , ". Make sure to implement onPreferenceDisplayDialog() to handle displaying a custom dialog for this Preference."
invoke-virtual { v1 , p1 } , L java/lang/StringBuilder ;-> append ( L java/lang/String ;) L java/lang/StringBuilder ;
invoke-virtual { v1 } , L java/lang/StringBuilder ;-> toString ( ) L java/lang/String ;
move-result-object p1
invoke-direct { v0 , p1 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw v0
.end method
.method public onNavigateToScreen ( L androidx/preference/PreferenceScreen ;) V
.locals 1
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getCallbackFragment ( ) L androidx/fragment/app/Fragment ;
move-result-object v0
instance-of v0 , v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartScreenCallback ;
if-eqz v0 , :cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getCallbackFragment ( ) L androidx/fragment/app/Fragment ;
move-result-object v0
check-cast v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartScreenCallback ;
invoke-interface { v0 , p0 , p1 } , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartScreenCallback ;-> onPreferenceStartScreen ( L androidx/preference/PreferenceFragmentCompat ;L androidx/preference/PreferenceScreen ;) Z
move-result v0
goto :goto_0
:cond_0
const/4 v0 , 0x0
:goto_0
if-nez v0 , :cond_1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v0
instance-of v0 , v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartScreenCallback ;
if-eqz v0 , :cond_1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v0
check-cast v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartScreenCallback ;
invoke-interface { v0 , p0 , p1 } , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartScreenCallback ;-> onPreferenceStartScreen ( L androidx/preference/PreferenceFragmentCompat ;L androidx/preference/PreferenceScreen ;) Z
:cond_1
return-void
.end method
.method public onPreferenceTreeClick ( L androidx/preference/Preference ;) Z
.locals 5
invoke-virtual { p1 } , L androidx/preference/Preference ;-> getFragment ( ) L java/lang/String ;
move-result-object v0
const/4 v1 , 0x0
if-eqz v0 , :cond_3
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getCallbackFragment ( ) L androidx/fragment/app/Fragment ;
move-result-object v0
instance-of v0 , v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartFragmentCallback ;
if-eqz v0 , :cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getCallbackFragment ( ) L androidx/fragment/app/Fragment ;
move-result-object v0
check-cast v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartFragmentCallback ;
invoke-interface { v0 , p0 , p1 } , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartFragmentCallback ;-> onPreferenceStartFragment ( L androidx/preference/PreferenceFragmentCompat ;L androidx/preference/Preference ;) Z
move-result v0
goto :goto_0
:cond_0
const/4 v0 , 0x0
:goto_0
if-nez v0 , :cond_1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v2
instance-of v2 , v2 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartFragmentCallback ;
if-eqz v2 , :cond_1
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v0
check-cast v0 , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartFragmentCallback ;
invoke-interface { v0 , p0 , p1 } , L androidx/preference/PreferenceFragmentCompat$OnPreferenceStartFragmentCallback ;-> onPreferenceStartFragment ( L androidx/preference/PreferenceFragmentCompat ;L androidx/preference/Preference ;) Z
move-result v0
:cond_1
if-nez v0 , :cond_2
const-string v0 , "PreferenceFragment"
const-string v2 , "onPreferenceStartFragment is not implemented in the parent activity - attempting to use a fallback implementation. You should implement this method so that you can configure the new fragment that will be displayed, and set a transition between the fragments."
invoke-static { v0 , v2 } , L android/util/Log ;-> w ( L java/lang/String ;L java/lang/String ;) I
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> requireActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v0
invoke-virtual { v0 } , L androidx/fragment/app/FragmentActivity ;-> getSupportFragmentManager ( ) L androidx/fragment/app/FragmentManager ;
move-result-object v0
invoke-virtual { p1 } , L androidx/preference/Preference ;-> getExtras ( ) L android/os/Bundle ;
move-result-object v2
invoke-virtual { v0 } , L androidx/fragment/app/FragmentManager ;-> getFragmentFactory ( ) L androidx/fragment/app/FragmentFactory ;
move-result-object v3
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> requireActivity ( ) L androidx/fragment/app/FragmentActivity ;
move-result-object v4
invoke-virtual { v4 } , L android/app/Activity ;-> getClassLoader ( ) L java/lang/ClassLoader ;
move-result-object v4
invoke-virtual { p1 } , L androidx/preference/Preference ;-> getFragment ( ) L java/lang/String ;
move-result-object p1
invoke-virtual { v3 , v4 , p1 } , L androidx/fragment/app/FragmentFactory ;-> instantiate ( L java/lang/ClassLoader ;L java/lang/String ;) L androidx/fragment/app/Fragment ;
move-result-object p1
invoke-virtual { p1 , v2 } , L androidx/fragment/app/Fragment ;-> setArguments ( L android/os/Bundle ;) V
invoke-virtual { p1 , p0 , v1 } , L androidx/fragment/app/Fragment ;-> setTargetFragment ( L androidx/fragment/app/Fragment ;I ) V
invoke-virtual { v0 } , L androidx/fragment/app/FragmentManager ;-> beginTransaction ( ) L androidx/fragment/app/FragmentTransaction ;
move-result-object v0
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getView ( ) L android/view/View ;
move-result-object v1
invoke-virtual { v1 } , L android/view/View ;-> getParent ( ) L android/view/ViewParent ;
move-result-object v1
check-cast v1 , L android/view/View ;
invoke-virtual { v1 } , L android/view/View ;-> getId ( ) I
move-result v1
invoke-virtual { v0 , v1 , p1 } , L androidx/fragment/app/FragmentTransaction ;-> replace ( I L androidx/fragment/app/Fragment ;) L androidx/fragment/app/FragmentTransaction ;
move-result-object p1
const/4 v0 , 0x0
invoke-virtual { p1 , v0 } , L androidx/fragment/app/FragmentTransaction ;-> addToBackStack ( L java/lang/String ;) L androidx/fragment/app/FragmentTransaction ;
move-result-object p1
invoke-virtual { p1 } , L androidx/fragment/app/FragmentTransaction ;-> commit ( ) I
:cond_2
const/4 p1 , 0x1
return p1
:cond_3
return v1
.end method
.method public onSaveInstanceState ( L android/os/Bundle ;) V
.locals 2
. param p1 # Landroid/os/Bundle;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
invoke-super { p0 , p1 } , L androidx/fragment/app/Fragment ;-> onSaveInstanceState ( L android/os/Bundle ;) V
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getPreferenceScreen ( ) L androidx/preference/PreferenceScreen ;
move-result-object v0
if-eqz v0 , :cond_0
new-instance v1 , L android/os/Bundle ;
invoke-direct { v1 } , L android/os/Bundle ;-> <init> ( ) V
invoke-virtual { v0 , v1 } , L androidx/preference/Preference ;-> saveHierarchyState ( L android/os/Bundle ;) V
const-string v0 , "android:preferences"
invoke-virtual { p1 , v0 , v1 } , L android/os/Bundle ;-> putBundle ( L java/lang/String ;L android/os/Bundle ;) V
:cond_0
return-void
.end method
.method public onStart ( ) V
.locals 1
invoke-super { p0 } , L androidx/fragment/app/Fragment ;-> onStart ( ) V
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { v0 , p0 } , L androidx/preference/PreferenceManager ;-> setOnPreferenceTreeClickListener ( L androidx/preference/PreferenceManager$OnPreferenceTreeClickListener ;) V
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { v0 , p0 } , L androidx/preference/PreferenceManager ;-> setOnDisplayPreferenceDialogListener ( L androidx/preference/PreferenceManager$OnDisplayPreferenceDialogListener ;) V
return-void
.end method
.method public onStop ( ) V
.locals 2
invoke-super { p0 } , L androidx/fragment/app/Fragment ;-> onStop ( ) V
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
const/4 v1 , 0x0
invoke-virtual { v0 , v1 } , L androidx/preference/PreferenceManager ;-> setOnPreferenceTreeClickListener ( L androidx/preference/PreferenceManager$OnPreferenceTreeClickListener ;) V
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { v0 , v1 } , L androidx/preference/PreferenceManager ;-> setOnDisplayPreferenceDialogListener ( L androidx/preference/PreferenceManager$OnDisplayPreferenceDialogListener ;) V
return-void
.end method
.method public onUnbindPreferences ( ) V
.locals 0
.annotation build L androidx/annotation/RestrictTo ;
value = {
.enum L androidx/annotation/RestrictTo$Scope ;-> LIBRARY_GROUP_PREFIX : L androidx/annotation/RestrictTo$Scope ;
}
.end annotation
return-void
.end method
.method public onViewCreated ( L android/view/View ;L android/os/Bundle ;) V
.locals 0
. param p1 # Landroid/view/View;
.annotation build L androidx/annotation/NonNull ;
.end annotation
. end param
. param p2 # Landroid/os/Bundle;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
invoke-super { p0 , p1 , p2 } , L androidx/fragment/app/Fragment ;-> onViewCreated ( L android/view/View ;L android/os/Bundle ;) V
if-eqz p2 , :cond_0
const-string p1 , "android:preferences"
invoke-virtual { p2 , p1 } , L android/os/Bundle ;-> getBundle ( L java/lang/String ;) L android/os/Bundle ;
move-result-object p1
if-eqz p1 , :cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> getPreferenceScreen ( ) L androidx/preference/PreferenceScreen ;
move-result-object p2
if-eqz p2 , :cond_0
invoke-virtual { p2 , p1 } , L androidx/preference/Preference ;-> restoreHierarchyState ( L android/os/Bundle ;) V
:cond_0
iget-boolean p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHavePrefs : Z
if-eqz p1 , :cond_1
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> bindPreferences ( ) V
iget-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mSelectPreferenceRunnable : L java/lang/Runnable ;
if-eqz p1 , :cond_1
invoke-interface { p1 } , L java/lang/Runnable ;-> run ( ) V
const/4 p1 , 0x0
iput-object p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mSelectPreferenceRunnable : L java/lang/Runnable ;
:cond_1
const/4 p1 , 0x1
iput-boolean p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mInitDone : Z
return-void
.end method
.method public scrollToPreference ( L androidx/preference/Preference ;) V
.locals 1
const/4 v0 , 0x0
invoke-direct { p0 , p1 , v0 } , L androidx/preference/PreferenceFragmentCompat ;-> scrollToPreferenceInternal ( L androidx/preference/Preference ;L java/lang/String ;) V
return-void
.end method
.method public scrollToPreference ( L java/lang/String ;) V
.locals 1
const/4 v0 , 0x0
invoke-direct { p0 , v0 , p1 } , L androidx/preference/PreferenceFragmentCompat ;-> scrollToPreferenceInternal ( L androidx/preference/Preference ;L java/lang/String ;) V
return-void
.end method
.method public setDivider ( L android/graphics/drawable/Drawable ;) V
.locals 1
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mDividerDecoration : L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;
invoke-virtual { v0 , p1 } , L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;-> setDivider ( L android/graphics/drawable/Drawable ;) V
return-void
.end method
.method public setDividerHeight ( I ) V
.locals 1
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mDividerDecoration : L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;
invoke-virtual { v0 , p1 } , L androidx/preference/PreferenceFragmentCompat$DividerDecoration ;-> setDividerHeight ( I ) V
return-void
.end method
.method public setPreferenceScreen ( L androidx/preference/PreferenceScreen ;) V
.locals 1
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { v0 , p1 } , L androidx/preference/PreferenceManager ;-> setPreferences ( L androidx/preference/PreferenceScreen ;) Z
move-result v0
if-eqz v0 , :cond_0
if-eqz p1 , :cond_0
invoke-virtual { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> onUnbindPreferences ( ) V
const/4 p1 , 0x1
iput-boolean p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mHavePrefs : Z
iget-boolean p1 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mInitDone : Z
if-eqz p1 , :cond_0
invoke-direct { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> postBindPreferences ( ) V
:cond_0
return-void
.end method
.method public setPreferencesFromResource ( I L java/lang/String ;) V
.locals 3
. param p1 # I
.annotation build L androidx/annotation/XmlRes ;
.end annotation
. end param
. param p2 # Ljava/lang/String;
.annotation build L androidx/annotation/Nullable ;
.end annotation
. end param
invoke-direct { p0 } , L androidx/preference/PreferenceFragmentCompat ;-> requirePreferenceManager ( ) V
iget-object v0 , p0 , L androidx/preference/PreferenceFragmentCompat ;-> mPreferenceManager : L androidx/preference/PreferenceManager ;
invoke-virtual { p0 } , L androidx/fragment/app/Fragment ;-> getContext ( ) L android/content/Context ;
move-result-object v1
const/4 v2 , 0x0
invoke-virtual { v0 , v1 , p1 , v2 } , L androidx/preference/PreferenceManager ;-> inflateFromResource ( L android/content/Context ;I L androidx/preference/PreferenceScreen ;) L androidx/preference/PreferenceScreen ;
move-result-object p1
if-eqz p2 , :cond_1
invoke-virtual { p1 , p2 } , L androidx/preference/PreferenceGroup ;-> findPreference ( L java/lang/CharSequence ;) L androidx/preference/Preference ;
move-result-object p1
instance-of v0 , p1 , L androidx/preference/PreferenceScreen ;
if-eqz v0 , :cond_0
goto :goto_0
:cond_0
new-instance p1 , L java/lang/IllegalArgumentException ;
const-string v0 , "Preference object with key "
const-string v1 , " is not a PreferenceScreen"
2020-11-21 21:10:53 +00:00
invoke-static { v0 , p2 , v1 } , L f/e/c/a/a ;-> r ( L java/lang/String ;L java/lang/String ;L java/lang/String ;) L java/lang/String ;
2020-11-12 02:11:44 +00:00
move-result-object p2
invoke-direct { p1 , p2 } , L java/lang/IllegalArgumentException ;-> <init> ( L java/lang/String ;) V
throw p1
:cond_1
:goto_0
check-cast p1 , L androidx/preference/PreferenceScreen ;
invoke-virtual { p0 , p1 } , L androidx/preference/PreferenceFragmentCompat ;-> setPreferenceScreen ( L androidx/preference/PreferenceScreen ;) V
return-void
.end method