apkfuckery/com.discord/smali/androidx/preference/PreferenceScreen.smali

117 lines
2.9 KiB
Smali
Raw Normal View History

2019-11-15 02:21:15 +00:00
.class public final Landroidx/preference/PreferenceScreen;
.super Landroidx/preference/PreferenceGroup;
.source "PreferenceScreen.java"
# instance fields
2019-12-06 03:29:40 +00:00
.field public mShouldUseGeneratedIds:Z
2019-11-15 02:21:15 +00:00
# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 2
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2019-11-15 02:21:15 +00:00
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
2019-12-06 03:29:40 +00:00
.method public isOnSameScreenAsChildren()Z
2019-11-15 02:21:15 +00:00
.locals 1
const/4 v0, 0x0
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public onClick()V
2019-11-15 02:21:15 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/preference/Preference;->getIntent()Landroid/content/Intent;
2019-11-15 02:21:15 +00:00
move-result-object v0
if-nez v0, :cond_1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/preference/Preference;->getFragment()Ljava/lang/String;
2019-11-15 02:21:15 +00:00
move-result-object v0
if-nez v0, :cond_1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/preference/PreferenceGroup;->getPreferenceCount()I
2019-11-15 02:21:15 +00:00
move-result v0
if-nez v0, :cond_0
goto :goto_0
:cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/preference/Preference;->getPreferenceManager()Landroidx/preference/PreferenceManager;
2019-11-15 02:21:15 +00:00
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
2019-12-06 03:29:40 +00:00
.method public setShouldUseGeneratedIds(Z)V
2019-11-15 02:21:15 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroidx/preference/PreferenceGroup;->isAttached()Z
2019-11-15 02:21:15 +00:00
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
2019-12-06 03:29:40 +00:00
.method public shouldUseGeneratedIds()Z
2019-11-15 02:21:15 +00:00
.locals 1
iget-boolean v0, p0, Landroidx/preference/PreferenceScreen;->mShouldUseGeneratedIds:Z
return v0
.end method