discord-jadx/app/src/main/java/com/discord/stores/Store.java

35 lines
1.3 KiB
Java

package com.discord.stores;
import android.content.Context;
import android.content.SharedPreferences;
import com.discord.utilities.cache.SharedPreferencesProvider;
import d0.z.d.m;
/* compiled from: Store.kt */
public class Store {
public SharedPreferences prefsSessionDurable;
public final SharedPreferences getPrefs() {
return SharedPreferencesProvider.INSTANCE.get();
}
public final SharedPreferences getPrefsSessionDurable() {
SharedPreferences sharedPreferences = this.prefsSessionDurable;
if (sharedPreferences == null) {
m.throwUninitializedPropertyAccessException("prefsSessionDurable");
}
return sharedPreferences;
}
public void init(Context context) {
m.checkNotNullParameter(context, "context");
SharedPreferences sharedPreferences = context.getSharedPreferences("prefsSessionDurable", 0);
m.checkNotNullExpressionValue(sharedPreferences, "context.getSharedPrefere…e\", Context.MODE_PRIVATE)");
this.prefsSessionDurable = sharedPreferences;
}
public final void setPrefsSessionDurable(SharedPreferences sharedPreferences) {
m.checkNotNullParameter(sharedPreferences, "<set-?>");
this.prefsSessionDurable = sharedPreferences;
}
}