138 lines
3.2 KiB
Smali
138 lines
3.2 KiB
Smali
.class public Lcom/discord/stores/Store;
|
|
.super Ljava/lang/Object;
|
|
.source "Store.kt"
|
|
|
|
|
|
# instance fields
|
|
.field public prefs:Landroid/content/SharedPreferences;
|
|
|
|
.field public prefsSessionDurable:Landroid/content/SharedPreferences;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final getPrefs()Landroid/content/SharedPreferences;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/Store;->prefs:Landroid/content/SharedPreferences;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v0, "prefs"
|
|
|
|
invoke-static {v0}, Lj0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final getPrefsSessionDurable()Landroid/content/SharedPreferences;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/Store;->prefsSessionDurable:Landroid/content/SharedPreferences;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const-string v0, "prefsSessionDurable"
|
|
|
|
invoke-static {v0}, Lj0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public init(Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {p1}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "PreferenceManager.getDef\u2026haredPreferences(context)"
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object v0, p0, Lcom/discord/stores/Store;->prefs:Landroid/content/SharedPreferences;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-string v1, "prefsSessionDurable"
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "context.getSharedPrefere\u2026e\", Context.MODE_PRIVATE)"
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/Store;->prefsSessionDurable:Landroid/content/SharedPreferences;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setPrefs(Landroid/content/SharedPreferences;)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/Store;->prefs:Landroid/content/SharedPreferences;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "<set-?>"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final setPrefsSessionDurable(Landroid/content/SharedPreferences;)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/Store;->prefsSessionDurable:Landroid/content/SharedPreferences;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "<set-?>"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|