apkfuckery/com.discord/smali/androidx/preference/EditTextPreference$SimpleSummaryProvider.smali

107 lines
3.1 KiB
Smali
Raw Normal View History

2019-11-15 02:21:15 +00:00
.class public final Landroidx/preference/EditTextPreference$SimpleSummaryProvider;
.super Ljava/lang/Object;
.source "EditTextPreference.java"
# interfaces
.implements Landroidx/preference/Preference$SummaryProvider;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/preference/EditTextPreference;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SimpleSummaryProvider"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroidx/preference/Preference$SummaryProvider<",
"Landroidx/preference/EditTextPreference;",
">;"
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static sSimpleSummaryProvider:Landroidx/preference/EditTextPreference$SimpleSummaryProvider;
2019-11-15 02:21:15 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-11-15 02:21:15 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getInstance()Landroidx/preference/EditTextPreference$SimpleSummaryProvider;
.locals 1
sget-object v0, Landroidx/preference/EditTextPreference$SimpleSummaryProvider;->sSimpleSummaryProvider:Landroidx/preference/EditTextPreference$SimpleSummaryProvider;
if-nez v0, :cond_0
new-instance v0, Landroidx/preference/EditTextPreference$SimpleSummaryProvider;
invoke-direct {v0}, Landroidx/preference/EditTextPreference$SimpleSummaryProvider;-><init>()V
sput-object v0, Landroidx/preference/EditTextPreference$SimpleSummaryProvider;->sSimpleSummaryProvider:Landroidx/preference/EditTextPreference$SimpleSummaryProvider;
:cond_0
sget-object v0, Landroidx/preference/EditTextPreference$SimpleSummaryProvider;->sSimpleSummaryProvider:Landroidx/preference/EditTextPreference$SimpleSummaryProvider;
return-object v0
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public provideSummary(Landroidx/preference/EditTextPreference;)Ljava/lang/CharSequence;
2019-11-15 02:21:15 +00:00
.locals 1
invoke-virtual {p1}, Landroidx/preference/EditTextPreference;->getText()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p1}, Landroidx/preference/Preference;->getContext()Landroid/content/Context;
2019-11-15 02:21:15 +00:00
move-result-object p1
sget v0, Landroidx/preference/R$string;->not_set:I
invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_0
invoke-virtual {p1}, Landroidx/preference/EditTextPreference;->getText()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
2019-12-06 03:29:40 +00:00
.method public bridge synthetic provideSummary(Landroidx/preference/Preference;)Ljava/lang/CharSequence;
2019-11-15 02:21:15 +00:00
.locals 0
check-cast p1, Landroidx/preference/EditTextPreference;
invoke-virtual {p0, p1}, Landroidx/preference/EditTextPreference$SimpleSummaryProvider;->provideSummary(Landroidx/preference/EditTextPreference;)Ljava/lang/CharSequence;
move-result-object p1
return-object p1
.end method