apkfuckery/com.discord/smali/androidx/preference/DialogPreference.smali
2019-11-15 03:21:15 +01:00

342 lines
10 KiB
Smali

.class public abstract Landroidx/preference/DialogPreference;
.super Landroidx/preference/Preference;
.source "DialogPreference.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/preference/DialogPreference$TargetFragment;
}
.end annotation
# instance fields
.field private mDialogIcon:Landroid/graphics/drawable/Drawable;
.field private mDialogLayoutResId:I
.field private mDialogMessage:Ljava/lang/CharSequence;
.field private mDialogTitle:Ljava/lang/CharSequence;
.field private mNegativeButtonText:Ljava/lang/CharSequence;
.field private mPositiveButtonText:Ljava/lang/CharSequence;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/preference/DialogPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 2
sget v0, Landroidx/preference/R$attr;->dialogPreferenceStyle:I
const v1, 0x1010091
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/DialogPreference;-><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
invoke-direct {p0, p1, p2, p3, v0}, Landroidx/preference/DialogPreference;-><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 1
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/preference/Preference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
sget-object v0, Landroidx/preference/R$styleable;->DialogPreference:[I
invoke-virtual {p1, p2, v0, p3, p4}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
sget p2, Landroidx/preference/R$styleable;->DialogPreference_dialogTitle:I
sget p3, Landroidx/preference/R$styleable;->DialogPreference_android_dialogTitle:I
invoke-static {p1, p2, p3}, Landroidx/core/content/res/TypedArrayUtils;->getString(Landroid/content/res/TypedArray;II)Ljava/lang/String;
move-result-object p2
iput-object p2, p0, Landroidx/preference/DialogPreference;->mDialogTitle:Ljava/lang/CharSequence;
iget-object p2, p0, Landroidx/preference/DialogPreference;->mDialogTitle:Ljava/lang/CharSequence;
if-nez p2, :cond_0
invoke-virtual {p0}, Landroidx/preference/DialogPreference;->getTitle()Ljava/lang/CharSequence;
move-result-object p2
iput-object p2, p0, Landroidx/preference/DialogPreference;->mDialogTitle:Ljava/lang/CharSequence;
:cond_0
sget p2, Landroidx/preference/R$styleable;->DialogPreference_dialogMessage:I
sget p3, Landroidx/preference/R$styleable;->DialogPreference_android_dialogMessage:I
invoke-static {p1, p2, p3}, Landroidx/core/content/res/TypedArrayUtils;->getString(Landroid/content/res/TypedArray;II)Ljava/lang/String;
move-result-object p2
iput-object p2, p0, Landroidx/preference/DialogPreference;->mDialogMessage:Ljava/lang/CharSequence;
sget p2, Landroidx/preference/R$styleable;->DialogPreference_dialogIcon:I
sget p3, Landroidx/preference/R$styleable;->DialogPreference_android_dialogIcon:I
invoke-static {p1, p2, p3}, Landroidx/core/content/res/TypedArrayUtils;->getDrawable(Landroid/content/res/TypedArray;II)Landroid/graphics/drawable/Drawable;
move-result-object p2
iput-object p2, p0, Landroidx/preference/DialogPreference;->mDialogIcon:Landroid/graphics/drawable/Drawable;
sget p2, Landroidx/preference/R$styleable;->DialogPreference_positiveButtonText:I
sget p3, Landroidx/preference/R$styleable;->DialogPreference_android_positiveButtonText:I
invoke-static {p1, p2, p3}, Landroidx/core/content/res/TypedArrayUtils;->getString(Landroid/content/res/TypedArray;II)Ljava/lang/String;
move-result-object p2
iput-object p2, p0, Landroidx/preference/DialogPreference;->mPositiveButtonText:Ljava/lang/CharSequence;
sget p2, Landroidx/preference/R$styleable;->DialogPreference_negativeButtonText:I
sget p3, Landroidx/preference/R$styleable;->DialogPreference_android_negativeButtonText:I
invoke-static {p1, p2, p3}, Landroidx/core/content/res/TypedArrayUtils;->getString(Landroid/content/res/TypedArray;II)Ljava/lang/String;
move-result-object p2
iput-object p2, p0, Landroidx/preference/DialogPreference;->mNegativeButtonText:Ljava/lang/CharSequence;
sget p2, Landroidx/preference/R$styleable;->DialogPreference_dialogLayout:I
sget p3, Landroidx/preference/R$styleable;->DialogPreference_android_dialogLayout:I
const/4 p4, 0x0
invoke-static {p1, p2, p3, p4}, Landroidx/core/content/res/TypedArrayUtils;->getResourceId(Landroid/content/res/TypedArray;III)I
move-result p2
iput p2, p0, Landroidx/preference/DialogPreference;->mDialogLayoutResId:I
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
return-void
.end method
# virtual methods
.method public getDialogIcon()Landroid/graphics/drawable/Drawable;
.locals 1
iget-object v0, p0, Landroidx/preference/DialogPreference;->mDialogIcon:Landroid/graphics/drawable/Drawable;
return-object v0
.end method
.method public getDialogLayoutResource()I
.locals 1
iget v0, p0, Landroidx/preference/DialogPreference;->mDialogLayoutResId:I
return v0
.end method
.method public getDialogMessage()Ljava/lang/CharSequence;
.locals 1
iget-object v0, p0, Landroidx/preference/DialogPreference;->mDialogMessage:Ljava/lang/CharSequence;
return-object v0
.end method
.method public getDialogTitle()Ljava/lang/CharSequence;
.locals 1
iget-object v0, p0, Landroidx/preference/DialogPreference;->mDialogTitle:Ljava/lang/CharSequence;
return-object v0
.end method
.method public getNegativeButtonText()Ljava/lang/CharSequence;
.locals 1
iget-object v0, p0, Landroidx/preference/DialogPreference;->mNegativeButtonText:Ljava/lang/CharSequence;
return-object v0
.end method
.method public getPositiveButtonText()Ljava/lang/CharSequence;
.locals 1
iget-object v0, p0, Landroidx/preference/DialogPreference;->mPositiveButtonText:Ljava/lang/CharSequence;
return-object v0
.end method
.method protected onClick()V
.locals 1
invoke-virtual {p0}, Landroidx/preference/DialogPreference;->getPreferenceManager()Landroidx/preference/PreferenceManager;
move-result-object v0
invoke-virtual {v0, p0}, Landroidx/preference/PreferenceManager;->showDialog(Landroidx/preference/Preference;)V
return-void
.end method
.method public setDialogIcon(I)V
.locals 1
invoke-virtual {p0}, Landroidx/preference/DialogPreference;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object p1
iput-object p1, p0, Landroidx/preference/DialogPreference;->mDialogIcon:Landroid/graphics/drawable/Drawable;
return-void
.end method
.method public setDialogIcon(Landroid/graphics/drawable/Drawable;)V
.locals 0
iput-object p1, p0, Landroidx/preference/DialogPreference;->mDialogIcon:Landroid/graphics/drawable/Drawable;
return-void
.end method
.method public setDialogLayoutResource(I)V
.locals 0
iput p1, p0, Landroidx/preference/DialogPreference;->mDialogLayoutResId:I
return-void
.end method
.method public setDialogMessage(I)V
.locals 1
invoke-virtual {p0}, Landroidx/preference/DialogPreference;->getContext()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/DialogPreference;->setDialogMessage(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setDialogMessage(Ljava/lang/CharSequence;)V
.locals 0
iput-object p1, p0, Landroidx/preference/DialogPreference;->mDialogMessage:Ljava/lang/CharSequence;
return-void
.end method
.method public setDialogTitle(I)V
.locals 1
invoke-virtual {p0}, Landroidx/preference/DialogPreference;->getContext()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/DialogPreference;->setDialogTitle(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setDialogTitle(Ljava/lang/CharSequence;)V
.locals 0
iput-object p1, p0, Landroidx/preference/DialogPreference;->mDialogTitle:Ljava/lang/CharSequence;
return-void
.end method
.method public setNegativeButtonText(I)V
.locals 1
invoke-virtual {p0}, Landroidx/preference/DialogPreference;->getContext()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/DialogPreference;->setNegativeButtonText(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setNegativeButtonText(Ljava/lang/CharSequence;)V
.locals 0
iput-object p1, p0, Landroidx/preference/DialogPreference;->mNegativeButtonText:Ljava/lang/CharSequence;
return-void
.end method
.method public setPositiveButtonText(I)V
.locals 1
invoke-virtual {p0}, Landroidx/preference/DialogPreference;->getContext()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/DialogPreference;->setPositiveButtonText(Ljava/lang/CharSequence;)V
return-void
.end method
.method public setPositiveButtonText(Ljava/lang/CharSequence;)V
.locals 0
iput-object p1, p0, Landroidx/preference/DialogPreference;->mPositiveButtonText:Ljava/lang/CharSequence;
return-void
.end method