apkfuckery/com.discord/smali/androidx/preference/PreferenceScreen.smali
2020-11-16 01:00:50 +00:00

116 lines
2.9 KiB
Smali

.class public final Landroidx/preference/PreferenceScreen;
.super Landroidx/preference/PreferenceGroup;
.source "PreferenceScreen.java"
# instance fields
.field public mShouldUseGeneratedIds:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 2
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
sget v0, Landroidx/preference/R$attr;->preferenceScreenStyle:I
const v1, 0x101008b
invoke-static {p1, v0, v1}, Landroidx/core/content/res/TypedArrayUtils;->getAttr(Landroid/content/Context;II)I
move-result v0
invoke-direct {p0, p1, p2, v0}, Landroidx/preference/PreferenceGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/preference/PreferenceScreen;->mShouldUseGeneratedIds:Z
return-void
.end method
# virtual methods
.method public isOnSameScreenAsChildren()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public onClick()V
.locals 1
invoke-virtual {p0}, Landroidx/preference/Preference;->getIntent()Landroid/content/Intent;
move-result-object v0
if-nez v0, :cond_1
invoke-virtual {p0}, Landroidx/preference/Preference;->getFragment()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_1
invoke-virtual {p0}, Landroidx/preference/PreferenceGroup;->getPreferenceCount()I
move-result v0
if-nez v0, :cond_0
goto :goto_0
:cond_0
invoke-virtual {p0}, Landroidx/preference/Preference;->getPreferenceManager()Landroidx/preference/PreferenceManager;
move-result-object v0
invoke-virtual {v0}, Landroidx/preference/PreferenceManager;->getOnNavigateToScreenListener()Landroidx/preference/PreferenceManager$OnNavigateToScreenListener;
move-result-object v0
if-eqz v0, :cond_1
invoke-interface {v0, p0}, Landroidx/preference/PreferenceManager$OnNavigateToScreenListener;->onNavigateToScreen(Landroidx/preference/PreferenceScreen;)V
:cond_1
:goto_0
return-void
.end method
.method public setShouldUseGeneratedIds(Z)V
.locals 1
invoke-virtual {p0}, Landroidx/preference/PreferenceGroup;->isAttached()Z
move-result v0
if-nez v0, :cond_0
iput-boolean p1, p0, Landroidx/preference/PreferenceScreen;->mShouldUseGeneratedIds:Z
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Cannot change the usage of generated IDs while attached to the preference hierarchy"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public shouldUseGeneratedIds()Z
.locals 1
iget-boolean v0, p0, Landroidx/preference/PreferenceScreen;->mShouldUseGeneratedIds:Z
return v0
.end method